Files
Cactidocumentation/Standards-Documentation.md
T
Thomas Vincent 741ad51355 docs: [1.2.x] refresh the front page, correct grammar and Markdown, and align plugin pages with their READMEs (#273)
* docs: [1.2.x] refresh the manual front page

The front page opened with version notes before saying what Cacti is,
used headings as sentences in the credits, and its table of contents
listed seven sections while the page has ten.

Open with a short description and a getting-started sequence, link the
website and forums, give the credits real headings, and list every
section in the table of contents in page order. Record Jeff Pasnak
under In Memoriam with a link to the 1.2.31 release announcement.
Correct label typos and wrap long entries with reference links.

Existing section anchors are unchanged, and every page is still linked.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs: [1.2.x] fix typos, unrendered headings and forum links

A check of every page linked from the front page found misspellings in
eleven pages, three Mactrack headings written without a space after the
hashes, which render as plain text, and two forum links still using
http.

Correct the spellings, add the missing space so the headings render,
and point the forum links at https, where they already redirect.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs: [1.2.x] align the plugin pages with the plugin READMEs

The supported plugins list and the Syslog and Mactrack pages had drifted
from the README and INFO files in the plugin repositories.

Update the descriptions that the READMEs contradict: Monitor's Thold
requirement, the Router Configs transfer methods, the ReportIt release
and Cacti versions, the WMI collection methods and its development
status, and NUT support in Apcupsd. Add the Syslog requirements, the
upgrade procedure, the dedicated database settings and the remote
collector settings, and correct the database grant and a misplaced
code fence. Add the Mactrack requirements and a short section on
history partitioning and ignored ports that links to the README.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs: [1.2.x] correct grammar, spelling and broken Markdown

A read of every page linked from the front page found grammar and
spelling errors throughout, and Markdown that does not render as
intended.

Correct grammar, spelling, punctuation and product-name capitalization
in 95 pages without changing headings, code blocks, link targets or
the meaning of the text. Repair the Markdown defects: a code fence in
the SSH tunnel how-to that never closed, malformed bold markers in the
user management and device defaults pages, a release notes table with
no blank line before it, split rows in the tree sorting table, and
LDAP list items missing their markers. Correct three interface labels
quoted with typos.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs: [1.2.x] correct statements that differ from the 1.2.x source

Reviewers of the linked pages flagged statements that looked wrong.
Each was compared with the Cacti 1.2.x source at 1523aa04b, and only
those the source or the page itself settles are changed.

Correct interface labels and option names (Index Count Changed,
Permissive, Not Selected, Utilities, the BCC description, the gear
icon for plugin install), the default Maximum Value of U for a new
data source item, the sysDescr object name, the PHP floor wording in
the requirements table, the Mactrack wildcard character and the
snmptrapd -On option. Repair cross-references, example values that
disagree with their commands, two table captions, a split list and
several sentences with missing words.

Statements the source does not settle are left as written.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-24 00:58:06 -08:00

10 KiB

Documentation Standards

Introduction

The following are the standards to be used by Cacti Group members and Contributors when maintaining the documentation of Cacti or any of its plugins. The style checks are configured in .mdlrc and .mdl_style.rb. The 1.2.x branch has no Travis CI configuration and no workflow that runs them, so check your changes locally.

Reporting corrections / omissions

Please report any errors or corrections on the Cacti Documentation GitHub repository which is located at https://github.com/cacti/documentation/ where all changes can be tracked. Any Pull Requests will be welcome to help speed up changes by allowing the Cacti Group to simply verify the changes are correct before submitting them.

All documentation should be marked as copyright to the Cacti Group. This is done by simply adding the following text to the bottom of the page (including the blank line):

---

Copyright (c) 2004-2026 The Cacti Group

Titles

Title Levels

When creating documentation titles, they should:

  • use the # symbol with 1 - 5 hashes

    The actual count of hashes represents the sub-level of the title.

  • not have multiple level 1 headers

    MD025 Multiple top level headers in the same document

  • not have punctuation at the end of the header

    MD026 Trailing punctuation in header

  • not use ---- or ==== on a line that follows a header

    MD003 Header style

  • increment down only one sub-level at a time

    You may go back up any number of levels

    # Main Title 1
    
    ## Main Title 1.Sub Title 1
    
    ### Main Title 1.Sub Title 1.Sub Title 1
    
    ### Main Title 1.Sub Title 1.Sub Title 2
    
    ## Main Title 1.Sub Title 2
    
    ### Main Title 1.Sub Title 2.Sub Title 1
    
    ### Main Title 1.Sub Title 2.Sub Title 2
    
    # Main Title 2
    
    ### Main Title 2.Invalid Sub Title 1.Invalid Sub Title 1
    
  • not use other title definition symbols

    While they are valid markdown, they will result in style errors.

The MD001 check is disabled in .mdl_style.rb, so mdl does not report this, but titles should still follow the rule.

Example 1. Incorrect Markdown for Title Levels
# Welcome

Welcome to us

## Using the software 1.2

To use most functions of our software, navigate the menus

#### Accessing the menus 1.2.1.1

The menus are located at the top of the page ...
Example 2. Corrected Markdown for Title Levels
# Welcome

Welcome to us

## Using the software 1.2

To use most functions of our software, navigate the menus

### Accessing the menus 1.2.1

The menus are located at the top of the page ...

Title Spacing

All titles should be separated with blank lines either side of the title. The only exception to this is if the title is on the first line of the page. They should also have a single space between the hash symbols and text.

Example 3. Incorrect Markdown for Title Spacing
# Welcome

Welcome to us

## Using the software 1.2

To use most functions of our software, navigate the menus

### Accessing the menus 1.2.1

The menus are located at the top of the page ...
Example 4. Correct Markdown for Title Spacing
# Welcome

Welcome to us

## Using the software 1.2

To use most functions of our software, navigate the menus

### Accessing the menus 1.2.1

The menus are located at the top of the page ...

Titles for Captions

Titles for examples, images and tables are the only exception to the Title Level rule. These are normally set to 6 (Six) hash symbols (e.g., ######). The format of the text should be such that it reads the type of caption, a number, period, then the description

###### <caption type> <number>. <description>
Example 5. Example of this caption
###### Example 5. Example of this caption

Text

Standard Text

Any text written outside of code blocks must:

  • be formatted such that it does not exceed 79 characters. This is to make it easier to read and adjust the paragraphs in any editor.

    MD013 Line length

  • have blank lines between paragraphs

  • not have multiple blank lines

    MD012 Multiple consecutive blank lines

  • not have trailing spaces

    MD009 Trailing spaces

  • not use HTML outside of fenced code blocks

    MD033 Inline HTML

Tables

All tables should have a caption applied to them in the style that was listed above.

Lists

All lists should:

  • use a single - (dash) character for bullet points

  • use the same indentation for the same level

    MD005 Inconsistent indentation for list items at the same level

  • start at the beginning of a line (no spaces/indents) for the top level

    MD006 Consider starting bulleted lists at the beginning of the line

  • use a digit followed by a period for numbered lists

  • have a single space between the list item marker and the start of the text

  • have blank lines around items in the same fashion as titles

    MD030 Spaces after list markers

  • wrap text with indentation as they are exempt from the text-width formatting rule

    - wrap text with indentation as they are exempt from the text-width formatting
      rule
    
  • may include sub-items in a similar fashion to titles by:

    • indenting sub-items or examples by two spaces per level

    • indenting one level at a time

    • include examples such as:

    - may include sub-items in a similar fashion to titles by:
    
      - indenting sub-items or examples by three spaces per level
    
      - indenting one level at a time
    
      - include examples such as:
    
      ```markdown
      - may include sub-items in a similar fashion to titles by:
    
        - indenting sub-items or examples by three spaces per level
      ```
    

Inline Code

Inline code can be included using the single backtick (`) method to produce code-like references. An example of this would be to:

Example 6. Inline Code
use the \`--help\` parameter on the command

Which would produce:


use the --help parameter on the command


Code Blocks

All code blocks must be:

  • surrounded by blank lines to separate them from other text

    MD031 Fenced code blocks should be surrounded by blank lines

  • fenced with three backticks (```) and not any other code block fencing characters.

  • have a language applied to them by entering the name after the three backticks.

    MD040 Fenced code blocks should have a language specified

  • an exception to the above text formatting rules as they may contain example lines that are required to be on a single line.

Where possible, it is advised to try and make use of continuation lines (\) so that these are easily readable on any screen.

Example 7. Code Block with Style
```markdown
This is a markdown example, <b> will display <b> not start a bold HTML style
Also ` will actually be displayed not interpreted
```

The style used on the fenced code block should match the contents of the code block. In the above example, we used markdown as we were displaying a markdown example. The following table is a basic example of what is most commonly used in the documentation:

Type Markdown Language Usage
C++ c++ Formats code block as C++
PHP php Formats code block as PHP
SQL sql Formats code block as SQL
Script bash Formats code block as bash script
  sh Formats code block as posix script
Shell console Formats code block as command line example
Markdown markdown Formats code block as Markdown

URLs

All URLs should be formatted in the markdown format and not just inserted directly into the text. The format for this is:

[text for link](https://url/wanted)

Failing to do this will result in MD034 Bare URL used

This would produce: text for link

Horizontal Rules

Horizontal rules should be made using three or more consecutive hyphens on a single line. Again, these should be surrounded by blank lines.

Paragraph 1 text

---

Paragraph 2 text

Before testing your changes make sure you add the necessary links to README.md for any new files.

Running this script will help you check for any missing links.

bin/check_missing_link.sh

Testing changes

To locally test the changes made to any Markdown document, you will need to have Ruby installed and then run:

gem install mdl

If this prerequisite has already been completed, then you can simply type the following into your shell

cd <cacti_docs>
bin/check_markdown_style.sh

Which will check the files using the style in .mdl_style.rb. You should ensure that any reported errors are corrected before submitting your pull request.

Documentation-Standards.md:221: MD031 Fenced code blocks should be surrounded by blank lines
Documentation-Standards.md:230: MD031 Fenced code blocks should be surrounded by blank lines
Documentation-Standards.md:232: MD031 Fenced code blocks should be surrounded by blank lines
Documentation-Standards.md:265: MD031 Fenced code blocks should be surrounded by blank lines
Documentation-Standards.md:268: MD031 Fenced code blocks should be surrounded by blank lines
Documentation-Standards.md:290: MD031 Fenced code blocks should be surrounded by blank lines
Documentation-Standards.md:292: MD031 Fenced code blocks should be surrounded by blank lines
Documentation-Standards.md:161: MD032 Lists should be surrounded by blank lines
Documentation-Standards.md:250: MD032 Lists should be surrounded by blank lines
Documentation-Standards.md:253: MD032 Lists should be surrounded by blank lines
Documentation-Standards.md:256: MD032 Lists should be surrounded by blank lines
Documentation-Standards.md:236: MD033 Inline HTML
Documentation-Standards.md:240: MD033 Inline HTML

Copyright (c) 2004-2026 The Cacti Group