Skip to content

Commit

Permalink
RTD with own conda environment
Browse files Browse the repository at this point in the history
- new devtools/conda-envs/readthedocs.yaml
- update RTD config with new env file
- update sphinx config (intersphinx, put authors into variable)
- blackened sphinx conf.py
  • Loading branch information
orbeckst committed Oct 10, 2024
1 parent fe47516 commit b2a7d54
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ python:
path: .

conda:
environment: devtools/conda-envs/test_env.yaml
environment: devtools/conda-envs/readthedocs.yaml

26 changes: 26 additions & 0 deletions devtools/conda-envs/readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: readthedocs
channels:
- conda-forge
dependencies:
- python >=3.10
- six
- numpy
- scipy >=1.11.0
- matplotlib-base
- pandas
- scikit-learn
- pyyaml
- mdanalysis >=2
- numkit
- gromacswrapper
- alchemlyb >=2
- pymbar >=4
- rdkit
- seaborn
- svgutils
- cairosvg
- pypdf

# sphinx and RTD
- sphinx
- sphinx_rtd_theme
34 changes: 16 additions & 18 deletions doc/sphinx/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@
# General information about the project.
project = "MDPOW"
now = datetime.datetime.now()
copyright = "2010–{}, Shujie Fan, Ian Kenney, Alia Lescoulie, Bogdan Iorga, and Oliver Beckstein".format(
now.year
)
authors = "Shujie Fan, Ian Kenney, Alia Lescoulie, Bogdan Iorga, and Oliver Beckstein"
copyright = "2010–{}, ".format(now.year) + authors

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down Expand Up @@ -220,16 +219,16 @@
latex_documents = [
(
"index",
"MDpow.tex",
"MDpow Documentation",
"Ian Kenney, Bogdan Iorga, and Oliver Beckstein",
"MDPOW.tex",
"MDPOW Documentation",
authors,
"manual",
),
]

# The name of an image file (relative to this directory) to place at the top of
# the title page.
# latex_logo = None
latex_logo = html_logo

# For "manual" documents, if this is true, then toplevel headings are parts,
# not chapters.
Expand All @@ -250,17 +249,16 @@
# intersphinx: reference standard lib and RecSQL
# http://sphinx.pocoo.org/latest/ext/intersphinx.html
intersphinx_mapping = {
"https://docs.python.org/": None,
"https://numpy.org/doc/stable/": None,
"https://docs.scipy.org/doc/scipy/reference/": None,
"https://gromacswrapper.readthedocs.io/en/latest": None,
"https://docs.mdanalysis.org/stable/": None,
"https://www.rdkit.org/docs/": None,
"https://pandas.pydata.org/docs/": None,
"https://seaborn.pydata.org": None,
"https://cairosvg.org/documentation/": None,
"https://svgutils.readthedocs.io/en/latest/": None,
"https://pypdf.readthedocs.io/en/stable/": None,
"python": ("https://docs.python.org/3", None),
"numpy": ("https://numpy.org/doc/stable/", None),
"scipy": ("https://docs.scipy.org/doc/scipy", None),
"GromacsWrapper": ("https://gromacswrapper.readthedocs.io/en/latest", None),
"MDAnalysis": ("https://docs.mdanalysis.org/stable/", None),
"RDKit": ("https://www.rdkit.org/docs/", None),
"pandas": ("https://pandas.pydata.org/docs/", None),
"seaborn": ("https://seaborn.pydata.org", None),
"svgutils": ("https://svgutils.readthedocs.io/en/latest/", None),
"pypdf": ("https://pypdf.readthedocs.io/en/stable/", None),
}


Expand Down

0 comments on commit b2a7d54

Please sign in to comment.