Skip to content

Commit 5ffcb58

Browse files
Fix all sphinx warnings (#1796)
* Fix Sphinx warnings and fail on warning * Fix remaining Sphinx warnings by translating release history to markdown * Update changelog * fix weird formatting thing in releasehistory * fix unclosed literal in to_qcschema docstring --------- Co-authored-by: Jeff Wagner <[email protected]> Co-authored-by: Jeff Wagner <[email protected]>
1 parent 0375d5f commit 5ffcb58

File tree

13 files changed

+903
-986
lines changed

13 files changed

+903
-986
lines changed

.readthedocs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
version: 2
33
sphinx:
44
configuration: docs/conf.py
5+
fail_on_warning: true
56
build:
67
os: ubuntu-20.04
78
tools:

FAQ.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,13 @@ This behavior is in line with OpenFF's general attitude of requiring users to ex
6666

6767
## I'm having troubles installing the OpenFF Toolkit on my Apple Silicon Mac.
6868

69-
As of August 2022, some upstreams (at least AmberTools, possibly more) are not built on `osx-arm64`, so installing the OpenFF stack is only possible with [Rosetta](https://support.apple.com/en-au/HT211861). See the [platform support](installation/m1) section of the installation documentation for more.
69+
As of August 2022, some upstreams (at least AmberTools, possibly more) are not built on `osx-arm64`, so installing the OpenFF stack is only possible with [Rosetta]. See the [platform support] section of the installation documentation for more.
7070

7171
(Keywords `osx-arm64`, M1 Mac, M2 Mac)
7272

73+
[Rosetta]: https://support.apple.com/en-au/HT211861
74+
[platform support]: inv:#install_arm
75+
7376
## My mamba/conda installation of the toolkit doesn't appear to work. What should I try next?
7477

7578
We recommend that you install the toolkit in a fresh environment, explicitly passing the channels to be used, in-order:

docs/environment.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ channels:
77
dependencies:
88
- pip
99
# readthedocs dependencies
10-
- myst-nb
11-
- myst-parser>=0.14
10+
- myst-nb=1
11+
- myst-parser
1212
- docutils
1313
- sphinx-notfound-page
14-
- sphinx>=5.0,<6
14+
- sphinx=6
1515
# conda build dependencies
1616
- python=3.9
1717
- setuptools

docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ If you do not have Mamba or Conda installed, see the [ecosystem installation doc
2626
Installation via the Mamba package manager is the recommended method since all dependencies are automatically fetched and installed for you.
2727
:::
2828

29-
[ecosystem installation documentation]: openff.docs:install
29+
[ecosystem installation documentation]: inv:openff.docs#install
3030

3131
(installation/platforms)=
3232

docs/releasehistory.md

Lines changed: 849 additions & 950 deletions
Large diffs are not rendered by default.

docs/topology.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ including offering serialization to a variety of standard formats (including [XM
1111

1212
## Primary objects
1313

14-
:::{eval-rst}
14+
```{eval-rst}
1515
.. currentmodule:: openff.toolkit.topology
1616
.. autosummary::
1717
:nosignatures:
@@ -20,11 +20,11 @@ including offering serialization to a variety of standard formats (including [XM
2020
FrozenMolecule
2121
Molecule
2222
Topology
23-
:::
23+
```
2424

2525
## Secondary objects
2626

27-
:::{eval-rst}
27+
```{eval-rst}
2828
.. currentmodule:: openff.toolkit.topology
2929
.. autosummary::
3030
:nosignatures:
@@ -37,5 +37,5 @@ including offering serialization to a variety of standard formats (including [XM
3737
ImproperDict
3838
HierarchyScheme
3939
HierarchyElement
40-
:::
40+
```
4141

docs/users/concepts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ OpenFF [`ForceField`](openff.toolkit.typing.engines.smirnoff.forcefield.ForceFie
2121
: An object generated from an OFFXML file (or other source of SMIRNOFF data).
2222
Most information from the SMIRNOFF data source is stored in this object's several `ParameterHandler`s, however some top-level SMIRNOFF data is stored in the `ForceField` object itself.
2323

24-
OpenFF [`Interchange`](openff.interchange:index)
24+
OpenFF [`Interchange`](inv:openff.interchange#index)
2525
: A `Topology` that has been parametrized by a `ForceField`. An `Interchange` contains all the information needed to calculate an energy or start a simulation. `Interchange` also provides methods to export this information
2626
to MD simulation engines.

docs/users/developing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ Some CI builds run using only RDKit as a backend, some run using only OpenEye To
398398

399399
The CI matrix is currently as follows:
400400

401-
:::{eval-rst}
401+
```{eval-rst}
402402
+-----------------------+------------+-----------+-------------+------------+-----------+-------------+
403403
| | Linux | macOS |
404404
+-----------------------+------------+-----------+-------------+------------+-----------+-------------+
@@ -414,4 +414,4 @@ The CI matrix is currently as follows:
414414
+-----------------------+------------+-----------+-------------+------------+-----------+-------------+
415415
| Python 3.12 and newer | Pending official releases and upstream support |
416416
+-----------------------+------------+-----------+-------------+------------+-----------+-------------+
417-
:::
417+
```

docs/users/smirnoff.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ general or as specific as needed.
8484
[SMIRKS]: https://www.daylight.com/dayhtml/doc/theory/theory.smirks.html
8585
[standards repository]: https://openforcefield.github.io/standards/standards/smirnoff/
8686
[`Interchange`]: openff.interchange.Interchange
87-
[producing input files and data]: openff.interchange:using/output
87+
[producing input files and data]: inv:openff.interchange#using/output
8888

8989
:::{hint}
9090
This page is not the SMIRNOFF spec; it has been moved to the

openff/toolkit/topology/molecule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4416,7 +4416,7 @@ def to_qcschema(self, multiplicity=1, conformer=0, extras=None):
44164416
44174417
The kekule structure of the molecule is saved in two places on the returned Molecule:
44184418
4419-
* ``extras["canonical_isomeric_explicit_hydrogen_mapped_smiles"]
4419+
* ``extras["canonical_isomeric_explicit_hydrogen_mapped_smiles"]``
44204420
* ``identifiers["canonical_isomeric_explicit_hydrogen_mapped_smiles"]``
44214421
44224422
.. warning :: This API is experimental and subject to change.

0 commit comments

Comments
 (0)