-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build: do not set sphinx_rtd_theme
theme automatically
#10638
Conversation
We are not installing `sphinx-rtd-theme` automatically on new projects. However, we are setting `sphinx_rtd_theme` automatically on their `docs/conf.py`. This PR removes that magic to auto-set the theme and leave the theme to what the user has defined.
There's a bunch of stuff in the conf.py override it seems like we can remove (definitelly the "websupport2" stuff, and the source suffix), that won't effect much. This actually will change the default theme for users without a theme set, but hopefully most users now are defining an html_theme, since Sphinx defaults to one defined, so this won't impact many users. |
We are not using this anymore. Related #10638
I opened a PR to remove However, I'm 👍🏼 on review all the context we are creating all around this and gradually migrate it to the new addons. That way, we will moving forward to the new implementation and figure it out what are the things we may be missing there. |
* Build: drop `websupport2` support from `conf.py` template We are not using this anymore. Related #10638 * JS assets: remove `websupport2-bundle.js`
This is causing build errors
|
@jpmckinney Thanks. Yeah, we saw that and we just fixed it in #10653. We are doing a re-deploy now to solve this issue. |
FWIW I somehow ended up with logic to set html_theme only if the build is not happening on RTD, so this broke my build. I can't remember why I did it that way but judging by the comment there was something weird about the way sphinx_rtd_theme was installed (or not) that prevented it from being imported. |
The old magic for sphinx_rtd_theme has been removed; now we should handle the theme in the same way we do for local builds.
docs: Fix build after readthedocs/readthedocs.org#10638
Lat version of read the doc do not set a html_theme for us. So we have to always set it. See readthedocs/readthedocs.org#10638
Lat version of read the doc do not set a html_theme for us. So we have to always set it. See readthedocs/readthedocs.org#10638
Hi, |
RTD removed the default html theme for builds, making those without `html_theme` set fail. Previously we set the theme only when building locally as rtd would set it for us otherwise. Sets `html_theme` regardless of that, hopefully fixing the builds on rtd. Ref: readthedocs/readthedocs.org#10638 [skip ci]
Sets `html_theme` when building on rtd since the default theme was recently removed from the build infrastructure and builds now fail without `html_theme` set. Ref: readthedocs/readthedocs.org#10638 [skip ci]
…ion 6.4 Ben Darnell (60): Bump main branch version number to 6.4.dev1 test: Streamline test configurations ioloop: Deprecate add_callback_from_signal ci: Enable manual dispatch for build workflow setup: Include tox.ini in sdist websocket: Add warning if client connection isn't closed cleanly web: Fix an open redirect in StaticFileHandler Version 6.3.2 gen: Hold strong references to all asyncio.Tasks ci: Disable Python 3.12 in CI asyncio: Manage the selector thread with an async generator asyncio: Modernize type annotations asyncio_test: Use inequality when checking thread leaks asyncio_test: Remove obsolete py3.4 compatibility ci: Re-enable python 3.12 build: Upgrade tox to support python 3.12 *: Adapt to deprecation of datetime utc methods test: Add test for open redirect fixed in 6.3.2 auth: Deprecate unused client_secret parameter auth: Deprecate TwitterMixin demos: Add a demo app for google auth auth: Update facebook scope auth: Use a setting for facebook redirect url auth: Copy google mixin comment to top-of-file auth: Fix doctests asyncio: Remove atexit hook autoreload: Support the ability to run a directory instead of a module autoreload: Switch to a real option parser autoreload_test: Reduce repetition autoreload: Support directories in CLI wrapper autoreload: Add --until-success flag autoreload: Remove some code for compatibility with py3.3 autoreload: Remove some code for MacOS 10.5 compatibility autoreload: Modernize type annotations build: Move linters to python 3.11 build: Upgrade pip-tools lint: Update mypy ioloop: Annotate run_in_executor returning Future, not Awaitable web_test: Fix open redirect test on windows http1connection: Make content-length parsing more strict httpserver_test: Add ExpectLog to fix CI Release notes for 6.3.3 httpclient_test: Increase test_destructor_log timeout test: Refactor circlerefs script into a test ioloop,concurrent: Fix reference cycles test: Fix circlerefs test on python 3.10 and before test: Skip circlerefs test on pypy docs: Fix build after readthedocs/readthedocs.org#10638 escape: Use the standard library where possible escape: Remove noqa: F811 tags from overloads docs: Release notes for 6.4.0 Set version number to 6.4b1 ci: Add windows to the main test config docs: Update intersphinx references for python 3.12 *: Lint on the newest version of python too. Revert "asyncio: Remove atexit hook" test: Close the thread pool in run_on_executor test web,demos: Remove more uses of deprecated datetime utc methods iostream_test: Test check_hostname functionality. iostream_test: Don't require server-side log on windows Chengzzzi (1): Fix WebSocketClientConnection parameter Min RK (2): separate SelectorThread into its own object Make AddThreadEventLoop.close() idempotent Shinichi Hemmi (1): Fix syntax error in docstring dependabot[bot] (5): build(deps): bump requests from 2.28.2 to 2.31.0 build(deps): bump pygments from 2.14.0 to 2.15.0 build(deps): bump certifi from 2022.12.7 to 2023.7.22 build(deps): bump urllib3 from 1.26.14 to 1.26.17 build(deps): bump urllib3 from 1.26.17 to 1.26.18
We are not installing
sphinx-rtd-theme
automatically on new projects. However, we are settingsphinx_rtd_theme
automatically on theirdocs/conf.py
.This PR removes that magic to auto-set the theme and leave the theme to what the user has defined.
sphinx_rtd_theme
required by default when appendingdocs/conf.py
#10626