Skip to main content

A lightweight mkdocs plugin to add title casing to all mkdocs pages and sections

Project description

PyPI PyPI - License

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 plugins entry that you are adding, you should probably also add search as 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 - gives War and Peace.
    • first_letter - gives War And Peace.
  • default_page_name (string). The page name to use when it cannot be determined automatically. Default is Home.

Example mkdocs.yml

plugins:
  - search
  - title-casing:
      capitalization_type: first_letter
      default_page_name: Index

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs-title-casing-plugin-0.2.0.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_title_casing_plugin-0.2.0-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs-title-casing-plugin-0.2.0.tar.gz.

File metadata

  • Download URL: mkdocs-title-casing-plugin-0.2.0.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for mkdocs-title-casing-plugin-0.2.0.tar.gz
Algorithm Hash digest
SHA256 25a36570119293226ae993fdfea9e1c54e1c683c5b3d0be383bb1e1e2d76833a
MD5 6a1c339c7702b50ae7e4f6e59d9759fc
BLAKE2b-256 4e8232ce0258cc9ccfc6673de376d3c8b1e90fdbf93d5c8d553314ee96c8ad5c

See more details on using hashes here.

File details

Details for the file mkdocs_title_casing_plugin-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: mkdocs_title_casing_plugin-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for mkdocs_title_casing_plugin-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 57d19a93304d03bc02940514236409260d3a36f09f7a00c26de9026730350312
MD5 acea7723e3cf3dbc47e17c0cb76c3861
BLAKE2b-256 d93523a371a86b8e32f9ad8f1906baca8c7284f454a73e8cbe99e9ff686abb56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page