-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
Replace Netlify pull request preview builds with RTD #6030
Conversation
Temporarily relocate custom.css until @stevepiercy can reconcile legacy styles with current theme
@stevepiercy what are the advantages of having the docs with RTD as opposed to netlify? |
See plone/plone-sphinx-theme#4 (comment). tl;dr: this PR is only for pull request preview builds. The new theme requires Python 3.9+, and Netlify supports only 2.7 and 3.8. The deployed Storybook at https://6.docs.plone.org/storybook/ is on our infrastructure, not on RTD or on Netlify. That will continue to render. I am fairly sure that there is some incantation to build Storybook in pull request previews. I just don't know what it is. RTD has grown up from its roots, allowing full control of the build process. |
I found this, and I'm testing it: https://docs.readthedocs.io/en/stable/build-customization.html#install-node-js-dependencies |
@stevepiercy I don't like the fact that read the docs is so aggressive with their watermark to advertise their service This makes it hard to see the story due to content being hidden. |
There is a warning that can be dismissed with a click of the X. The RTD flyout menu is not advertising at all, but has useful links and a search feature. It can be repositioned or completely hidden with custom CSS. We don't need it on PR previews, unless you want to use any of its links. https://docs.readthedocs.io/en/stable/flyout-menu.html#defining-where-the-flyout-menu-is-injected |
In any case, style issues are beyond the scope of this PR. All style issues need to have a separate issue in https://github.com/plone/plone-sphinx-theme/issues/ and discussed. It may be that one project wants one style, and another project wants a conflicting style, such as whether or not to display the RTD flyout menu. We already learned that maintaining custom CSS across 5 projects was unsustainable. |
@stevepiercy having that popover the storybook content is not styling, it's a functionality issue. |
The flyout can be hidden with a style, so it is a style issue. The preview of pull requests is merely a convenience. There are workarounds for this optional feature, either by building the Storybook locally via Alternatively, the Storybook build could remain on Netlify, isolated from the MyST docs, but I have no desire to support a yet another build environment. I encourage you to create an issue in https://github.com/plone/plone-sphinx-theme/issues/, if the flyout is something that you think needs to be addressed. |
@ichim-david @stevepiercy I'm +1 to find a better place to live to all Plone StoryBooks, centralized, no clue how we should build it, but yeah. I talked briefly to @ericof and @fredvd about it at some point the last months. @ichim-david are you ok in merging this in the meanwhile? |
@sneridagh I assume you mean Storybooks for production like https://6.docs.plone.org/storybook/, not pull request previews. List the Storybooks. We need an inventory so we know exactly what we're talking about. Do they all exist in the
Maybe turn this comment into a new issue? |
Also temporarily relocate custom.css until @stevepiercy can reconcile legacy styles with current theme.
This PR also uses Plone Sphinx Theme.
Preview:
https://volto--6030.org.readthedocs.build/
I was not able to figure out how to get the Storybook to build on RTD. If anyone has an idea for how to do that, please push to this PR.
This PR needs to be merged before plone/documentation#1667