From cb57c3e36a9853a2001e405a970966df8f2417ac Mon Sep 17 00:00:00 2001 From: "Davide Gessa (dakk)" Date: Mon, 27 Nov 2023 11:38:52 +0100 Subject: [PATCH] docs dark theme --- .github/workflows/docs.yaml | 2 +- CONTRIBUTING.md | 2 +- docs/source/conf.py | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index f0459822..0b6035dc 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -15,7 +15,7 @@ jobs: python-version: '3.10' - name: Install dependencies run: | - pip install sphinx sphinx_rtd_theme myst_nb + pip install sphinx sphinx_rtd_theme sphinx_rtd_dark_mode myst_nb pip install sympy qiskit-terra qiskit-aer matplotlib pylatexenc python setup.py install - name: Sphinx build diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1373b11b..3d984228 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -18,7 +18,7 @@ tox ## Make docs ``` -pip install sphinx sphinx_rtd_theme myst_nb +pip install sphinx sphinx_rtd_theme sphinx_rtd_dark_mode myst_nb cd docs make html ``` \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index 04b247f4..81a6732a 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -21,6 +21,7 @@ "sphinx.ext.autosummary", "sphinx.ext.coverage", "sphinx.ext.napoleon", + "sphinx_rtd_dark_mode", "sphinx_rtd_theme", "myst_nb", ] @@ -30,7 +31,8 @@ autodoc_source_dir = [ "../qlasskit", ] - +pygments_style = "lightbulb" +default_dark_mode = False # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output