-
Notifications
You must be signed in to change notification settings - Fork 914
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
[Docs for engineering] Create a python script to update tagged docs with admonition #3576
Comments
Is this essentially admonitions? Like kedro/docs/source/deployment/index.md Lines 39 to 44 in de435f2
Rendered: |
It is but it isn't. We've used those in the absence of anything better right now. (a) I don't want it to look like the content admonitions: this is a meta level about the docs rather than about Kedro usage. Also it makes it hard to find just the admonitions about docs content when they're formatted like everything else, which leads to the second point... (b) I want a way to gather together all the docs warnings/danger tags so the team can easily list which pages are problematic. Hence the use of the tags extension (but ideally we don't display the page in the toctree -- I've excluded it in my prototype for a reason) Does that make sense? |
Proposed syntax: ---
doctags:
warning: This page needs update. See [#2825](https://github.com/kedro-org/kedro/issues/2825) for details
---
# Title
Content... ( This uses YAML frontmatter to assign key-value page-wide metadata https://myst-parser.readthedocs.io/en/latest/configuration.html#frontmatter-local-configuration How to check the metadata in code: As an inspiration, it's what the ablog extension uses to detect blog posts: https://ablog.readthedocs.io/en/stable/manual/markdown.html It uses a barely documented feature called "Sphinx transforms" https://github.com/sunpy/ablog/blob/de37cf013846ceccae0e9e478f4ed6e1bd2dd0d3/src/ablog/post.py#L183 (configured in https://github.com/sunpy/ablog/blob/de37cf013846ceccae0e9e478f4ed6e1bd2dd0d3/src/ablog/__init__.py#L150) How to create a custom node: https://www.sphinx-doc.org/en/master/development/tutorials/todo.html#writing-the-extension The styling would be done entirely on CSS. |
OTOH, https://github.com/melissawm/sphinx-tags/ (the original extension @stichbury tried) is mostly there, save for melissawm/sphinx-tags#97. So an alternative would be to fork it and tweak it to our needs. |
Extends #3547
I'd like us to have something along the lines that I've created on this branch using
sphinx-tags
but without all the overhead of the actual tags in the toctree as we don't need that. Instead I'd like to have a simple way to mark up a docs page with these options:See the
prototype-docs-tagging
branch for the mockup and thesphinx-tags
repo and docs for details.Using both tags at once to illustrate:
We do not need:
We do need:
The text was updated successfully, but these errors were encountered: