(Go: >> BACK << -|- >> HOME <<)

Skip to content
/ mdci Public

🛠✔ [Pre-commit Git hook] Continuous integration for Markdown files.

Notifications You must be signed in to change notification settings

stvhwrd/mdci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mdci Build Status

Continuous integration for Markdown files.

Note: This project has not been tested extensively, and may give false positives and/or false negatives if advanced Markdown (like MultiMarkdown) is used.

Dependencies

Installation

  1. Clone the project: git clone https://github.com/stvhwrd/mdci.git

  2. Change directory: cd mdci

  3. Install NPM packages: npm install

  4. Run tests on .md files in the current directory, by running any of the commands below.

Commands

Sensitivity check:

  • make offensive-wording

Check for words and phrases from a list of common inequalities and exclusivities and, separately, a list of profanities (NSFW).

Interactive spellcheck:

Check spelling and ask user how to handle each perceived spelling error, allowing the user to interactively build their dictionary (.spelling) file on a per-word basis.

  • make spellcheck-interactive

Auto spellcheck:

Check spelling and fail on any perceived spelling error that is not in the custom dictionary (.spelling).

  • make spellcheck-auto

Linter:

Check syntax and structure of Markdown, fail on any errors.

  • make lint-markdown

Local runner:

Run sensitivity check and linter as normal, but run spellcheck interactively. This test sequence is suitable to run before committing Markdown files to version control.

  • make test-pre-commit

Continuous integration runner:

Run all tests in headless (non-interactive) mode.

  • make test

TODO

See GitHub Issues.

Credits

Big thanks to @kvz for their blog post which is the basis of - and inspiration for - this project.

About

🛠✔ [Pre-commit Git hook] Continuous integration for Markdown files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages