Skip to content

Commit 2ec518f

Browse files
committed
tmp
1 parent 24a9128 commit 2ec518f

File tree

2 files changed

+34
-24
lines changed

2 files changed

+34
-24
lines changed

doc/source/api/diffpy.pdfgui.rst

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
:tocdepth: -1
22

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

86
.. automodule:: diffpy.pdfgui
97
:members:
@@ -14,17 +12,28 @@ Subpackages
1412
-----------
1513

1614
.. toctree::
17-
diffpy.pdfgui.example_package
15+
:titlesonly:
16+
17+
diffpy.pdfgui.icons
18+
diffpy.pdfgui.gui
19+
diffpy.pdfgui.applications
20+
diffpy.pdfgui.control
1821

1922
Submodules
2023
----------
2124

22-
|module|
23-
--------
25+
diffpy.pdfgui.utils module
26+
^^^^^^^^^^^^^^^^^^^^^^^^^^
27+
28+
.. automodule:: diffpy.pdfgui.utils
29+
:members:
30+
:undoc-members:
31+
:show-inheritance:
2432

25-
.. |module| replace:: diffpy.pdfgui.example_submodule module
33+
diffpy.pdfgui.tui module
34+
^^^^^^^^^^^^^^^^^^^^^^^^
2635

27-
.. automodule:: diffpy.pdfgui.example_submodule
36+
.. automodule:: diffpy.pdfgui.tui
2837
:members:
2938
:undoc-members:
3039
:show-inheritance:

doc/source/conf.py

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33
#
4-
# diffpy.pdfgui documentation build configuration file, created by # noqa: E501
4+
# diffpy.pdfgui documentation build configuration file, created by
55
# sphinx-quickstart on Thu Jan 30 15:49:41 2014.
66
#
77
# This file is execfile()d with the current directory set to its
@@ -13,26 +13,26 @@
1313
# All configuration values have a default; values that are commented out
1414
# serve to show the default.
1515

16-
import sys
17-
import time
18-
from importlib.metadata import version
19-
from pathlib import Path
20-
2116
# Attempt to import the version dynamically from GitHub tag.
2217
try:
2318
fullversion = version("diffpy.pdfgui")
2419
except Exception:
2520
fullversion = "No version found. The correct version will appear in the released version." # noqa: E501
2621

22+
import sys
23+
import time
24+
from importlib.metadata import version
25+
from pathlib import Path
26+
2727
# If extensions (or modules to document with autodoc) are in another directory,
2828
# add these directories to sys.path here. If the directory is relative to the
29-
# documentation root, use Path().resolve() to make it absolute, like shown here. # noqa: E501
29+
# documentation root, use Path().resolve() to make it absolute, like shown here.
3030
# sys.path.insert(0, str(Path(".").resolve()))
3131
sys.path.insert(0, str(Path("../..").resolve()))
3232
sys.path.insert(0, str(Path("../../src").resolve()))
3333

3434
# abbreviations
35-
ab_authors = "Simon J.L. Billinge group"
35+
ab_authors = "Billinge Group members and community contributors"
3636

3737
# -- General configuration ------------------------------------------------
3838

@@ -48,8 +48,8 @@
4848
"sphinx.ext.todo",
4949
"sphinx.ext.viewcode",
5050
"sphinx.ext.intersphinx",
51-
"sphinx_rtd_theme",
5251
"sphinx_copybutton",
52+
"sphinx_rtd_theme",
5353
"m2r",
5454
]
5555

@@ -71,10 +71,16 @@
7171
project = "diffpy.pdfgui"
7272
copyright = "%Y, The Trustees of Columbia University in the City of New York"
7373

74+
# For sphinx_copybutton extension.
75+
# Do not copy "$" for shell commands in code-blocks.
76+
copybutton_prompt_text = r"^\$ "
77+
copybutton_prompt_is_regexp = True
78+
7479
# The version info for the project you're documenting, acts as replacement for
7580
# |version| and |release|, also used in various other places throughout the
7681
# built documents.
7782

83+
fullversion = version(project)
7884
# The short X.Y version.
7985
version = "".join(fullversion.split(".post")[:1])
8086
# The full version, including alpha/beta/rc tags.
@@ -94,11 +100,6 @@
94100
# substitute YEAR in the copyright string
95101
copyright = copyright.replace("%Y", year)
96102

97-
# For sphinx_copybutton extension.
98-
# Do not copy "$" for shell commands in code-blocks.
99-
copybutton_prompt_text = r"^\$ "
100-
copybutton_prompt_is_regexp = True
101-
102103
# List of patterns, relative to source directory, that match files and
103104
# directories to ignore when looking for source files.
104105
exclude_patterns = ["build"]
@@ -177,7 +178,7 @@
177178
# Add any extra paths that contain custom files (such as robots.txt or
178179
# .htaccess) here, relative to this directory. These files are copied
179180
# directly to the root of the documentation.
180-
# html_extra_path = []
181+
html_extra_path = []
181182

182183
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
183184
# using the given strftime format.

0 commit comments

Comments
 (0)