diff --git a/docs/source/conf.py b/docs/source/conf.py index 971c0c65a2..2baf20f270 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -136,7 +136,7 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'pydata_sphinx_theme' +html_theme = 'sphinx_book_theme' # Enable labeling for figures @@ -146,13 +146,23 @@ # further. For a list of options available for each theme, see the # documentation. html_theme_options = { - 'external_links': [ - {'url': 'http://www.aiida.net/', 'name': 'AiiDA Home'} - ], + 'home_page_in_toc': False, + 'repository_url': 'https://github.com/aiidateam/aiida-core', + 'repository_branch': 'develop', + 'use_repository_button': True, + 'use_issues_button': True, + 'path_to_docs': 'docs/source', + 'use_edit_page_button': True, + 'extra_navbar': '', 'github_url': 'https://github.com/aiidateam/aiida-core', 'twitter_url': 'https://twitter.com/aiidateam', - 'use_edit_page_button': True, + 'external_links': [ + {'url': 'https://aiida.net', 'name': 'AiiDA home'}, + ], } +html_domain_indices = True +html_title = '' + html_context = { 'github_user': 'aiidateam', 'github_repo': 'aiida-core', diff --git a/pyproject.toml b/pyproject.toml index dc6689a0ab..7fe98cbc53 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,7 +78,7 @@ rest = [ docs = [ "docutils==0.15.2", "pygments~=2.5", - "pydata-sphinx-theme~=0.6.3", + "sphinx-book-theme", "sphinx~=3.2.1", "sphinxcontrib-details-directive~=0.1.0", "sphinx-panels~=0.5.0", diff --git a/requirements/requirements-py-3.10.txt b/requirements/requirements-py-3.10.txt index 3f8594e616..38fd077e8f 100644 --- a/requirements/requirements-py-3.10.txt +++ b/requirements/requirements-py-3.10.txt @@ -100,7 +100,7 @@ py==1.11.0 py-cpuinfo==8.0.0 PyCifRW==4.4.3 pycparser==2.21 -pydata-sphinx-theme==0.6.3 +sphinx-book-theme==0.2.0 Pygments==2.10.0 pymatgen==2022.1.9 Pympler==0.9 diff --git a/requirements/requirements-py-3.8.txt b/requirements/requirements-py-3.8.txt index c2f9ac7841..b1d75f6114 100644 --- a/requirements/requirements-py-3.8.txt +++ b/requirements/requirements-py-3.8.txt @@ -101,7 +101,7 @@ py==1.11.0 py-cpuinfo==8.0.0 PyCifRW==4.4.3 pycparser==2.21 -pydata-sphinx-theme==0.6.3 +sphinx-book-theme==0.2.0 Pygments==2.10.0 pymatgen==2022.0.16 Pympler==0.9 diff --git a/requirements/requirements-py-3.9.txt b/requirements/requirements-py-3.9.txt index a4560d081b..9b572f4670 100644 --- a/requirements/requirements-py-3.9.txt +++ b/requirements/requirements-py-3.9.txt @@ -100,7 +100,7 @@ py==1.11.0 py-cpuinfo==8.0.0 PyCifRW==4.4.3 pycparser==2.21 -pydata-sphinx-theme==0.6.3 +sphinx-book-theme==0.2.0 Pygments==2.10.0 pymatgen==2022.0.16 Pympler==0.9