Skip to content

Commit

Permalink
Set up sphinx-sitemap (#81)
Browse files Browse the repository at this point in the history
Also disable ase intersphinx, since the docsite is down...
  • Loading branch information
ceriottm authored Sep 27, 2024
1 parent 23f8c40 commit 206c312
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
sphinx
sphinx-sitemap
sphinx-gallery
sphinx-toggleprompt
furo
Expand Down
10 changes: 7 additions & 3 deletions docs/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

# Add any Sphinx extension module names here, as strings.
extensions = [
"sphinx_sitemap",
"sphinx.ext.viewcode",
"sphinx.ext.intersphinx",
"sphinx_gallery.load_style",
Expand All @@ -21,8 +22,8 @@
)

intersphinx_mapping = {
"ase": ("https://wiki.fysik.dtu.dk/ase/", None),
"metatensor": ("https://lab-cosmo.github.io/metatensor/latest/", None),
# "ase": ("https://wiki.fysik.dtu.dk/ase/", None),
"metatensor": ("https://docs.metatensor.org/latest/", None),
"numpy": ("https://numpy.org/doc/stable/", None),
"matplotlib": ("https://matplotlib.org/stable/", None),
"python": ("https://docs.python.org/3", None),
Expand All @@ -37,9 +38,12 @@
),
]


htmlhelp_basename = "Atomistic cookbook"
html_theme = "furo"
html_static_path = [os.path.join("..", "_static")]
html_favicon = "../_static/cookbook-icon.png"
html_logo = "../_static/cookbook-icon.svg"
html_extra_path = ['google4ae5e3529d19a84c.html']
html_baseurl = "https://lab-cosmo.github.io/atomistic-cookbook/latest/"
sitemap_url_scheme = "{link}"
html_extra_path = ["google4ae5e3529d19a84c.html"]

0 comments on commit 206c312

Please sign in to comment.