-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
DOC Update website to pydata-sphinx-theme
#28084
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
Comments
This comment was marked as outdated.
This comment was marked as outdated.
@Charlie-XIAO I rebased the This is awesome work, thanks. |
Indeed, this is. Please feel free to ping me whenever you need reviews. |
@adrinjalali @glemaitre Thanks for your confirmation, and thanks for updating |
Now that #28132 (comment) is merged, I think it might not be a bad idea to have that branch pushed somewhere so that we can have a live preview. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
I was thinking more something alone the lines of |
Ah I see, so essentially I can modify the |
Should we add a label for PRs related to this effort? I'm generally not the biggest fan of labels, but it seems like it could be useful here to filter PRs to just those related to this issue. WDYT? |
Yea a label may be useful. Maybe it can be automatically added with some workflow since I currently give related PRs titles with a shared prefix? Or alternatively I'm keeping track of all PRs towards the branch, related PRs towards main, and upstream issues (which you can find or redirect to from the very first comment). So essentially you can easily find everything related from the first comment in this issue, and maintainers can edit if more shortcuts are wanted. |
A question: is it possible to directly add the dependencies ( |
I think you can keep working in the preview branch. Lock-files are quite likely to have conflicts but you can sort them out like any other conflicts in git, see #28336 (comment) |
Thanks for the reply @lesteve. If we do not worry about the conflicts then merging |
The only thing is that every time after merging |
Yes there is an additional manual process involved to solve the conflicts, I think this is unavoidable. This would be a bit weird to have additional dependencies in Unless I am missing something, if you want to merge # I never know --theirs vs --ours and it depends whether you do rebase or merge I think
git checkout --theirs -- build_tools
python build_tools/update_environments_and_lock_files.py --select-build 'doc$'
git a build_tools
# or use rebase if you do rebase
git merge --continue |
I do not have the right to merge, so I need to leave it to maintainers. So, either every time maintainers do this when merging Initially I asked about adding to I am okay will both options, and I think this might not be something I can decide. @adrinjalali who have helped me do the merging job recently. |
I think it is fine if I guess the first thing is to get feed-back on how it looks and for this this does not matter if you don't have the doc updates from the last two weeks. The mechanism to update |
Yes you are right and in fact I need the theme branch to be updated only when I directly push some related changes to main.
Yes true. And I believe I shouldn't need to merge main into my PR branch if I'm targeting the theme branch. So the decision is not to disturb main. I do need to make a PR to fix what's already broken though. Thanks for your careful explanations @lesteve |
I merged the latest PR and we should not have any pending PR. Now, I think that we need:
Then, I think that we should be merging the PR in |
FYI, I create a specific board that could be useful to track any PR issues in other repositories: Documentation improvement |
Nice! I will take a look at the merging tomorrow; I think there is going to be some conflicts in particular regarding the drop-down which git often fails resolve elegantly. AFAIC with the current changes the new website is definitely "usable". We may navigate around once again when I open the PR targeting main. There are indeed styling issues left e.g. admonitions, misused block quotes in APIs, etc. but those can be tackled afterwards. |
I'm closing this issue since we did most of the items. |
This issue is a continuation of #26809 and aims to migrate the scikit-learn website towards
pydata-sphinx-theme
. As this is an ambitious goal, this issue is to track the steps of the migration. cc @lucyleeow who guided me to open this issue.Quick links
new_web_theme
branchTODO before merging into
main
doc-min-dependencies
is bypassed in CI for now and we need to reactivate it before merging intomain
. Also, we need to make sure all dependencies are documented, in particularsphinx-design
which was not added in the very first setup PR. See also #28379.new_web_theme
part in.circleci/config.yml
.conf.py
, change the version switcher link tohttps://scikit-learn.org/dev/_static/versions.json
.themes/
and updateexclude_patterns
inconf.py
: these are only useful for the old theme.sphinx
,pydata-sphinx-theme
, andsphinx-gallery
. See also tracker for upstream issues.Tracking work towards the
new_web_theme
branchsphinx-design
#28379pydata-sphinx-theme
#28415html-noplot
to avoid warnings #28512.. note:: something
into.. admonition:: something
with:class: note
)Tracking work related by towards the
main
branchrobots.txt
#28387robots.txt
for setting uppydata-sphinx-theme
preview #28376pydata-sphinx-theme
#28134The text was updated successfully, but these errors were encountered: