Skip to content

Commit e42b9f6

Browse files
authored
Merge pull request #51 from 8bitsam/cookie-api-build
Cookiecutting - build docs api
2 parents ee1d9c3 + cdda602 commit e42b9f6

8 files changed

Lines changed: 25 additions & 151 deletions

File tree

.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- cookie # to be removed during merge to main
78
release:
89

910
jobs:

LICENSE.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
License
2+
#######
3+
14
This program is part of the DiffPy and DANSE open-source projects
25
and is available subject to the conditions and terms laid out below.
36

doc/epydoc/Makefile

Lines changed: 0 additions & 17 deletions
This file was deleted.

doc/epydoc/epydoc.cfg

Lines changed: 0 additions & 54 deletions
This file was deleted.

doc/source/api/diffpy.pdffit2.example_package.rst

Lines changed: 0 additions & 31 deletions
This file was deleted.

doc/source/api/diffpy.pdffit2.rst

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,33 @@
11
:tocdepth: -1
22

3-
|title|
4-
=======
5-
6-
.. |title| replace:: diffpy.pdffit2 package
3+
diffpy.pdffit2 package
4+
======================
75

86
.. automodule:: diffpy.pdffit2
97
:members:
108
:undoc-members:
119
:show-inheritance:
1210

13-
Subpackages
14-
-----------
11+
diffpy.pdffit2.ipy_ext module
12+
-----------------------------
1513

16-
.. toctree::
17-
diffpy.pdffit2.example_package
14+
.. automodule:: diffpy.pdffit2.ipy_ext
15+
:members:
16+
:undoc-members:
17+
:show-inheritance:
1818

19-
Submodules
20-
----------
19+
diffpy.pdffit2.pdffit module
20+
-----------------------------
2121

22-
|module|
23-
--------
22+
.. automodule:: diffpy.pdffit2.pdffit
23+
:members:
24+
:undoc-members:
25+
:show-inheritance:
2426

25-
.. |module| replace:: diffpy.pdffit2.example_submodule module
27+
diffpy.pdffit2.output module
28+
-----------------------------
2629

27-
.. automodule:: diffpy.pdffit2.example_submodule
30+
.. automodule:: diffpy.pdffit2.output
2831
:members:
2932
:undoc-members:
3033
:show-inheritance:

doc/source/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
from importlib.metadata import version
1919
from pathlib import Path
2020

21+
# Eliminate autodoc warning
22+
autodoc_mock_imports = ["diffpy.pdffit2"]
23+
2124
# If extensions (or modules to document with autodoc) are in another directory,
2225
# add these directories to sys.path here. If the directory is relative to the
2326
# documentation root, use Path().resolve() to make it absolute, like shown here.

doc/source/license.rst

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,4 @@
22

33
.. index:: license
44

5-
License
6-
#######
7-
8-
OPEN SOURCE LICENSE AGREEMENT
9-
=============================
10-
BSD 3-Clause License
11-
12-
Copyright (c) 2024, The Trustees of Columbia University in
13-
the City of New York.
14-
All Rights Reserved.
15-
16-
Redistribution and use in source and binary forms, with or without
17-
modification, are permitted provided that the following conditions are met:
18-
19-
1. Redistributions of source code must retain the above copyright notice, this
20-
list of conditions and the following disclaimer.
21-
22-
2. Redistributions in binary form must reproduce the above copyright notice,
23-
this list of conditions and the following disclaimer in the documentation
24-
and/or other materials provided with the distribution.
25-
26-
3. Neither the name of the copyright holder nor the names of its
27-
contributors may be used to endorse or promote products derived from
28-
this software without specific prior written permission.
29-
30-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
31-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
32-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
33-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
34-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
35-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
36-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
37-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
38-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
39-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5+
.. include:: ../../LICENSE.rst

0 commit comments

Comments
 (0)