From dffd43468de34816fd8554ff2d97a0bab565b357 Mon Sep 17 00:00:00 2001 From: Eric Arellano Date: Wed, 24 May 2023 09:04:16 -0600 Subject: [PATCH] Upgrade to qiskit_sphinx_theme 1.12 --- .github/workflows/docs-publish.yml | 1 + docs/conf.py | 2 -- requirements-dev.txt | 2 +- tox.ini | 6 ++++++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs-publish.yml b/.github/workflows/docs-publish.yml index 4cdb823bfb..6c5ffaae34 100644 --- a/.github/workflows/docs-publish.yml +++ b/.github/workflows/docs-publish.yml @@ -1,5 +1,6 @@ name: Docs Publish on: + workflow_dispatch: push: tags: - "*" diff --git a/docs/conf.py b/docs/conf.py index d43ff14a6f..6ca87758af 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -44,8 +44,6 @@ copyright = f"2017-{datetime.date.today().year}, Qiskit Development Team" # pylint: disable=redefined-builtin author = 'Qiskit Development Team' -import qiskit_sphinx_theme - # The short X.Y version version = '0.13.0' # The full version, including alpha/beta/rc tags diff --git a/requirements-dev.txt b/requirements-dev.txt index 1ea832f6d7..c3055af787 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -13,6 +13,6 @@ reno>=3.4.0 ddt>=1.2.0,!=1.4.0 matplotlib>=3.3 seaborn>=0.9.0 -qiskit_sphinx_theme>=1.10 +qiskit_sphinx_theme~=1.12.0 nbsphinx diff --git a/tox.ini b/tox.ini index 5e42476b4d..8f418f383c 100644 --- a/tox.ini +++ b/tox.ini @@ -54,3 +54,9 @@ commands = python -I -m build --wheel -C=--build-option=-- -C=--build-option=-- -C=--build-option=-j4 pip install --find-links={toxinidir}/dist qiskit_aer sphinx-build -W -b html docs/ docs/_build/html -j auto {posargs} + +[testenv:docs-clean] +skip_install = true +deps = +allowlist_externals = rm +commands = rm -rf {toxinidir}/docs/stubs/ {toxinidir}/docs/_build