Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hpc-compendium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZIH
hpcsupport
hpc-compendium
Commits
a69cf673
Commit
a69cf673
authored
2 years ago
by
Martin Schroschk
Browse files
Options
Downloads
Patches
Plain Diff
Make it rules not just guide lines
parent
de88e332
No related branches found
No related tags found
2 merge requests
!592
Automated merge from preview to main
,
!554
Content rules
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc.zih.tu-dresden.de/docs/contrib/content_rules.md
+24
-18
24 additions, 18 deletions
doc.zih.tu-dresden.de/docs/contrib/content_rules.md
doc.zih.tu-dresden.de/mkdocs.yml
+2
-2
2 additions, 2 deletions
doc.zih.tu-dresden.de/mkdocs.yml
with
26 additions
and
20 deletions
doc.zih.tu-dresden.de/docs/contrib/content_
guide_lin
es.md
→
doc.zih.tu-dresden.de/docs/contrib/content_
rul
es.md
+
24
−
18
View file @
a69cf673
# Content
Guide Lin
es
# Content
Rul
es
!!! 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 lin
es regarding the layout, content, and writing of this
This page holds
rul
es 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 lin
es which
instead of being the bottleneck and a great annoyance. Therefore, we set up some
rul
es which
are outlined in the following.
are outlined in the following.
!!! tip
!!! tip
Following these
guide lin
es when contributing speeds up the review process. Furthermore, your
Following these
rul
es 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)
...
...
This diff is collapsed.
Click to expand it.
doc.zih.tu-dresden.de/mkdocs.yml
+
2
−
2
View file @
a69cf673
...
@@ -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 Lin
es
:
contrib/content_
guide_lin
es.md
-
Content
Rul
es
:
contrib/content_
rul
es.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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment