Skip to content

DOC temporary fix for search summary - #29090

Merged
glemaitre merged 1 commit into
scikit-learn:mainfrom
Charlie-XIAO:doc-search-summary
May 24, 2024
Merged

glemaitre merged 1 commit into
scikit-learn:mainfrom
Charlie-XIAO:doc-search-summary

Conversation

@Charlie-XIAO

Copy link
Copy Markdown
Contributor

Fixes #29073.

This is a temporary workaround. It overwrites the default searchtools.js by copying a vendored searchtools.js with the same name into the static directory. The vendored searchtools.js replaces all occurrences of [role="main"] with #main-content, because pydata-sphinx-theme==0.15.2 has <main id="main-content" class="bd-main"> without the role="main".

After pydata-sphinx-theme==0.15.3 is release we can bump the minimum version of pydata-sphinx-theme to 0.15.3 and simply removed this vendored file.

@github-actions

Copy link
Copy Markdown

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: d2f8c42. Link to the linter CI: here

@adrinjalali adrinjalali left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I concur that this fixes the issue. I wouldn't have minded waiting for the release as @glemaitre mentioned. But since we have now this PR, we can also merge and push to the 1.5 branch as well.

@glemaitre glemaitre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@glemaitre
glemaitre merged commit 11e8c21 into scikit-learn:main May 24, 2024
@glemaitre glemaitre added the To backport PR merged in master that need a backport to a release branch defined based on the milestone. label May 24, 2024
@glemaitre

Copy link
Copy Markdown
Member

We could therefore backport this fix to the stable branch.

@Charlie-XIAO
Charlie-XIAO deleted the doc-search-summary branch May 24, 2024 10:54
@lesteve

lesteve commented May 29, 2024

Copy link
Copy Markdown
Member

sphinx-pydata-theme 0.15.3 has been released, I think we should revert this PR.

@Charlie-XIAO

Copy link
Copy Markdown
Contributor Author

I think it is not available on the conda-forge channel yet?

@lesteve

lesteve commented May 29, 2024 •

Copy link
Copy Markdown
Member

Indeed the conda-forge feedstock PR hasn't been merged yet and its CI is failing: conda-forge/pydata-sphinx-theme-feedstock#52

@Charlie-XIAO

Copy link
Copy Markdown
Contributor Author

#29134 reverts this PR, bumps the version, and makes fixes according to the new theme.

jeremiedbb pushed a commit to jeremiedbb/scikit-learn that referenced this pull request Jul 2, 2024
@jeremiedbb jeremiedbb mentioned this pull request Jul 2, 2024
11 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation No Changelog Needed To backport PR merged in master that need a backport to a release branch defined based on the milestone.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sphinx search summary disappeared from 1.5 website

4 participants