ci(pre-commit): finalise `rstcheck` configuration [skip ci]
authorImran Iqbal <iqbalmy@hotmail.com>
Sat, 10 Oct 2020 05:44:48 +0000 (06:44 +0100)
committerImran Iqbal <iqbalmy@hotmail.com>
Sat, 10 Oct 2020 05:44:48 +0000 (06:44 +0100)
* Automated using https://github.com/myii/ssf-formula/pull/267

.pre-commit-config.yaml
docs/TOFS_pattern.rst

index 3dc79faf45927afe450f1147c4b2d3fa3c56e6d5..0efdb51aca9ae54739baaf7e6b4ba2803a12a7f2 100644 (file)
@@ -52,4 +52,5 @@ repos:
     hooks:
       - id: rstcheck
         name: Check reST files using rstcheck
     hooks:
       - id: rstcheck
         name: Check reST files using rstcheck
+        exclude: 'docs/CHANGELOG.rst'
         args: [--report=warning]
         args: [--report=warning]
index 4fea5dda0788e6fef8ca9916d42784a3e8203451..dd2c17e5354a27e2a2cf6ee798223e4d17cca27d 100644 (file)
@@ -64,7 +64,7 @@ Example: NTP before applying TOFS
 
 Let's work with the NTP example. A basic formula that follows the `design guidelines <http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html>`_ has the following files and directories tree:
 
 
 Let's work with the NTP example. A basic formula that follows the `design guidelines <http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html>`_ has the following files and directories tree:
 
-.. code-block::
+.. code-block:: console
 
    /srv/saltstack/salt-formulas/ntp-saltstack-formula/
      ntp/
 
    /srv/saltstack/salt-formulas/ntp-saltstack-formula/
      ntp/
@@ -226,7 +226,7 @@ We can make different templates coexist for different minions, classified by any
 
 If we decide that we want ``os_family`` as switch, then we could provide the formula template variants for both the ``RedHat`` and ``Debian`` families.
 
 
 If we decide that we want ``os_family`` as switch, then we could provide the formula template variants for both the ``RedHat`` and ``Debian`` families.
 
-.. code-block::
+.. code-block:: console
 
    /srv/saltstack/salt-formulas/ntp-saltstack-formula/ntp/files/
      default/
 
    /srv/saltstack/salt-formulas/ntp-saltstack-formula/ntp/files/
      default/
@@ -449,7 +449,7 @@ Using sub-directories for ``components``
 
 If your formula is composed of several components, you may prefer to provides files under sub-directories, like in the `systemd-formula <https://github.com/saltstack-formulas/systemd-formula>`_.
 
 
 If your formula is composed of several components, you may prefer to provides files under sub-directories, like in the `systemd-formula <https://github.com/saltstack-formulas/systemd-formula>`_.
 
-.. code-block::
+.. code-block:: console
 
    /srv/saltstack/systemd-formula/
      systemd/
 
    /srv/saltstack/systemd-formula/
      systemd/