[go: up one dir, main page]

Skip to content

A pre-commit hook that will fail if documentation (eg for readthedocs.io) can't be built using sphinx

License

Notifications You must be signed in to change notification settings

wilu-nordic/pre-commit-sphinx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pre-commit-sphinx

A pre-commit hook that will fail if documentation (eg for readthedocs.io) can't be built using sphinx

Using pre-commit

build_docs

Builds documentation using sphinx, returns PASSED to pre-config if the documentation compiles (even with warnings)

Use in your .pre-commit-config.yaml file like:

  - repo: https://github.com/thclark/pre-commit-sphinx
    rev: 0.0.1
    hooks:
      - id: build-docs
        args: ['--cache-dir', 'docs/doctrees', '--html-dir', 'docs/html', '--source-dir', 'docs/source']
        language_version: python3

About

A pre-commit hook that will fail if documentation (eg for readthedocs.io) can't be built using sphinx

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%