Skip to content

Commit

Permalink
Sphinx conf.py edited to include new extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
dprada committed Nov 29, 2022
1 parent 2719897 commit 398b297
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_upload_conda_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
conda_deployment_with_new_tag:
name: Conda deployment of package to platform ${{ matrix.platform }} with Python ${{ matrix.python-version }}
name: Conda deployment of package to platform with Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false # do not cancel all in-progress jobs if any job variation fails
Expand Down
3 changes: 2 additions & 1 deletion devtools/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ docs:
- sphinx
- sphinx_rtd_theme
- sphinxcontrib-bibtex
- sphinx-remove-toctrees
- sphinx-copybutton
- myst-nb
- openmm
- unyt
Expand All @@ -58,4 +60,3 @@ conda-build:
- conda-build
- boa


19 changes: 19 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,22 @@
'sphinx.ext.githubpages',
'sphinxcontrib.bibtex',
'sphinx.ext.extlinks',
'sphinx_remove_toctrees',
'sphinx_copybutton',
'myst_nb'
]

# Myst extensions and options

myst_enable_extensions = [
'dollarmath',
'amsmath'
]

myst_heading_anchors = 3

# Autosummary options

autosummary_generate = True

# Napoleon settings
Expand Down Expand Up @@ -118,6 +131,12 @@
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'default'

# Remove from toctrees
remove_from_toctrees = []
for directory in os.walk('api'):
if directory[0].endswith('/autosummary'):
remove_from_toctrees.append(directory[0]+'/*')

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

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand Down

0 comments on commit 398b297

Please sign in to comment.