Skip to content

Commit

Permalink
DOC fix sphinx build and readthedocs configs (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
ogrisel authored Sep 10, 2021
1 parent 9a21e6c commit 36415a2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
3 changes: 1 addition & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
requirements_file: docs/requirements.txt

python:
setup_py_install: true
version: 3.5
version: 3.8
12 changes: 1 addition & 11 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#
import os
import sys
import sphinx_bootstrap_theme

sys.path.insert(0, os.path.abspath('../loky'))

Expand Down Expand Up @@ -91,19 +90,13 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'bootstrap'
html_theme = 'alabaster'

# 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
# documentation.
html_theme_options = {
'navbar_sidebarrel': False,
'navbar_links': [
("Examples", "auto_examples/index"),
("API", "API"),
("GitHub", "https://github.com/joblib/loky", True)
],
'bootswatch_theme': "united"
}
# 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
Expand Down Expand Up @@ -211,6 +204,3 @@

intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}


def setup(app):
app.add_stylesheet("custom.css")
4 changes: 4 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@
contain the root `toctree` directive.
.. include:: ../README.rst

.. toctree::
auto_examples/index
API
3 changes: 1 addition & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
-e git+http://github.com/sphinx-gallery/sphinx-gallery#egg=sphinx-gallery
sphinx_bootstrap_theme
sphinx-gallery
matplotlib

0 comments on commit 36415a2

Please sign in to comment.