Skip to content

Commit

Permalink
Merge branch 'doc' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
RKrahl committed Mar 20, 2024
2 parents 22d45c9 + d836255 commit bb57b48
Show file tree
Hide file tree
Showing 8 changed files with 234 additions and 163 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Incompatible changes
Bug fixes and minor changes
---------------------------

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

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

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


.. _changes-1_2_0:
Expand Down
22 changes: 20 additions & 2 deletions doc/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,12 @@ def make_meta_rst(last_release):
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinx_copybutton',
]
try:
import sphinx_copybutton
extensions.append('sphinx_copybutton')
except ImportError:
pass

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

# Enable automatic numbering of figures, tables and code-blocks
numfig = True

# Strings to format figure, table, code-block, and section numbers
numfig_format = {
'figure': "Figure %s",
'table': "Table %s",
'code-block': "Snippet %s",
'section': "Section %s",
}

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
Expand All @@ -102,7 +117,10 @@ def make_meta_rst(last_release):

# -- Options for intersphinx extension ---------------------------------------

intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
intersphinx_mapping = {
'python': ('https://docs.python.org/3', None),
'lxml': ('https://lxml.de/apidoc/', None),
}

# -- Options for HTML output -------------------------------------------------

Expand Down
6 changes: 3 additions & 3 deletions doc/src/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ A few derived variables are also set in
| `promptPass` | ``-P``, ``--prompt-pass`` | | :const:`False` | no | \(3),(4),(5) |
+-----------------+-----------------------------+-----------------------+----------------+-----------+--------------+

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

Notes:
Expand Down
Loading

0 comments on commit bb57b48

Please sign in to comment.