Workaround to get sphinx-build working again, refs 1153

pull/2099/head
Simon Willison 2023-07-08 11:22:21 -07:00
rodzic c076fb65e0
commit 50a6355c08
3 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

@ -17,7 +17,8 @@
# 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.
#
# import os
import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
@ -35,8 +36,9 @@ extensions = [
"sphinx.ext.extlinks",
"sphinx.ext.autodoc",
"sphinx_copybutton",
"sphinx_inline_tabs",
]
if not os.environ.get("DISABLE_SPHINX_INLINE_TABS"):
extensions += ["sphinx_inline_tabs"]
extlinks = {
"issue": ("https://github.com/simonw/datasette/issues/%s", "#%s"),