Skip to main content

Modify which files MkDocs includes or excludes.

Project description

mkdocs_include_exclude_files

By default, mkdocs copies everything it can find in the docs_dir directory that doesn't start with a .

This plugin allows for customising that.

Installation

pip install mkdocs_include_exclude_files

Requires MkDocs 1.2.3+ and Python 3.8+

Usage

In mkdocs.yml:

plugins:
    - search  # default plugin, need to re-enable when using manual plugins
    - include_exclude_files:
        - include:
            - ".some_file"
            - ".anotherfile"
        - exclude
            - "some_folder"
            - "anotherfolder"

Every file exactly matching those in include will be included. Any file whose location starts with anything in exclude will be excluded.

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_include_exclude_files-0.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

mkdocs_include_exclude_files-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs_include_exclude_files-0.1.0.tar.gz.

File metadata

File hashes

Hashes for mkdocs_include_exclude_files-0.1.0.tar.gz
Algorithm Hash digest
SHA256 12070405b70ac4c142b25054423be191b6dc183c0a4699889d147ba18b655864
MD5 13ac406441acec50baec5ca9488152f5
BLAKE2b-256 d3245fce6ec44bf80421f5106494da0e8f9de9ec7cd68eed8058989cab341774

See more details on using hashes here.

File details

Details for the file mkdocs_include_exclude_files-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_include_exclude_files-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1d49d8127a8eb1a061b4482174380566b6075d98e028404ef00a912dcabf00b
MD5 5af9c4d93de71b160cd6021eef2e0093
BLAKE2b-256 4797c40c82bc7843715f55d4a0c2e9b02fbe8197a1c64703b7633c759fe8395d

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