theforeman / foreman-documentation

Documentation for the Foreman Project and its ecosystem
https://docs.theforeman.org
Creative Commons Attribution Share Alike 4.0 International
22 stars 95 forks source link

Split comments and commands in code blocks #3346

Closed maximiliankolb closed 1 month ago

maximiliankolb commented 1 month ago

What changes are you introducing?

Split comments and commands in code blocks.

Why are you introducing these changes? (Explanation, links to references, issues, etc.)

to enable syntax highlighting, we need to remove comments from code blocks.

Anything else to add? (Considerations, potential downsides, alternative solutions you have explored, etc.)

Checklists

Please cherry-pick my commits into:

github-actions[bot] commented 1 month ago

The PR preview for 5fd410a3b5184e4298ea1fb64c489f7e8ab43c21 is available at theforeman-foreman-documentation-preview-pr-3346.surge.sh

The following output files are affected by this PR:

show diff

show diff as HTML

maximiliankolb commented 1 month ago

RE YAML syntax: I might have to adjust https://github.com/theforeman/foreman-documentation/pull/3334/files#diff-6c23392fe90f154654dfb074cbe1aa7a65c30dbd1412293c658f069fba6b9a38R59 + https://github.com/theforeman/foreman-documentation/pull/3334/files#diff-6c23392fe90f154654dfb074cbe1aa7a65c30dbd1412293c658f069fba6b9a38R95

maximiliankolb commented 1 month ago

Thanks Avital, much appreciated. Linkchecker failed due to temporary network issues; both URLs work. -> will merge.

maximiliankolb commented 1 month ago

Merged to "master" and painfully cherry-picked: 3cf1298d5e..9076850d8c 3.12 -> 3.12 6298998ee8..75751bad3b 3.11 -> 3.11