Skip to main content

No project description provided

Project description

mkdocs-caseinsensitive-plugin

This plugin allows you to link to case-insensitive documentation files.

Usecase

When presented with the following tree directory structure:

project
│   works_for_images.md (contains link to "folder1/IMAGE.PNG")
│   works_for_markdown.md (contains link to "FOLDER1/readme.md")
│
└───folder1
│   │   image.png
│   │   README.md

MkDocs will produce the following logging warning messages

WARNING  -  Documentation file 'works_for_images.md' contains a link to 'folder1/IMAGE.PNG' which is not found in the documentation files.
WARNING  -  Documentation file 'works_for_markdown.md' contains a link to 'FOLDER1/readme.md' which is not found in the documentation files.

Consequently, the rendered HTML files will not have the appropriate links in place.

This issue has been raised on the MkDocs repository before here. Understandably, this is desirable behaviour due to the differences in operating systems in how lax they are when it comes to case-sensitivity in files and directories.

Installation

Install the package with pip:

pip install mkdocs-caseinsensitive-plugin

TODO: Install the package from source with pip:

git clone https://github.com/TheMythologist/mkdocs-caseinsensitive-plugin.git

Enable the plugin in your mkdocs.yml:

plugins:
    - search: {}
    - caseinsensitive: {}

NOTE: If you have no plugins entry in your configuration file yet, you'll likely also want to add the search plugin. MkDocs enables it by default if there is no plugins entry set, but now you have to enable it explicitly.

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_caseinsensitive_plugin-0.4.1.tar.gz (15.4 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