From 407752e79039e5fe3ccd0582a0d302d048093f3b Mon Sep 17 00:00:00 2001 From: Jim Garrison Date: Wed, 4 Sep 2024 13:29:50 -0400 Subject: [PATCH] Upgrade to qiskit-sphinx-theme 2.0.0 This upgrades to qiskit-sphinx-theme 2.0.0. It includes the Qiskit logo because the logo is no longer included in the theme. qiskit-sphinx-theme 2.0 supports dark mode as a new feature, so both light and dark versions of the logo are included. This implements the same change as the PR at https://github.com/Qiskit/qiskit-serverless/pull/1481. --- docs/_static/images/qiskit-dark-logo.svg | 178 ++++++++++++++++++++++ docs/_static/images/qiskit-light-logo.svg | 178 ++++++++++++++++++++++ docs/conf.py | 3 + pyproject.toml | 2 +- 4 files changed, 360 insertions(+), 1 deletion(-) create mode 100644 docs/_static/images/qiskit-dark-logo.svg create mode 100644 docs/_static/images/qiskit-light-logo.svg diff --git a/docs/_static/images/qiskit-dark-logo.svg b/docs/_static/images/qiskit-dark-logo.svg new file mode 100644 index 000000000..b52089083 --- /dev/null +++ b/docs/_static/images/qiskit-dark-logo.svg @@ -0,0 +1,178 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/_static/images/qiskit-light-logo.svg b/docs/_static/images/qiskit-light-logo.svg new file mode 100644 index 000000000..25b27dd31 --- /dev/null +++ b/docs/_static/images/qiskit-light-logo.svg @@ -0,0 +1,178 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/conf.py b/docs/conf.py index 1448e0ba7..ec2bb5465 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -80,7 +80,10 @@ "source_repository": "https://github.com/Qiskit-Extensions/circuit-knitting-toolbox/", "source_branch": "main", "source_directory": "docs/", + "dark_logo": "images/qiskit-dark-logo.svg", + "light_logo": "images/qiskit-light-logo.svg", } +html_static_path = ["_static"] # autodoc/autosummary options autosummary_generate = True diff --git a/pyproject.toml b/pyproject.toml index a3293c311..ead9dc1cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -74,7 +74,7 @@ docs = [ "nbsphinx>=0.8.8", "sphinx-copybutton>=0.5.0", "reno>=3.4.0", - "qiskit-sphinx-theme>=1.14.0, <2" + "qiskit-sphinx-theme>=2.0.0, <3" ] notebook-dependencies = [ "matplotlib",