Skip to content
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

Netplan: Create snippet files for single-sourcing repetitive instructions #107

Closed
rkratky opened this issue Jun 21, 2024 · 4 comments
Closed
Assignees
Labels
edit Edit pre-existing documentation for consistency, style and application help wanted We welcome community help with this issue how-to Create a edit a how-to to achieve a specific task size 2 Fix a known documentation issue (size 2/8)

Comments

@rkratky
Copy link
Collaborator

rkratky commented Jun 21, 2024

Context

Three of the how-to guides for Netplan feature very similar scenarios, and all of them include certain instructions that are completely the same. In order to simplify maintenance and to ensure consistency, the instructions should be single-sourced from common source. This requires creating a separate file (or files) with these instruction snippets and including them in the how-tos. These are the how-tos:

Task

  1. Identify substantial parts of the how-tos that are exactly the same (always at least a section -- not just individual instruction steps or other small parts) and create a separate (.md) files from them. The content needs to be repeated in at least two of the how-tos (if in three, even better).

  2. Remove the respective parts from the how-tos and substitute them for include statements that will render the snippets in those places. See Embed & Include Content for instructions on how to do that in Markdown using the MyST extension.

Reference

@rkratky rkratky added help wanted We welcome community help with this issue edit Edit pre-existing documentation for consistency, style and application size 2 Fix a known documentation issue (size 2/8) how-to Create a edit a how-to to achieve a specific task labels Jun 21, 2024
@nielsenjared
Copy link

Hey @rkratky! I'm interested in this issue. Is there a timeline for completion?

@rkratky
Copy link
Collaborator Author

rkratky commented Aug 6, 2024

Nice @nielsenjared. No real deadline 😌 Of course, it wouldn't be good to block the issue without really intending to work on it. Should I assign it to you?

@nielsenjared
Copy link

nielsenjared commented Aug 6, 2024 via email

@rkratky
Copy link
Collaborator Author

rkratky commented Aug 20, 2024

Done and dusted :) Thank you, @nielsenjared!

@rkratky rkratky closed this as completed Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
edit Edit pre-existing documentation for consistency, style and application help wanted We welcome community help with this issue how-to Create a edit a how-to to achieve a specific task size 2 Fix a known documentation issue (size 2/8)
Projects
None yet
Development

No branches or pull requests

2 participants