Skip to main content

style checker for sphinx (or other) rst documentation.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

doc8-0.1.7.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file doc8-0.1.7.tar.gz.

File metadata

  • Download URL: doc8-0.1.7.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for doc8-0.1.7.tar.gz
Algorithm Hash digest
SHA256 57e7bdc530116d7fcf92563339557a73e909e60eedb1069877a3209fc1f748df
MD5 022c6b301336bb708e2c222224754fa3
BLAKE2b-256 d53d695cca41b0bb1473ef788ac9675da26b055187a14d1f875c47cd6971fd13

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page