diff --git a/.readthedocs.yml b/.readthedocs.yml index 73f8f141c..87283cf68 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -4,6 +4,10 @@ # Required version: 2 +build: + os: ubuntu-20.04 + tools: + python: "3.9" # Build documentation in the docs/ directory with Sphinx sphinx: @@ -17,8 +21,7 @@ sphinx: formats: all # Optionally set the version of Python and requirements required to build your docs -#python: +python: # version: 3.7 -# install: - -# - requirements: docs/requirements.txt + install: + - requirements: docs/requirements.txt diff --git a/docs/conf.py b/docs/conf.py index 2ee565e03..d32246789 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -31,6 +31,7 @@ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ + 'sphinx_rtd_theme', 'sphinx.ext.autosectionlabel' ] autosectionlabel_prefix_document = True @@ -69,6 +70,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_context = {} # Add custom style sheets def setup(app): diff --git a/docs/requirements.txt b/docs/requirements.txt new file mode 100644 index 000000000..7be32f526 --- /dev/null +++ b/docs/requirements.txt @@ -0,0 +1,3 @@ +sphinxcontrib-bibtex +sphinx_rtd_theme +docutils==0.16 \ No newline at end of file