Skip to main content

MkDocs plugin to allow placing mkdocs.yml in the same directory as documentation

Project description

mkdocs-same-dir

Plugin for MkDocs to allow placing mkdocs.yml in the same directory as documentation

PyPI License GitHub Workflow Status

pip install mkdocs-same-dir

Usage

Activate the plugin in mkdocs.yml, along with actually changing docs_dir
(normally, MkDocs absolutely wouldn't let you set it to .):

site_name: foo
docs_dir: .
site_dir: ../site

plugins:
  - search
  - same-dir

and now you can move this mkdocs.yml into your docs directory, or move your docs alongside mkdocs.yml.

See example layout

Important notes

Another necessary effect of this plugin is that files directly at the root of the docs dir will no longer be picked up, unless they are Markdown files.

And note that the implementation of this plugin is a huge hack that monkeypatches MkDocs' internals. But I pledge to keep up with MkDocs updates and keep it working as long as that's still possible.

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_same_dir-0.1.4.tar.gz (4.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_same_dir-0.1.4-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs_same_dir-0.1.4.tar.gz.

File metadata

  • Download URL: mkdocs_same_dir-0.1.4.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mkdocs_same_dir-0.1.4.tar.gz
Algorithm Hash digest
SHA256 68e8a6cd023833d1b797563b57c0bc732156170a00f615404f1d0e8544ed7e39
MD5 09137d3ed2ceceb7f6ab60e69074731a
BLAKE2b-256 55575a619183cb48ee6fb13762c43df29455f509300d7aff05bbd57e6767ec57

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_same_dir-0.1.4.tar.gz:

Publisher: deploy-release.yml on oprypin/mkdocs-same-dir

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mkdocs_same_dir-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_same_dir-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 75103f722b2ab86a860c1a850d52ab2867b2e334f6b0c0dbe1c6d09ccd9c9897
MD5 9aaf4d98b0b4d605c9e19492dd5d5228
BLAKE2b-256 9e84434833e277b3fe4791c68c2b7235274365830b5130fa5bfa63df43fb072e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_same_dir-0.1.4-py3-none-any.whl:

Publisher: deploy-release.yml on oprypin/mkdocs-same-dir

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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