Skip to content
Snippets Groups Projects
Commit a69cf673 authored by Martin Schroschk's avatar Martin Schroschk
Browse files

Make it rules not just guide lines

parent de88e332
No related branches found
No related tags found
2 merge requests!592Automated merge from preview to main,!554Content rules
# Content Guide Lines # Content Rules
!!! cite "George Bernard Shaw" !!! cite "George Bernard Shaw"
The golden rule is that there are no golden rules. The golden rule is that there are no golden rules.
!!! cite "Proverb"
There is an exception to every rule.
## Motivation and Rationale ## Motivation and Rationale
This page holds <del>rules</del> guide lines regarding the layout, content, and writing of this This page holds rules regarding the layout, content, and writing of this
documentation. The goals are to provide a comprehensive, consistent, up-to-date and well-written documentation. The goals are to provide a comprehensive, consistent, up-to-date and well-written
documentation that is pure joy to read and use. It shall help to find answers and provide knowledge documentation that is pure joy to read and use. It shall help to find answers and provide knowledge
instead of being the bottleneck and a great annoyance. Therefore, we set up some guide lines which instead of being the bottleneck and a great annoyance. Therefore, we set up some rules which
are outlined in the following. are outlined in the following.
!!! tip !!! tip
Following these guide lines when contributing speeds up the review process. Furthermore, your Following these rules when contributing speeds up the review process. Furthermore, your
changes will not be blocked by the automatic checks implementened in the CI pipeline. changes will not be blocked by the automatic checks implementened in the CI pipeline.
## Responsibility and License ## Responsibility and License
...@@ -205,18 +201,28 @@ there is a list of conventions w.r.t. spelling and technical wording. ...@@ -205,18 +201,28 @@ there is a list of conventions w.r.t. spelling and technical wording.
### Code Blocks and Command Prompts ### Code Blocks and Command Prompts
| Bad | Good | * Use ticks to mark code blocks and commands, not italic font.
| --- | --- | * Specify language for code blocks ([see below](#code-blocks-and-syntax-highlighting)).
| `jitschin@tauruslogin3:~> mkdir rick-roll` | `marie@login$ mkdir --verbose example_directory` | * All code blocks and commands should be runnable from a login node or a node within a specific
| | `mkdir: created directory 'example_directory'` | partition (e.g., `ml`).
| `jitschin@tauruslogin3:~> ls -ld rick-roll` | `marie@login$ ls -l --directory example_directory` | * It should be clear from the [prompt](#prompts), where the command is run (e.g., local machine,
| `-rw-rw-r-- 1 jitschin jitschin 0 Apr 8 18:27 rick-roll` | `-rw-rw-r-- 1 marie p_number_crunch 0 Apr 8 18:27 example_directory` | login node or specific partition).
### Long Options
The general rule is to provide long over short parameter names where possible to ease
understanding. This holds especially for Slurm options, but also for other commands, e.g.,
use the `module` command over the short front-end `ml`.
??? example
`srun --nodes=2 --ntasks-per-node=4 [...]`
is preferred over
Showing commands and sample output is an important part of all technical documentation. To make `srun -N 2 -n 4 [...]`
things as clear as possible for readers and provide a consistent documentation, some guide lines
have to be followed.
Please especially consider to: Please especially consider to
- specify the language for code blocks ([see below](#code-blocks-and-syntax-highlighting)). - specify the language for code blocks ([see below](#code-blocks-and-syntax-highlighting)).
- use the hostnames [listed below](#List-of-Prompts) (prefer login nodes or specify partition) - use the hostnames [listed below](#List-of-Prompts) (prefer login nodes or specify partition)
......
...@@ -130,7 +130,7 @@ nav: ...@@ -130,7 +130,7 @@ nav:
- Windows Batchjobs: archive/windows_batch.md - Windows Batchjobs: archive/windows_batch.md
- Contribute: - Contribute:
- How-To Contribute: contrib/howto_contribute.md - How-To Contribute: contrib/howto_contribute.md
- Content Guide Lines: contrib/content_guide_lines.md - Content Rules: contrib/content_rules.md
- Contribute via Browser: contrib/contribute_browser.md - Contribute via Browser: contrib/contribute_browser.md
- Contribute via Local Clone: contrib/contribute_container.md - Contribute via Local Clone: contrib/contribute_container.md
...@@ -204,7 +204,7 @@ markdown_extensions: ...@@ -204,7 +204,7 @@ markdown_extensions:
plugins: plugins:
- search - search
- markdown-caption # - markdown-caption
# https://github.com/manuzhang/mkdocs-htmlproofer-plugin # https://github.com/manuzhang/mkdocs-htmlproofer-plugin
- htmlproofer: - htmlproofer:
# True by default # True by default
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment