Documentation suggestion: introduce includes to "don't repeat yourself" (DRY) #13435
Replies: 4 comments 2 replies
-
I think this is a good idea, sometimes we will update only one of the pages and forget the other, the same for options in podman pod create. I don't think we can do this with the current markdown format files or at least we would need adapt this. I fear that the added complexity with such tooling could be more difficult to manage than the current duplication. |
Beta Was this translation helpful? Give feedback.
-
The issue is these are used as both markdown and to generate man pages. If markdown had an include directive, perhaps we could do this, or we would need yet another format to store the content in it. As much as this is a pain to manage, I am not sure that alternatives would be better. |
Beta Was this translation helpful? Give feedback.
-
Another approach: Create some script that is automatically run for new GitHub PR:s. The script should |
Beta Was this translation helpful? Give feedback.
-
This is something I've wished for often, most recently yesterday when dealing with #14914. There is a LOT of horrible duplication in the man pages. As has been mentioned, it's a really hard problem. There is no |
Beta Was this translation helpful? Give feedback.
-
Parts of the web pages
https://docs.podman.io/en/latest/markdown/podman-run.1.html
https://docs.podman.io/en/latest/markdown/podman-create.1.html
are identical. By introducing some sort of include mechanism, the duplicated documentation sources could be avoided.
(I have a vague memory that I might have suggested this before)
Beta Was this translation helpful? Give feedback.
All reactions