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.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

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

mkdocs_caseinsensitive_plugin-0.4.0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs_caseinsensitive_plugin-0.4.0.tar.gz.

File metadata

File hashes

Hashes for mkdocs_caseinsensitive_plugin-0.4.0.tar.gz
Algorithm Hash digest
SHA256 e6990cbae5e445a4a26fc429184b0709494ce6457ba98bf9bc5909c36e41c61e
MD5 1e63ba4bee223d030066c8237a44c547
BLAKE2b-256 53b70294e1282b6984bb5689cff6f5109c1e2f508ecfa3b738b320d0990dfa7a

See more details on using hashes here.

File details

Details for the file mkdocs_caseinsensitive_plugin-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_caseinsensitive_plugin-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 095ee64358d45fc6cda92655c8c42a3d94bd68d00508eade3efff4b20dca7483
MD5 d69582324f1b856f48e1662865e79e4e
BLAKE2b-256 b048e67add78c7cefda4f473d765bae0e87c9560c9f47ebedf35069ffc60def2

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