Skip to content

Commit

Permalink
Added the sphinx-sitemap package to generate a xml sitemap to submit …
Browse files Browse the repository at this point in the history
…to google search console.
  • Loading branch information
IgorTatarnikov committed Oct 20, 2023
1 parent 4215c73 commit 5a3f499
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions {{cookiecutter.package_name}}/docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ pydata-sphinx-theme
setuptools-scm
sphinx
sphinx-autodoc-typehints
sphinx-sitemap
2 changes: 2 additions & 0 deletions {{cookiecutter.package_name}}/docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"sphinx.ext.autosummary",
"sphinx.ext.viewcode",
"sphinx.ext.intersphinx",
"sphinx-sitemap",
"myst_parser",
"nbsphinx",
]
Expand Down Expand Up @@ -113,6 +114,7 @@
# https://www.sphinx-doc.org/en/master/usage/extensions/githubpages.html
github_user = "{{cookiecutter.github_username_or_organization}}"
html_baseurl = f"https://{github_user}.github.io/{project}"
sitemap_url_scheme = "{link}"

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down

0 comments on commit 5a3f499

Please sign in to comment.