-
Notifications
You must be signed in to change notification settings - Fork 908
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
Move Kedro documentation CSS to package allow sharing across subprojects #3016
Comments
@tynandebold So this is probably a question of setting up a separate package for the docs theming folder that Kedro framework currently uses, so that when we put out other documentation subprojects for datasets, viz and starters, they can draw on the same by adding that package as a dependency. The theme will initially be as we are using currently, with later updates for #4257. So, in theory, this ticket could enter any sprint that you are able to pick it up. @astrojuanlu and I have briefly discussed but happy to talk more about practicalities when you have an engineer able to pick it up. |
Exactly, the idea is to distribute the theme as |
Does it need to be pip installable? Could we instead host these two files in a centralized place and then use those URLs to reference the CSS via RTD? Prerequisite for this is that we're able to add a custom |
I think it's OK to use a link, from looking at this: https://docs.readthedocs.io/en/stable/guides/adding-custom-css.html What you are suggesting is a "fully qualified path", right? |
Yes indeed! Then I think we're in business and need not create a new Python package. We can dump these files on S3 or maybe even GitHub pages, adding them to a new repo in our organization. Haven't thought it through too far other than to say this sounds like a wiser option. |
Notice that it's not only CSS files we'd like to distribute: we're starting to have duplication in Line 345 in e949c6c
with The more Sphinx projects we add (and soon we'll need kedro-viz and others), the more stuff we need to copy-paste to In addition, if we ever want to change the theme base from sphinx-rtd-theme to something else (which we absolutely want, see #4257) we'd need to again change the As a result I'm all in favour of creating a new Python package. |
I didn't notice that, thank you for pointing that out. Since it's more than only CSS a new Python package seems best, as JuanLu said. I know much less about that, though am still happy to help with the styling part. |
Asked on pradyunsg/sphinx-theme-builder#45 and the Write the Docs community just to make sure I'm not spitting nonsense here. |
Hmm, I'm still not convinced though. Is the complexity of adding another package for reuse really worth the occasional I'm not sure, but I still like the idea of keeping things simple, and not getting into reuse just because "we can" 🤷 |
To clarify, projects would not share a Regardless, I don't want to become the bottleneck of this 😄 so if this is on the critical path towards #2600, then I'm okay with uploading the CSS assets somewhere and using those directly for now. |
Oh OK, that sounds better, but still a bit complicated for my poor 🧠 to compute. Let's just go with basic CSS as per @tynandebold's original suggestion on S3 or similar. Makes it simple and when/if we later need to dig ourselves out of the technical debt I'm dumping us in, I promise to be humble 😊 |
I've uploaded both theme files now: |
We can close this as done now. The CSS is used in the Viz docs project and I will make a branch on develop for the same. |
Description
Following on from parent task #2600, there is one subtask that we need to do to fix the styling so any new subprojects for Viz, Datasets, Starters etc use exactly the same theme as the Kedro docs.
I'm not sure what is involved with this (I naively thought we could just copy the CSS around but I guess that's not exactly maintainable).Edit: Now have a plan.Please can I add to your queue @tynandebold for consideration & prioritisation.
The text was updated successfully, but these errors were encountered: