Skip to content
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

Don't disconnect html-page-context event from sphinx-tabs #318

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Nov 11, 2024

We are disconnecting the html-page-context event from sphinx-tabs, which was used to delete the static files from html files that didn't use sphinx-tabs. But in executablebooks/sphinx-tabs#198 this was changed to instead decide if the page should have the static files or not.

Since we are removing that event, sphinx-tabs never gets to inject the static files, this breaks sphinx-tabs for projects using hoverxref.

We no longer need to disconnect that signal, since we are overriding the html assets policy to always, which sphnx-tabs respects already executablebooks/sphinx-tabs#132 (more than 3 years ago).


📚 Documentation preview 📚: https://sphinx-hoverxref--318.org.readthedocs.build/en/318/

We are disconnecting the html-page-context event from sphinx-tabs,
which was used to delete the static files from html files
that didn't use sphinx-tabs. But in executablebooks/sphinx-tabs#198
this was changed to instead decide if the page should have the static files or not.

Since we are removing that event, sphinx-tabs never gets to inject the
static files, this breaks sphinx-tabs for projects using hoverxref.

We no longer need to disconnect that signal, since we are overriding the html assets policy to `always`,
which sphnx-tabs respects already executablebooks/sphinx-tabs#132
(more than 3 years ago).
@humitos
Copy link
Member

humitos commented Nov 11, 2024

We need to include sphinx-tabs assets, CSS and JS, even if the page does not contain tabs. This is because the tooltip included in the page could contain a sphinx-tab inside.

@stsewd
Copy link
Member Author

stsewd commented Nov 11, 2024

We need to include sphinx-tabs assets, CSS and JS, even if the page does not contain tabs. This is because the tooltip included in the page could contain a sphinx-tab inside.

That's what this PR does.

@stsewd stsewd merged commit a6325ec into main Nov 11, 2024
7 checks passed
@stsewd stsewd deleted the dont-disconnect-html-context-from-sphinx-tabs branch November 11, 2024 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants