Skip to content

Basic markdown documentation checker/linter: enforce basic quality standards for your repository's documentation.

License

Notifications You must be signed in to change notification settings

open-ch/checkdoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

checkdoc

checkdoc is a tool that helps you assess if a markdown documentation tree is in good shape, at least from a linking perspective.

Its main goal is to enforce minimal quality standards in a repository's documentation.

It will tell you if:

  • Markdown files are not referenced (directly or through other files) from a readme in the root directory of a repository
  • There are broken internal links

Sample Usage

Used on this repository, checkdoc yields the following:

$ checkdoc verify
INFO Running verify on tree root /tmp/checkdoc
INFO Considering basenames [] and extensions [.md]
DEBU Found 1 nodes at:
DEBU    README.md:
INFO Checking for orphaned documents...
INFO No orphans found.
INFO Checking for dead links...
ERRO Located some files with dead links:
ERRO    README.md
ERRO       CHANGELOG.md
ERRO Verify failed on tree root /tmp/checkdoc

As shown above, it detects that we have a dead link to a non-existing file.

Installation

go install github.com/open-ch/checkdoc@latest

Then run it with checkdoc, assuming your $GOPATH/bin is on your PATH. You should see something along these lines:

checkdoc
A markdown documentation validator intended to enforce a healthy documentation in settings such as a fat repo.

Usage:
  checkdoc [command]

Available Commands:
  help        Help about any command
  verify      Runs sanity checks on the documentation

Flags:
  -h, --help           help for checkdoc
  -r, --root string    Path to the root of the markdown documentation hierarchy to validate (default ".")
  -g, --use-git-root   from the given root, fall back to the repository's root. This will cause checkdoc to fail if --root is not pointing to a repository. (default true)

Use "checkdoc [command] --help" for more information about a command.

Note For GitHub Readers

While the content of this module is managed in an internal repository, you may still submit PR's.

License

Please see the LICENSE file.

About

Basic markdown documentation checker/linter: enforce basic quality standards for your repository's documentation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages