Skip to content

Commit 5cce755

Browse files
committed
Merge branch 'doc-add-changelog'
* clean up autogenerated API docs * add release-notes page * switch to sphinx_py3doc_enhanced_theme * activate m2r for sphinx/markdown integration * remove redundant pages * move license to a separate page
2 parents 5dcfc7c + eb87061 commit 5cce755

File tree

10 files changed

+73
-91
lines changed

10 files changed

+73
-91
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Release notes
2+
3+
## Unreleased - Version 3.0.0
4+
5+
Differences from version 1.2.2.
6+
7+
### Added
8+
9+
- Compatibility with Python 3.7, 3.6, 3.5 in addition to 2.7.
10+
11+
### Changed
12+
13+
- Switch to platform-independent "noarch" Anaconda package.
14+
15+
### Deprecated
16+
17+
- Variable `__gitsha__` in the `version` module which was renamed
18+
to `__git_commit__`.

doc/manual/source/api/diffpy.rst

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
diffpy.utils.parsers package
22
============================
33

4-
Submodules
5-
----------
4+
.. automodule:: diffpy.utils.parsers
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:
68

79
diffpy.utils.parsers.loaddata module
810
------------------------------------
@@ -19,12 +21,3 @@ diffpy.utils.parsers.resample module
1921
:members:
2022
:undoc-members:
2123
:show-inheritance:
22-
23-
24-
Module contents
25-
---------------
26-
27-
.. automodule:: diffpy.utils.parsers
28-
:members:
29-
:undoc-members:
30-
:show-inheritance:

doc/manual/source/api/diffpy.utils.rst

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
:tocdepth: 2
2+
13
diffpy.utils package
24
====================
35

6+
.. automodule:: diffpy.utils
7+
:members:
8+
:undoc-members:
9+
:show-inheritance:
10+
411
Subpackages
512
-----------
613

@@ -19,12 +26,3 @@ diffpy.utils.version module
1926
:members:
2027
:undoc-members:
2128
:show-inheritance:
22-
23-
24-
Module contents
25-
---------------
26-
27-
.. automodule:: diffpy.utils
28-
:members:
29-
:undoc-members:
30-
:show-inheritance:
Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
diffpy.utils.wx package
22
=======================
33

4-
Submodules
5-
----------
6-
7-
diffpy.utils.wx.gridutils module
8-
--------------------------------
9-
10-
.. automodule:: diffpy.utils.wx.gridutils
4+
.. automodule:: diffpy.utils.wx
115
:members:
126
:undoc-members:
137
:show-inheritance:
148

9+
diffpy.utils.wx.gridutils module
10+
--------------------------------
1511

16-
Module contents
17-
---------------
18-
19-
.. automodule:: diffpy.utils.wx
12+
.. automodule:: diffpy.utils.wx.gridutils
2013
:members:
2114
:undoc-members:
2215
:show-inheritance:

doc/manual/source/api/modules.rst

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

doc/manual/source/conf.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,16 @@
3838
'sphinx.ext.autodoc',
3939
'sphinx.ext.intersphinx',
4040
'sphinx.ext.viewcode',
41+
'm2r',
4142
]
4243

4344
# Add any paths that contain templates here, relative to this directory.
4445
templates_path = ['_templates']
4546

46-
# The suffix of source filenames.
47-
source_suffix = '.rst'
47+
# The suffix(es) of source filenames.
48+
# You can specify multiple suffix as a list of string:
49+
#
50+
source_suffix = ['.rst', '.md']
4851

4952
# The encoding of source files.
5053
#source_encoding = 'utf-8-sig'
@@ -113,13 +116,17 @@
113116

114117
# The theme to use for HTML and HTML Help pages. See the documentation for
115118
# a list of builtin themes.
116-
html_theme = 'default'
119+
#
120+
html_theme = 'sphinx_py3doc_enhanced_theme'
117121

118122
# Theme options are theme-specific and customize the look and feel of a theme
119123
# further. For a list of options available for each theme, see the
120124
# documentation.
121-
#html_theme_options = {}
122-
html_theme_options = {'collapsiblesidebar' : 'true'}
125+
#
126+
html_theme_options = {
127+
'collapsiblesidebar' : 'true',
128+
'navigation_with_keys' : 'true',
129+
}
123130

124131
# Add any paths that contain custom themes here, relative to this directory.
125132
#html_theme_path = []
@@ -143,7 +150,7 @@
143150
# Add any paths that contain custom static files (such as style sheets) here,
144151
# relative to this directory. They are copied after the builtin static files,
145152
# so a file named "default.css" will overwrite the builtin "default.css".
146-
html_static_path = ['_static']
153+
#html_static_path = ['_static']
147154

148155
# Add any extra paths that contain custom files (such as robots.txt or
149156
# .htaccess) here, relative to this directory. These files are copied

doc/manual/source/index.rst

Lines changed: 22 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,50 @@
1-
.. diffpy.utils documentation master file, created by
2-
sphinx-quickstart on Thu Jan 30 15:49:41 2014.
3-
You can adapt this file completely to your liking, but it should at least
4-
contain the root `toctree` directive.
5-
6-
71
####################################################
8-
diffpy.utils's documentation!
2+
diffpy.utils documentation
93
####################################################
104

11-
Software version |release|.
12-
13-
Last updated |today|.
14-
155
diffpy.utils - general purpose shared utilities for the diffpy libraries.
166

7+
| Software version |release|.
8+
| Last updated |today|.
9+
1710
The diffpy.utils package provides functions for extracting array data from
1811
variously formatted text files and wx GUI utilities used by the PDFgui
1912
program. The package also includes interpolation function based on the
2013
Whittaker-Shannon formula that can be used to resample a PDF or other profile
2114
function over a new grid.
2215

16+
=======
17+
Authors
18+
=======
2319

24-
===================
25-
Disclaimer
26-
===================
27-
28-
.. literalinclude:: ../../../LICENSE.txt
20+
diffpy.utils is developed by members of the Billinge Group at
21+
Columbia University and at Brookhaven National Laboratory including
22+
Pavol Juhás, Timur Davis, Christopher L. Farrow, Simon J.L. Billinge.
2923

30-
================
31-
Acknowledgments
32-
================
33-
34-
Developers
35-
-----------
36-
37-
diffpy.Structure is developed and maintained by
38-
39-
.. literalinclude:: ../../../AUTHORS.txt
24+
For a detailed list of contributors see
25+
https://github.com/diffpy/diffpy.utils/graphs/contributors.
4026

4127
======================================
4228
Installation
4329
======================================
4430

45-
See the `README.rst <https://github.com/diffpy/diffpy.utils#requirements>`_
31+
See the `README <https://github.com/diffpy/diffpy.utils#requirements>`_
4632
file included with the distribution.
4733

4834
======================================
49-
API and Index
35+
Table of contents
5036
======================================
5137

5238
.. toctree::
53-
:maxdepth: 3
39+
:titlesonly:
5440

55-
api/diffpy.utils.rst
41+
license
42+
release
43+
Package API <api/diffpy.utils>
44+
45+
======================================
46+
Indices
47+
======================================
5648

5749
* :ref:`genindex`
5850
* :ref:`search`

doc/manual/source/license.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. index:: license
2+
13
License
24
#######
35

doc/manual/source/release.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.. index:: release notes
2+
3+
.. mdinclude:: ../../../CHANGELOG.md

0 commit comments

Comments
 (0)