Skip to content

Commit dc460ca

Browse files
authored
Merge pull request #87 from Sparks29032/doc_refactor
Fix up Documentation
2 parents 8baba3b + 08bd25d commit dc460ca

22 files changed

+135
-79
lines changed
File renamed without changes.

doc/manual/source/release.rst

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

doc/manual/source/utilities/toolsutility.rst

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

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:tocdepth: 2
1+
:tocdepth: -1
22

33
diffpy.utils package
44
====================
@@ -19,10 +19,10 @@ Subpackages
1919
Submodules
2020
----------
2121

22-
diffpy.utils.version module
23-
---------------------------
22+
diffpy.utils.tools module
23+
-------------------------
2424

25-
.. automodule:: diffpy.utils.version
25+
.. automodule:: diffpy.utils.tools
2626
:members:
2727
:undoc-members:
2828
:show-inheritance:

doc/manual/source/api/diffpy.utils.wx.rst renamed to doc/source/api/diffpy.utils.wx.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _wx Python Utilities Documentation
2+
13
diffpy.utils.wx package
24
=======================
35

doc/manual/source/conf.py renamed to doc/source/conf.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@
1616
import os
1717
import sys
1818
import time
19+
from importlib.metadata import version
1920

2021
# If extensions (or modules to document with autodoc) are in another directory,
2122
# add these directories to sys.path here. If the directory is relative to the
2223
# documentation root, use os.path.abspath to make it absolute, like shown here.
2324
# sys.path.insert(0, os.path.abspath('.'))
24-
sys.path.insert(0, os.path.abspath("../../.."))
25-
sys.path.insert(0, os.path.abspath("../../../src"))
25+
sys.path.insert(0, os.path.abspath("../.."))
26+
sys.path.insert(0, os.path.abspath("../../src"))
2627

2728
# abbreviations
2829
ab_authors = "Pavol Juhás, Timur Davis, Christopher L. Farrow, Simon J.L. Billinge group"
@@ -63,7 +64,6 @@
6364
# The version info for the project you're documenting, acts as replacement for
6465
# |version| and |release|, also used in various other places throughout the
6566
# built documents.
66-
from importlib.metadata import version
6767

6868
fullversion = version(project)
6969
# The short X.Y version.
@@ -206,16 +206,16 @@
206206

207207
latex_elements = {
208208
# The paper size ('letterpaper' or 'a4paper').
209-
#'papersize': 'letterpaper',
209+
# 'papersize': 'letterpaper',
210210
# The font size ('10pt', '11pt' or '12pt').
211-
#'pointsize': '10pt',
211+
# 'pointsize': '10pt',
212212
# Additional stuff for the LaTeX preamble.
213-
#'preamble': '',
213+
# 'preamble': '',
214214
}
215215

216216
# Grouping the document tree into LaTeX files. List of tuples
217217
# (source start file, target name, title,
218-
# author, documentclass [howto, manual, or own class]).
218+
# author, documentclass [howto, manual, or own class]).
219219
latex_documents = [
220220
("index", "diffpy.utils.tex", "diffpy.utils Documentation", ab_authors, "manual"),
221221
]
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. _Examples:
22

3-
:tocdepth: 2
3+
:tocdepth: -1
44

55
Examples
66
########
@@ -9,3 +9,4 @@ Landing page for diffpy.utils examples.
99
.. toctree::
1010
parsersexample
1111
resampleexample
12+
toolsexample

doc/manual/source/examples/parsersexample.rst renamed to doc/source/examples/parsersexample.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. _Parsers Example:
22

3-
:tocdepth: 2
3+
:tocdepth: -1
44

55
Parsers Example
66
###############
@@ -51,7 +51,7 @@ Using the parsers module, we can load file data into simple and easy-to-work-wit
5151
hdata = loadData('<PATH to data.txt>', comments=['$', '-->'], headers=True)
5252

5353
4) Rather than working with separate ``data_table`` and ``hdata`` objects, it may be easier to combine them into a single
54-
dictionary. We can do so using the ``serialize_data`` function. ::
54+
dictionary. We can do so using the ``serialize_data`` function. ::
5555

5656
from diffpy.utils.parsers import serialize_data
5757
file_data = serialize_data('<PATH to data.txt', hdata, data_table)
@@ -82,7 +82,7 @@ dictionary. We can do so using the ``serialize_data`` function. ::
8282
parsed_file_data = serialize_data('<PATH to data.txt>', hdata, data_table, serial_file='<PATH to serialfile.json>')
8383

8484
The returned value, ``parsed_file_data``, is the dictionary we just added to ``serialfile.json``.
85-
To extract the data from the serial file, we use ``deserialize_data''. ::
85+
To extract the data from the serial file, we use ``deserialize_data``. ::
8686

8787
from diffpy.utils.parsers import deserialize_data
8888
parsed_file_data = deserialize_data('<PATH to serialdata.json>')

0 commit comments

Comments
 (0)