A spell checker plugin for MkDocs.
Project description
MkDocs SpellCheck
A spell checker plugin for MkDocs.
This plugin can use different backends to check the spelling of words in your final HTML pages. These backends are:
Installation
To install all backends, use the all
extra.
Otherwise specify the name(s) of the backend(s) as extra.
pip install mkdocs-spellcheck[all]
pip install mkdocs-spellcheck[codespell]
pip install mkdocs-spellcheck[symspellpy]
pip install mkdocs-spellcheck[codespell,symspellpy]
Usage
# mkdocs.yml
plugins:
- search
- spellcheck:
backends: # the backends you want to use
- symspellpy # as strings
- codespell: # or nested configs
dictionaries: [clear, rare]
# known_words can also be a list of words
known_words: known_words.txt
# ignore words in <code> tags
ignore_code: yes
# minimum length of words to consider
min_length: 2
# maximum number of capital letters in a word
max_capital: 1
# keep unicode characters
allow_unicode: no
# skip files entirely (supports Unix shell-style wildcards)
skip_files:
- credits.md
- coverage.md
- reference/*
# whether to only check in strict mode
strict_only: yes
By default, the symspellpy
backend is used.
codespell
The builtin dictionaries are:
clear
for unambiguous errorsrare
for rare (but valid) words that are likely to be errorsinformal
for making informal words more formalusage
for replacing phrasing with recommended termscode
for words from code and/or mathematics that are likely to be typos in other contexts (such asuint
)names
for valid proper names that might be typosen-GB_to_en-US
for corrections fromen-GB
toen-US
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mkdocs_spellcheck-1.1.0.tar.gz
(10.6 kB
view details)
Built Distribution
File details
Details for the file mkdocs_spellcheck-1.1.0.tar.gz
.
File metadata
- Download URL: mkdocs_spellcheck-1.1.0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c2ac481e067f9d833d8fd1236acb8e6e76106581f909117eaf41ef1b6a5c69c |
|
MD5 | 3b0dd8b3830dee24b08b9713669e6a3c |
|
BLAKE2b-256 | ac890921b8e18c9e3926cf4e753a404b4d7d406260bc2d653b43186ce608908a |
File details
Details for the file mkdocs_spellcheck-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: mkdocs_spellcheck-1.1.0-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 476ef27d11b7765568670f811a90beb77ec47f9da7cea9708e935371c969457f |
|
MD5 | 52389f5ae0201c9ff47e97effa5efd42 |
|
BLAKE2b-256 | e9b83bd1aa5e2b8575c7f5073ffdb317e3c1ef5f10c14c4ba080b7e779a483ba |