Workaround to get sphinx-build working again, refs 1153

This commit is contained in:
Simon Willison 2023-07-08 11:22:21 -07:00
commit 50a6355c08
3 changed files with 6 additions and 4 deletions

View file

@ -43,7 +43,7 @@ jobs:
if: ${{ github.ref == 'refs/heads/main' }} if: ${{ github.ref == 'refs/heads/main' }}
run: |- run: |-
cd docs cd docs
sphinx-build -b xml . _build DISABLE_SPHINX_INLINE_TABS=1 sphinx-build -b xml . _build
sphinx-to-sqlite ../docs.db _build sphinx-to-sqlite ../docs.db _build
cd .. cd ..
- name: Set up the alternate-route demo - name: Set up the alternate-route demo

View file

@ -84,7 +84,7 @@ jobs:
- name: Build docs.db - name: Build docs.db
run: |- run: |-
cd docs cd docs
sphinx-build -b xml . _build DISABLE_SPHINX_INLINE_TABS=1 sphinx-build -b xml . _build
sphinx-to-sqlite ../docs.db _build sphinx-to-sqlite ../docs.db _build
cd .. cd ..
- name: Set up Cloud Run - name: Set up Cloud Run

View file

@ -17,7 +17,8 @@
# add these directories to sys.path here. If the directory is relative to the # add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here. # documentation root, use os.path.abspath to make it absolute, like shown here.
# #
# import os import os
# import sys # import sys
# sys.path.insert(0, os.path.abspath('.')) # sys.path.insert(0, os.path.abspath('.'))
@ -35,8 +36,9 @@ extensions = [
"sphinx.ext.extlinks", "sphinx.ext.extlinks",
"sphinx.ext.autodoc", "sphinx.ext.autodoc",
"sphinx_copybutton", "sphinx_copybutton",
"sphinx_inline_tabs",
] ]
if not os.environ.get("DISABLE_SPHINX_INLINE_TABS"):
extensions += ["sphinx_inline_tabs"]
extlinks = { extlinks = {
"issue": ("https://github.com/simonw/datasette/issues/%s", "#%s"), "issue": ("https://github.com/simonw/datasette/issues/%s", "#%s"),