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 hashes)

Uploaded Source

Built Distribution

Supported by

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