diff --git a/pyproject.toml b/pyproject.toml index 46f969f..9c77280 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,6 +34,7 @@ dependencies = [ "myst-parser", "sphinxcontrib.svg2pdfconverter", # requires inkscape "psychopy-sphinx-theme", + "sphinx-sitemap", ] [project.optional-dependencies] # This is optional dependencies diff --git a/source/conf.py b/source/conf.py index d9c0a2b..fc4ac81 100755 --- a/source/conf.py +++ b/source/conf.py @@ -45,6 +45,7 @@ 'sphinx_copybutton', 'myst_parser', 'redirect', + 'sphinx_sitemap', 'sphinxcontrib.inkscapeconverter' # part of sphinxcontrib-svg2pdfconverter ] @@ -174,6 +175,7 @@ # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] +html_extra_path = ['robots.txt'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. @@ -212,7 +214,7 @@ # Output file base name for HTML help builder. htmlhelp_basename = 'PsychoPydoc' - +html_baseurl = 'https://psychopy.org/' # -- Options for LaTeX output -------------------------------------------------- latex_engine = 'pdflatex' # xelatex or pdflatex diff --git a/source/robots.txt b/source/robots.txt new file mode 100644 index 0000000..b2d65ba --- /dev/null +++ b/source/robots.txt @@ -0,0 +1,3 @@ +User-agent: * + +Sitemap: https://psychopy.org/sitemap.xml \ No newline at end of file