django-md-docs
A reusable Django app that renders a folder of Markdown files as a documentation site at /docs.
Installation
pip install django-md-docs
Setup
1. settings.py
INSTALLED_APPS = [
...
"md_docs",
]
# Optional settings (all have defaults):
MD_DOCS_DIR = BASE_DIR / "md-docs" # default: BASE_DIR / "md-docs"
MD_DOCS_LOGIN_REQUIRED = True # default: True
MD_DOCS_BRAND = "My Project" # default: "Documentation"
MD_DOCS_LOGOUT_URL = "/accounts/logout/" # default: None (hides the logout button)
2. urls.py
from django.urls import include, path
urlpatterns = [
...
path("docs/", include("md_docs.urls")),
]
3. Create your markdown files
md-docs/
├── index.md → /docs/
├── guide/
│ ├── index.md → /docs/guide/
│ └── setup.md → /docs/guide/setup
└── api/
├── index.md → /docs/api/
└── endpoints.md → /docs/api/endpoints
The navigation sidebar is built automatically from the directory structure. The first heading in each file is used as its nav label.
Settings reference
| Setting | Default | Description |
|---|---|---|
MD_DOCS_DIR |
BASE_DIR / "md-docs" |
Path to the folder containing .md files |
MD_DOCS_LOGIN_REQUIRED |
True |
Redirect unauthenticated users to LOGIN_URL |
MD_DOCS_BRAND |
"Documentation" |
Brand name displayed in the sidebar header |
MD_DOCS_LOGOUT_URL |
None |
URL for the logout POST action. When None, the logout button is hidden |
Supported Markdown extensions
tablesfenced_codetoc(table of contents, shown in the right sidebar)attr_list
Metadata
Release files for django-md-docs 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_md_docs-0.1.0.tar.gz | 6.2 kB | With provenance | Details for django_md_docs-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_md_docs-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for django_md_docs-0.1.0-py3-none-any.whl |
Total release size: 14.0 kB
Release files / django_md_docs-0.1.0.tar.gz
| Download URL | django_md_docs-0.1.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d8e7df8d7ed13745432890a1fd2777f3062d29d392dc710fe41f17134a3f718
|
|
BLAKE2b-256 checksum How to use checksums |
20a535e2a2596a1ec50feb86d7163db12b09f1b11f7afba7501fe4a51120ae58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 17, 2026.
Transparency logRelease files / django_md_docs-0.1.0-py3-none-any.whl
| Download URL | django_md_docs-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d09d767248df98c8c5a24a0dbe10d5a5eabdbffbae9737e09e709916b50f7ae
|
|
BLAKE2b-256 checksum How to use checksums |
e43c79e1bacd8d3b69bd3a4af2882bf3597c731f20b7964ac225c18c7676abbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 17, 2026.
Transparency logSecurity for django-md-docs 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for django_md_docs-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.