Skip to content

Commit 0607a04

Browse files
Merge pull request #1079 from openforcefield/update-sphinx
Update Sphinx to 6.1.2
2 parents 76d60c9 + 5b70445 commit 0607a04

File tree

6 files changed

+32
-19
lines changed

6 files changed

+32
-19
lines changed

devtools/conda-envs/docs_env.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ dependencies:
2020
- myst-parser
2121
- numpydoc
2222
- autodoc-pydantic =2
23-
- sphinx ~=4.4
23+
- sphinx ==6.1.3
2424
- sphinxcontrib-mermaid
2525
- sphinx-notfound-page
2626
- pip:
27-
- git+https://github.com/openforcefield/openff-sphinx-theme.git@main
27+
- git+https://github.com/openforcefield/openff-sphinx-theme.git@main

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
autodoc_default_options = {
103103
"member-order": "bysource",
104104
"undoc-members": True,
105-
"inherited-members": [],
105+
"inherited-members": "",
106106
"show-inheritance": True,
107107
}
108108
autodoc_preserve_defaults = True
@@ -169,7 +169,7 @@
169169
#
170170
# This is also used if you do content translation via gettext catalogs.
171171
# Usually you set "language" from the command line for these cases.
172-
language = None
172+
language = "en"
173173

174174
# List of patterns, relative to source directory, that match files and
175175
# directories to ignore when looking for source files.

docs/docutils.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[html writers]
2+
table-style: colwidths-grid

docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Installation
22

3-
These instructions assume that the `mamba` package manager is installed. If you do not have Conda/Mamba or a drop-in replacement installed, see the [OpenFF installation documentation](openff.docs:install).
3+
These instructions assume that the `mamba` package manager is installed. If you do not have Conda/Mamba or a drop-in replacement installed, see the [OpenFF installation documentation](inv:openff.docs#install).
44

55
## Quick Installation
66

docs/using/plugins.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Currently, systems using custom interactions can only be exported to OpenMM. The
88

99
[`ParameterHandler`]: openff.toolkit.typing.engines.smirnoff.parameters.ParameterHandler
1010
[`SMIRNOFFCollection`]: openff.interchange.plugins.SMIRNOFFCollection
11-
[SetupTools entry points]: setuptools:userguide/entry_point
11+
[SetupTools entry points]: inv:setuptools#userguide/entry_point
1212
[`openmm.Force`]: openmm.openmm.Force
1313

1414
## Creating a custom `ParameterHandler`
@@ -46,9 +46,9 @@ The high-level objectives of a parameter handler are to:
4646
* define optional attributes such as `id`
4747

4848
[`ParameterType`]: openff.toolkit.typing.engines.smirnoff.parameters.ParameterType
49-
[entry point group]: setuptools:userguide/entry_point
49+
[entry point group]: inv:setuptools#userguide/entry_point
5050
[`check_handler_compatibility`]: openff.toolkit.typing.engines.smirnoff.parameters.ParameterHandler.check_handler_compatibility
51-
[Toolkit documentation]: openff.toolkit:developing
51+
[Toolkit documentation]: inv:openff.toolkit#developing
5252

5353
## Creating a custom `SMIRNOFFCollection`
5454

openff/interchange/components/interchange.py

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,14 @@ def from_smirnoff(
120120
121121
Notes
122122
-----
123-
If the `Molecule` objects in the `topology` argument each contain conformers, the returned `Interchange` object
124-
will have its positions set via concatenating the 0th conformer of each `Molecule`.
123+
If the ``Molecule`` objects in the ``topology`` argument each contain
124+
conformers, the returned ``Interchange`` object will have its positions
125+
set via concatenating the 0th conformer of each ``Molecule``.
125126
126-
If the `Molecule` objects in the `topology` argument have stored partial charges, these are ignored and charges
127-
are assigned according to the contents of the force field. To override the force field and use preset charges,
128-
use the `charge_from_molecules` argument.
127+
If the ``Molecule`` objects in the ``topology`` argument have stored
128+
partial charges, these are ignored and charges are assigned according to
129+
the contents of the force field. To override the force field and use
130+
preset charges, use the ``charge_from_molecules`` argument.
129131
130132
Examples
131133
--------
@@ -342,7 +344,7 @@ def to_gromacs(
342344
Molecule names in written files are not guaranteed to match the `Moleclue.name` attribute of the
343345
molecules in the topology, especially if they are empty strings or not unique.
344346
345-
See `to_gro` and `to_top` for more details.
347+
See :py:meth:`to_gro <Interchange.to_gro>` and :py:meth:`to_top <Interchange.to_top>` for more details.
346348
347349
"""
348350
from openff.interchange.interop.gromacs.export._export import GROMACSWriter
@@ -430,6 +432,9 @@ def to_gro(self, file_path: Path | str, decimal: int = 3):
430432
decimal: int, default=3
431433
The number of decimal places to use when writing the GROMACS coordinate file.
432434
435+
Notes
436+
-----
437+
433438
Residue IDs must be positive integers (or string representations thereof).
434439
435440
Residue IDs greater than 99,999 are reduced modulo 100,000 in line with common GROMACS practice.
@@ -569,9 +574,10 @@ def to_openmm_topology(
569574
Parameters
570575
----------
571576
collate
572-
If False, the default, all virtual sites will be added to a single residue at the end of the topology.
573-
If True, virtual sites will be collated with their associated molecule and added to the residue of the last
574-
atom in the molecule they belong to.
577+
If ``False``, the default, all virtual sites will be added to a
578+
single residue at the end of the topology. If ``True``, virtual
579+
sites will be collated with their associated molecule and added to
580+
the residue of the last atom in the molecule they belong to.
575581
576582
"""
577583
from openff.interchange.interop.openmm._topology import to_openmm_topology
@@ -593,9 +599,14 @@ def to_openmm_simulation(
593599
**kwargs,
594600
) -> "openmm.app.simulation.Simulation":
595601
"""
596-
Export this Interchange to an OpenMM `Simulation` object.
602+
Export this Interchange to an OpenMM ``Simulation`` object.
603+
604+
A :py:class:`Simulation <openmm.app.simulation.Simulation>` encapsulates
605+
all the information needed for a typical OpenMM simulation into a single
606+
object with a simple API.
597607
598-
Positions are set on the `Simulation` if present on the `Interchange`.
608+
Positions are set on the ``Simulation`` if present on the
609+
``Interchange``.
599610
600611
Additional forces, such as a barostat, should be added with the
601612
``additional_forces`` argument to avoid having to re-initialize

0 commit comments

Comments
 (0)