Merge pull request #23 from m68k-micropython/fix-doc-build

This commit is contained in:
Jeff Epler 2025-08-11 12:11:48 -05:00 committed by GitHub
commit 5e6e4d102e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 13 deletions

View file

@ -9,6 +9,10 @@ build:
os: ubuntu-24.04
tools:
python: "3.13"
jobs:
post_install:
- make -C ports/m68kmac submodules
- make -C docs doc-pre
# Build documentation in the "docs/" directory with Sphinx
sphinx:

View file

@ -141,20 +141,10 @@ rst_epilog = """
# -- Options for HTML output ----------------------------------------------
# on_rtd is whether we are on readthedocs.org
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
import sphinx_rtd_theme
if not on_rtd: # only import and set the theme if we're building docs locally
try:
import sphinx_rtd_theme
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), "."]
except:
html_theme = "default"
html_theme_path = ["."]
else:
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