From 9766be4b1ef33cc5d94d0151bc717964d0f36511 Mon Sep 17 00:00:00 2001 From: Arnau Casau <47946624+arnaucasau@users.noreply.github.com> Date: Thu, 26 Oct 2023 02:15:33 +0200 Subject: [PATCH] Update Sphinx theme (#32) * Update Sphinx theme * Update conf.py --- docs/conf.py | 12 +++--------- docs/index.rst | 5 +++++ requirements-dev.txt | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 32e967f..1e75b53 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -41,7 +41,7 @@ extensions = ['sphinx.ext.autodoc', 'jupyter_sphinx', 'reno.sphinxext', 'sphinx.ext.intersphinx', - "sphinxcontrib.jquery", # Remove when changing html_theme to qiskit_ecosystem. + 'qiskit_sphinx_theme', ] html_static_path = ['_static'] templates_path = ['_templates'] @@ -66,14 +66,8 @@ autoclass_content = 'both' # HTML Output Options -html_theme = 'qiskit_sphinx_theme' - -html_theme_options = { - 'logo_only': False, - 'display_version': True, - 'prev_next_buttons_location': 'bottom', - 'style_external_links': True, -} +html_theme = "qiskit-ecosystem" +html_title = f"{project} {release}" htmlhelp_basename = 'qiskit-neko' diff --git a/docs/index.rst b/docs/index.rst index 2abd79b..b4a085e 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -2,6 +2,11 @@ Welcome to the documentation of qiskit-neko =========================================== +.. toctree:: + :hidden: + + Home + .. toctree:: config diff --git a/requirements-dev.txt b/requirements-dev.txt index 6795fa0..20ea91c 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,7 +2,7 @@ black~=22.0 astroid==2.9.2 pylint==2.12.2 Sphinx>=3.0.0 -qiskit-sphinx-theme~=1.11.1 +qiskit-sphinx-theme~=1.16.0 sphinx-autodoc-typehints jupyter-sphinx pygments>=2.4