Skip to content

Commit

Permalink
chore(pre-commit): check reST files using rstcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
dafyddj committed Jul 28, 2020
1 parent 6da26cc commit a1d53a9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,9 @@ repos:
- id: salt-lint
name: Check Salt files using salt-lint
files: ^.*\.(sls|jinja|j2|tmpl|tst)$
- repo: https://github.com/myint/rstcheck
rev: 3f929574
hooks:
- id: rstcheck
name: Check reST files using rstcheck
args: [--report=warning]
3 changes: 3 additions & 0 deletions .rstcheck.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[rstcheck]
report=error
ignore_language=rst
4 changes: 2 additions & 2 deletions docs/CONTRIBUTING_DOCS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ Adding a new page involves two steps:
a. Do not just append it to the list.
#. Select the best place where it fits within the overall documentation.

.. _saltstack_formulas_rst_page_template:

SaltStack-Formulas' RST page template
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. _saltstack_formulas_rst_page_template
Use the following template when creating a new page.
This ensures consistency across the documentation for this formula.
The heading symbols have been selected in accordance to the output rendered by the
Expand Down

0 comments on commit a1d53a9

Please sign in to comment.