mkdocs-title-casing-plugin
A lightweight mkdocs plugin to add title casing to all mkdocs pages and sections. Uses python-titlecase for formatting.
Setup
Install the plugin using pip:
pip install mkdocs-title-casing-plugin
Include the plugin in mkdocs.yml. For example:
plugins:
- search
- title-casing
If this is the first
pluginsentry that you are adding, you should probably also addsearchas this is enabled by default.
Usage
When the plugin is enabled, all section and page titles will be converted to use Title Case. For example, War and peace becomes War and Peace.
Configuration
capitalization_type(string)title- default - givesWar and Peace.first_letter- givesWar And Peace.
default_page_name(string). The page name to use when it cannot be determined automatically. Default isHome.
Example mkdocs.yml
plugins:
- search
- title-casing:
capitalization_type: first_letter
default_page_name: Index
Metadata
Release files for mkdocs-title-casing-plugin 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mkdocs-title-casing-plugin-0.2.0.tar.gz | 14.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mkdocs_title_casing_plugin-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.4 kB
Release files / mkdocs-title-casing-plugin-0.2.0.tar.gz
| Download URL | mkdocs-title-casing-plugin-0.2.0.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
25a36570119293226ae993fdfea9e1c54e1c683c5b3d0be383bb1e1e2d76833a
|
|
BLAKE2b-256 checksum How to use checksums |
4e8232ce0258cc9ccfc6673de376d3c8b1e90fdbf93d5c8d553314ee96c8ad5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
|
Release files / mkdocs_title_casing_plugin-0.2.0-py3-none-any.whl
| Download URL | mkdocs_title_casing_plugin-0.2.0-py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57d19a93304d03bc02940514236409260d3a36f09f7a00c26de9026730350312
|
|
BLAKE2b-256 checksum How to use checksums |
d93523a371a86b8e32f9ad8f1906baca8c7284f454a73e8cbe99e9ff686abb56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
|