Skip to content

Commit bb57b48

Browse files
committed
Merge branch 'doc' into develop
2 parents 22d45c9 + d836255 commit bb57b48

8 files changed

Lines changed: 234 additions & 163 deletions

File tree

CHANGES.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Incompatible changes
3232
Bug fixes and minor changes
3333
---------------------------
3434

35-
+ `#141`_, `#142`_: Review documentation.
35+
+ `#141`_, `#142`_, `#150`_: Review documentation.
3636

3737
+ `#145`_: Review build tool chain.
3838

@@ -45,6 +45,7 @@ Bug fixes and minor changes
4545
.. _#147: https://github.com/icatproject/python-icat/pull/147
4646
.. _#148: https://github.com/icatproject/python-icat/issues/148
4747
.. _#149: https://github.com/icatproject/python-icat/pull/149
48+
.. _#150: https://github.com/icatproject/python-icat/pull/150
4849

4950

5051
.. _changes-1_2_0:

doc/src/conf.py

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,12 @@ def make_meta_rst(last_release):
6868
extensions = [
6969
'sphinx.ext.autodoc',
7070
'sphinx.ext.intersphinx',
71-
'sphinx_copybutton',
7271
]
72+
try:
73+
import sphinx_copybutton
74+
extensions.append('sphinx_copybutton')
75+
except ImportError:
76+
pass
7377

7478
# Add any paths that contain templates here, relative to this directory.
7579
templates_path = ['_templates']
@@ -80,6 +84,17 @@ def make_meta_rst(last_release):
8084
# The master toctree document.
8185
master_doc = 'index'
8286

87+
# Enable automatic numbering of figures, tables and code-blocks
88+
numfig = True
89+
90+
# Strings to format figure, table, code-block, and section numbers
91+
numfig_format = {
92+
'figure': "Figure %s",
93+
'table': "Table %s",
94+
'code-block': "Snippet %s",
95+
'section': "Section %s",
96+
}
97+
8398
# The language for content autogenerated by Sphinx. Refer to documentation
8499
# for a list of supported languages.
85100
#
@@ -102,7 +117,10 @@ def make_meta_rst(last_release):
102117

103118
# -- Options for intersphinx extension ---------------------------------------
104119

105-
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
120+
intersphinx_mapping = {
121+
'python': ('https://docs.python.org/3', None),
122+
'lxml': ('https://lxml.de/apidoc/', None),
123+
}
106124

107125
# -- Options for HTML output -------------------------------------------------
108126

doc/src/config.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ A few derived variables are also set in
171171
| `promptPass` | ``-P``, ``--prompt-pass`` | | :const:`False` | no | \(3),(4),(5) |
172172
+-----------------+-----------------------------+-----------------------+----------------+-----------+--------------+
173173

174-
See the table for an overview of predefined configuration variables.
175-
Mandatory means that an error will be raised in
176-
:meth:`icat.config.Config.getconfig` if no value is found for the
174+
See :numref:`tab-config-vars` for an overview of predefined
175+
configuration variables. Mandatory means that an error will be raised
176+
in :meth:`icat.config.Config.getconfig` if no value is found for the
177177
configuration variable in question.
178178

179179
Notes:

0 commit comments

Comments
 (0)