How to avoid redundancy between documentation files #415
Replies: 4 comments 2 replies
-
It's really tricky. I'd suggest avoiding duplication wherever possible, and otherwise just biting the bullet and using copy/paste and find/replace for those bits of code. The markdown-include package has the same problems as the pymdownx.snippets extension @younesStrittmatter and I were trying to use for the workflow documentation, namely:
To really make use of this, we might need to either:
@younesStrittmatter had a look at the multi repo plugin – perhaps he can say more about the possibilities there. |
Beta Was this translation helpful? Give feedback.
-
We can make it work: pymdownx.snippets: in the base.yml of the autora-parent makes it work. Problem: |
Beta Was this translation helpful? Give feedback.
-
Did we decide just to not do this? Can we close this discussion? @younesStrittmatter |
Beta Was this translation helpful? Give feedback.
-
@younesStrittmatter @hollandjg
To avoid redundancies between documentation files within the same package, I was wondering if it makes sense if we add the markdown-include extension into our contribution template?
See this page for an explanation.
https://stackoverflow.com/questions/35918976/mkdocs-eliminate-copy-paste-in-files
Beta Was this translation helpful? Give feedback.
All reactions