django-actual-admin-docs
Render Markdown documentation directly in the Django admin`.
- Support for nested subfolders
- Comprehensive Markdown format (link to which spec)
- Provides default styles for Markdown rendering
Installation
-
Install the
django-actual-admin-docspackage. If you havepygmentsinstalled, code blocks are automatically highlighted. -
Add
actual_admin_docsto yourINSTALLED_APPSsetting:INSTALLED_APPS = [ "django.contrib.admin", "actual_admin_docs", ... ]
-
Add the documentation urlpattern, above your admin urls:
from django.contrib import admin from django.urls import include, path urlpatterns = [ path("admin/docs/", include("actual_admin_docs.urls")), path("admin/", admin.site.urls), ]
-
Add a
DOCS_ROOTsetting which should be apathlib.Pathpointing to the docs directory:DOCS_ROOT = BASE_DIR / "docs"
Documentation folder structure
You can use folders, subfolders, files in folders, etc.
🗂 docs/
│
├── 🗂 subfolder
│ │
│ ├── 🗂 subfolder with spaces
│ │ └── 📝 another-file.md
│ │
│ ├── 📝 another-file.md
│ └── 📝 index.md
│
├── 🗂 img
│ └── 🌁 cat_studying_glasses.jpg
│
├── 📝 index.md
└── 📝 markdown-sample.md
Use regular Markdown links to link to other documents or objects:
A link to [another document](./markdown-sample.md) is just a regular Markdown link. Documents in subdirectories [are supported too](./subfolder/another-file.md).
For images, downloads etc. use regular markdown markup too:

[Click to download](./img/./img/cat_studying_glasses.jpg)
Custom CSS
Overwrite the actual-admin-docs.css file to add your custom styles.
🤺 Local Development
$ poetry install
$ poetry run pytest
$ DJANGO_SETTINGS_MODULE=actual_admin_docs.tests.testproject.settings poetry run django-admin runserver
Changelog
v0.5 2024-11-06
- Removed 'highlight' extras marker. If
pygmentsis installed, code blocks are highlighted, and if not, then not.
v0.4 2024-11-06
- Sample documentation for testing purpose is now part of the module.
- Added testing with docs.
v0.3 2024-11-06
- Improved local test setup,
- Index files are consistently recognized in subfolders.
- Pygments as a dependency is now optional.
v0.2 2024-11-05
- Added syntax highlighting for fenced code blocks.
- Added Pygments as a dependency.
v0.1 2024-11-05
- Initial version.
Metadata
Release files for django-actual-admin-docs 0.5
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_actual_admin_docs-0.5.tar.gz | 81.8 kB | Without provenance | Details for django_actual_admin_docs-0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_actual_admin_docs-0.5-py3-none-any.whl | Python 3 | none | any | Details for django_actual_admin_docs-0.5-py3-none-any.whl |
Total release size: 164.4 kB
Release files / django_actual_admin_docs-0.5.tar.gz
| Download URL | django_actual_admin_docs-0.5.tar.gz |
|---|---|
| Size | 81.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c81229fb6f427861f5589e31d48d0026d5a465495ce5c667f6d1499c1daf8d4
|
|
BLAKE2b-256 checksum How to use checksums |
6bdfe48857fda8045fa7e719c0a5eb3de58e30acad8710ded450da62186d1dd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.13.0 Darwin/24.1.0
|
Release files / django_actual_admin_docs-0.5-py3-none-any.whl
| Download URL | django_actual_admin_docs-0.5-py3-none-any.whl |
|---|---|
| Size | 82.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8e4b0f1bb5de0fffedcae923eb6bc13ed9bb741a583e3f8899e806aea63541e6
|
|
BLAKE2b-256 checksum How to use checksums |
9a87072552e462186710f344a447c6e5b54cb92255acdf4a7acc9efadbc04ab3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.13.0 Darwin/24.1.0
|
Security for django-actual-admin-docs 0.5
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.