-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix type alias, generics, and example order in documentation (#67)
This PR fixes the following minor errors and aspects in the documentation. 1. The `Smiles` type alias introduced in `parameters.substance`. This type alias is manually configured in `conf.py`. In order to avoid the documentation to load all of the attributes and functions of `str`, the templates were changed slightly to not include those, resulting in the output shown at the end. 2. The generics in `baybe.utils.basic`. Sphinx behaves weird when using generics (see sphinx-doc/sphinx#10974). Thus, an exception was included in the nitpick_ignore dictionary, eliminating the error. 3. The order of the examples in the table of contents as well as the level of displayed headings was adjusted
- Loading branch information
Showing
5 changed files
with
45 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{ fullname | escape | underline}} | ||
|
||
.. currentmodule:: {{ module }} | ||
|
||
{% if not fullname in ("Smiles") %} | ||
.. auto{{ objtype }}:: {{ objname }} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters