-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
MAINT [PST] set up live preview #28353
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
MAINT [PST] set up live preview #28353
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@scikit-learn/core-devs would we be okay with this? I suggested it.
+1, this makes it easier to follow the work on pydata-sphinx-theme |
I think it is a good idea to have this. It makes it much easier to look at changes, current state of work, etc. Two thoughts:
|
I thought about the robots.txt thing, it seems like we don't have any right now, or maybe I missed it in https://github.com/scikit-learn/scikit-learn.github.io? Even without robots.txt it does not seem like I am getting search results from old scikit-learn versions (compared to say pytest where I get plenty of results from 7.1 doc instead of the latest 8.0 release). If we think robots.txt is a must here is an example I found (probably needs to be adapted): |
I think the reason we only see one version in the Google search results is that every page, no matter the version, contains meta data about the URL of the canonical version of a page. For example https://github.com/scikit-learn/scikit-learn.github.io/blob/013521018e8b62e469c99a848322124a777324ca/1.0/modules/cross_validation.html#L29 - I think the way this works is that this tells Google that all the cross-validation pages for different versions are somehow related to/less authoritative than the |
As suggested, I changed to Should the |
I'd start by investigating https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_extra_path which mentions |
OK so I pushed a commit which I'm not sure about its correctness. I know that |
I had to do some quick reading about
This means that we need to make a PR to |
Ah I didn't know Update: please see #28376. |
Next realisation: for this to work the contents of this PR should have been merged into What is the best way of doing this? Should we remove the commits from |
Hmmm yeah good point ...
Doing a PR that targets main with the same changes seems like the first step. Afterwards as long as you merge |
Sorry I want to ask a question here: do you mean that CircleCI will only look at the workflow configuration on |
Actually I am super confused now, and I have to say I am not sure anymore doing a PR to It looks like the doc is built on pushes to Currently there is an error that would need to get fixed. @betatim can you explain why you think we need a PR to @Charlie-XIAO everything will be allright in the end, but for now things are a bit hazy in my brain ... |
That's totally fine @lesteve thanks for your effort. And:
This is what I'm thinking about as well. I think the reason we don't see the preview being successfully deployed is primarily because of the dependencies issue (#28379) that directly causes the doc build process to fail. (This also makes us unable to easily check whether the configuration is getting updated by this PR because it did not even get to that step.) |
OK I merged #28379 let's see what happens in particular whether the |
I thought this because I was waiting to see the live pre-view arrive in https://github.com/scikit-learn/scikit-learn.github.io/ after merging this PR. But it didn't. So then I thought "aha, this is because CircleCI is clever and only looks at So really it is a guess, not knowledge. |
It seems like the doc build is running the examples, so at least merging #28379 helped. The moment of truth is going to be a the deploy step 🤞 ... |
This comment was marked as outdated.
This comment was marked as outdated.
https://scikit-learn.org/_pst_preview/ It worked 🚀 |
Yep with @betatim we were seeing the same thing 🎉. The main page seems a bit broken but this is likely fixable or maybe you haven't worked on it yet |
The main page is broken because it is meant to be fixed in #28331, and since the dependency issue is now fixed all the ongoing PRs in the list #28084 (comment) can be continued. Thanks again! By the way I think I still need to open a PR to remove the |
Please note that this PR targets the
new_web_theme
branch!See #28084 (comment), this intends to push doc to
https://scikit-learn.org/new_web_theme
when thenew_web_theme
branch gets updated, so that we can get a live preview of the website.@adrinjalali