Style checker for sphinx (or other) rst documentation.
Go to file
Alex Gaynor ac1cc1dd1d Fixed a typo 2014-05-17 21:27:26 -07:00
scripts Ensure raw directives are found 2014-05-17 21:10:39 -07:00
.gitignore Initial commit 2014-05-17 18:46:57 -07:00
LICENSE Initial commit 2014-05-17 18:46:57 -07:00
MANIFEST.in Add doc8 files 2014-05-17 18:58:47 -07:00
README.rst Update with usage documentation 2014-05-17 21:11:05 -07:00
setup.cfg Fixed a typo 2014-05-17 21:27:26 -07:00
setup.py Bump for 0.1.7 2014-05-17 21:11:28 -07:00

README.rst

Doc8

Doc8 is a opinionated style checker for sphinx (or other) rst documentation.

QuickStart

pip install doc8

To run doc8 just invoke it against any doc directory:

$ doc8 coolproject/docs

Usage

$ doc8 -h
usage: doc8 [-h] [path [path ...]]

Check documentation for simple style requirements.

What is checked:
    - lines should not be longer than 79 characters - D001
      - exception: line with no whitespace except maybe in the beginning
      - exception: line that starts with '..' -- longer directives are allowed,
        including footnotes
    - no trailing whitespace - D002
    - no tabulation for indentation - D003
    - no carriage returns (use unix newlines) - D004

positional arguments:
  path        path to scan for *.rst, *.txt files (default: os.getcwd())

optional arguments:
  -h, --help  show this help message and exit