diff --git a/.readthedocs.yml b/.readthedocs.yml index 8f1d441..103554e 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -9,5 +9,11 @@ build: tools: python: "3.7" +python: + install: + - requirements: requirements.txt + - method: setuptools + path: . + sphinx: configuration: docs/conf.py diff --git a/docs/conf.py b/docs/conf.py index 0766dc4..cf1ce36 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -38,6 +38,7 @@ extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.mathjax', + 'sphinx_rtd_theme', ] # Add any paths that contain templates here, relative to this directory. @@ -108,7 +109,7 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'default' +html_theme = 'sphinx_rtd_theme' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the diff --git a/docs/index.rst b/docs/index.rst index 1e13d71..912bdc0 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -7,7 +7,7 @@ Dropbox for Python Documentation tutorial .. toctree:: - :maxdepth: 2 + :maxdepth: 1 api/async api/auth diff --git a/requirements.txt b/requirements.txt index 2b5b9a8..d95ccf4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,5 +8,6 @@ ply pytest pytest-runner==5.2.0 sphinx +sphinx_rtd_theme twine wheel