tlopex opened a new pull request, #19828:
URL: https://github.com/apache/tvm/pull/19828
This pr migrates the documentation site from sphinx_rtd_theme to
sphinx-book-theme (pydata-sphinx-theme based)
docs/conf.py:
- html_theme = "sphinx_book_theme"; drop the dead TVM_THEME/READTHEDOCS
indirection that always resolved to sphinx_rtd_theme.
- Replace the RTD-only html_theme_options ({"logo_only": True}) with
book-theme options: repository_url/branch + path_to_docs driving the
repository/edit/ source/issue buttons, GitHub + TVM-home icon_links, and an
extra_footer with the Community/Download/Docs links, ASF dropdown, and Apache
trademark notice (the copyright line is rendered natively by the theme, not
duplicated).
- Remove the tlcpack_sphinx_addon import and its
templates_path/html_static_path injection, plus the now-unused html_context
header/footer machinery and fixup_tutorials.
- sphinx_gallery_conf["show_signature"] = False to drop the "Gallery
generated by Sphinx-Gallery" line.
- Remove the dead docs/_static/css/tvm_theme.css (RTD-only selectors, never
linked).
Dependency pins updated in lockstep (sphinx-book-theme==1.2.0 is the minimum
release compatible with Sphinx 8.1.3; it pins pydata-sphinx-theme==0.16.1):
- docker/install/ubuntu_install_sphinx.sh: sphinx_rtd_theme + tlcpack addon
->
sphinx-book-theme + pydata-sphinx-theme.
- docker/install/ubuntu_install_python_package.sh: drop the tlcpack addon
pin.
- tests/scripts/ci.py: reconcile the stale local docs requirements to the
ci-gpu docs stack.
- docs/README.md: native-build instructions install sphinx-book-theme.
Preserved in the footer: ASF dropdown, Community/Download/Docs links,
copyright, and Apache trademark notice. Intentionally dropped (no book-theme
equivalent): the branded top nav bar, the version_prefixes dropdown (which did
not render on the deployed site), and the tlcpack search-summary snippet.
sphinx-gallery's own sg_gallery.css is unaffected, so tutorial thumbnail grids
still render.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]