-
Notifications
You must be signed in to change notification settings - Fork 126
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
Substitute code fragments with include
shortcodes
#2587
Comments
include
shortcodes
@mowies ,Would it be possible to automate this? """yaml and extract this to a file. I wrote a quick python script to extract yaml code samples. |
It's definitely possible to automate this, the problem is naming of the files. They should be named in a way that is easily understandable. A few of them will probably also be re-usable in several docs pages. |
Yes you are right, naming things is the hardest thing in IT. To give meaningful names one needs to be have domain knowledge. I can write a script to extract and replace short codes. Maybe somebody can join to help with naming. |
Sure! Just start off with a PR and then somebody else can take over and give meaningful names to things :) |
Hi @mowies, I create a draft pr. Please see if general structure is ok. |
Author unassigned. More info here #2633 (comment) |
Goal
Replace all code fragments occurring in the documentation with external files that are referenced using the
{% include "filename" %}
shortcode available in Material for MkDocs.The new files should be in an
assets
folder inside the same folder as the docs file that is referencing them.DoD
The text was updated successfully, but these errors were encountered: