docs: style fix#2652
Conversation
A few code blocks run a comment line directly against the previous command, while every other comment in the same block is preceded by a blank line. Add the missing blank lines for consistent rendering: - network/infiniband/head-node.md.j2 (Start up NetworkManager) - scheduler/slurm/install.md.j2 (Setup default cgroups file) - customize/memlimits.md.j2 (Update memlock settings on compute) - customize/nhc.md.j2 (execute every five minutes) Cosmetic only. Signed-off-by: Vinícius Ferrão <ferrao@versatushpc.com.br> Sponsored-by: VersatusHPC
🚀 CCache Statistics
📊 Detailed StatisticsopenEuler (aarch64)openEuler (x86_64)RHEL (aarch64/gnu15)RHEL (x86_64/gnu15)RHEL (x86_64/intel)🤖 Generated from workflow run |
Test Results 29 files ±0 29 suites ±0 49s ⏱️ -4s For more details on these failures, see this check. Results for commit ebe0190. ± Comparison against base commit 90b91da. ♻️ This comment has been updated with latest results. |
|
I've actually gotten in the habit of typing out these in full when doing this on the CLI (auto-completion). However, are you just normalizing them all to not have .service? (if so, regardless of the style, normalizing them is the way to go. @adrianreber any thoughts on going with .service over removing? |
|
To be honest it doesn't matter if it have |
Consistency is nice. Not sure what is better. Having |
The guides were inconsistent: most systemctl call sites used the bare unit name while a handful spelled out .service, sometimes both ways within the same file (nfs.md.j2, time.md.j2). Normalize on the explicit .service suffix, which is also what is needed for the other unit types the recipes already reference (.socket, .target). Units that are not services keep their own suffix, and `journalctl -u` in the OpenCHAMI quadlet tip is aligned with the systemctl calls next to it. tests/ci/integration-test.sh matches `systemctl restart rsyslog` with sed to append `|| true`; the pattern is updated so it keeps matching. Cosmetic only -- verified with `make script` + `make check` (shellcheck). Signed-off-by: Vinícius Ferrão <ferrao@versatushpc.com.br> Sponsored-by: VersatusHPC
4b3df32 to
ebe0190
Compare
|
Fixes implemented, |
This PR normalizes
systemctlcalls in the install guides to always spell out.service, and adds line spacing to some code snippets.The guides were inconsistent: most call sites used the bare unit name while a handful spelled out
.service, sometimes both ways within the same file (nfs.md.j2,time.md.j2). Per the discussion below, this now normalizes towards.servicerather than away from it, which also matches the other unit types the recipes already reference (.socket,.target).Non-service units keep their own suffix.
tests/ci/integration-test.shmatchessystemctl restart rsyslogwithsedto append|| true, so that pattern is updated to keep matching.Spacing change keeps the pattern of: