From 4104e09199240966086a9b472668af66c1baca29 Mon Sep 17 00:00:00 2001 From: Oliver Beckstein Date: Mon, 7 May 2018 16:45:31 -0700 Subject: [PATCH] create sitemap.xml - install https://github.com/jdillard/sphinx-sitemap - see https://github.com/MDAnalysis/MDAnalysis.github.io/issues/78 --- .travis.yml | 2 +- docs/conf.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 364d17c6..fa607dea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ install: - pip install --upgrade pytest - pip install codecov pytest-cov pytest-pep8 - pip install --upgrade numpy cython - - if [[ $TRAVIS_PYTHON_VERSION == "3.6" ]]; then pip install --upgrade sphinx; fi + - if [[ $TRAVIS_PYTHON_VERSION == "3.6" ]]; then pip install --upgrade sphinx sphinx-sitemap; fi - pip install -e . script: diff --git a/docs/conf.py b/docs/conf.py index 5b4ff7aa..f9b3cc1e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -30,7 +30,10 @@ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon'] +extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon', 'sphinx_sitemap'] + +# for sitemap with https://github.com/jdillard/sphinx-sitemap +site_url = "https://www.mdanalysis.org/pytng/" # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates']