From e043953cfbfebe35b30997214734a1fe4f957551 Mon Sep 17 00:00:00 2001 From: Adam Weeks Date: Wed, 7 Aug 2024 16:19:28 -0400 Subject: [PATCH] chore(docs): use rtd theme --- .github/workflows/docs.yml | 1 + docs/conf.py | 9 +++------ docs/requirements.txt | 1 + 3 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 docs/requirements.txt diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 9b0c620..f00286b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -16,6 +16,7 @@ jobs: id-token: write environment: name: github-pages + url: ${{ steps.deployment.outputs.page_url }} env: POETRY_VIRTUALENVS_CREATE: false steps: diff --git a/docs/conf.py b/docs/conf.py index c3b9a77..e2ced53 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -6,6 +6,7 @@ import webexpythonsdk +import sphinx_rtd_theme project = "webexpythonsdk" @@ -52,13 +53,9 @@ # a list of builtin themes. # # html_theme = 'alabaster' -on_rtd = os.environ.get("READTHEDOCS", None) == "True" -if not on_rtd: - import sphinx_rtd_theme - - html_theme = "sphinx_rtd_theme" - html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] +html_theme = "sphinx_rtd_theme" +html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the diff --git a/docs/requirements.txt b/docs/requirements.txt new file mode 100644 index 0000000..52b04f2 --- /dev/null +++ b/docs/requirements.txt @@ -0,0 +1 @@ +sphinx_rtd_theme \ No newline at end of file