7.4. Documentation¶
7.4.1. Style Guides¶
7.4.1.1. SIMP documentation (simp-doc)¶
SIMP documentation uses ReStructuredText roles to keep formatting consistent, automatically cross-reference glossary terms, and generate external hyperlinks to web resources.
When available, prefer using a relevant role from the tables below over inline
formatting such as bold *text*
or double-backticks (``
):
Purpose |
Example |
Code |
Notes |
---|---|---|---|
Code snippets |
|
|
|
CLI commands |
yum update -y |
|
|
Files |
|
|
Use curly braces |
Programs |
mcstransd |
|
|
Glossary terms |
|
Automatically creates internal hyperlink to term in Glossary |
Purpose |
Example |
Code |
Notes |
---|---|---|---|
Packages (e.g., RPM, RubyGem) |
simp-utils |
|
|
Puppet Modules |
|
When text is in |
|
GitHub repos |
|
Auto-links to GitHub repo URL |
|
Jira issues |
|
Auto-links to (SIMP project) Jira issue URL |
Purpose |
Example |
Code |
Notes |
---|---|---|---|
Literal text |
|
|
ReST’s basic markup for fixed-width text. Only use this if there isn’t an appropriate role. |
Internal hyperlinks |
|
|
|
External hyperlinks |
|
External hyperlinks are decorated with a special icon |
7.4.1.2. SIMP Puppet modules¶
Documentation for Puppet modules should follow the Puppet Strings Style Guide.
7.4.1.3. SIMP git repositories¶
SIMP project git repositories should contain a README.md
file at their
top level.