Skip to main content

Render Markdown documentation in the Django Admin.

Project description

django-actual-admin-docs

Render Markdown documentation directly in the Django admin /admin/.

  • Support for nested subfolders
  • Comprehensive Markdown format
  • Provides default styles for Markdown rendering

See this screenshot of an example page.

Installation

  1. pip install django-actual-admin-docs.

  2. Add actual_admin_docs to your INSTALLED_APPS setting.

  3. 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),
    ]
    
  4. Add a DOCS_ROOT setting which should be a pathlib.Path pointing to the docs directory:

    DOCS_ROOT = BASE_DIR / "docs"
    

Documentation folder structure

You can use regular folders, subfolders, images, files, etc. You can use regular Markdown files and markup to write your documentation and link between documents.

๐Ÿ—‚ docs/
โ”‚
โ”œโ”€โ”€ ๐Ÿ—‚ subfolder           
โ”‚   โ”œโ”€โ”€ ๐Ÿ—‚ subfolder_in_a_subfolder
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ download.zip
โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ“ index.md
โ”‚   โ”‚ 
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ another_file.md
โ”‚   โ””โ”€โ”€ ๐Ÿ“ index.md
โ”‚
โ”œโ”€โ”€ ๐Ÿ—‚ assets    
โ”‚   โ”œโ”€โ”€ ๐ŸŒ image.jpg
โ”‚   โ””โ”€โ”€ ๐ŸŒ other-image.jpg
โ”‚
โ””โ”€โ”€ ๐Ÿ“ index.md

Markup

A link to another document [is a regular link](markdown-sample.md).
Documents in subdirectories [are supported too](./subdirectory/index.md).

For images, downloads etc. use regular markdown markup too:

![a red bird](./assets/image.jpg)

[Click to download](./subfolder/subfolder_in_a_subfolder/download.zip)

Custom CSS

Overwrite the actual-admin-docs.css file to set your custom styles.

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

django_actual_admin_docs-0.1.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

django_actual_admin_docs-0.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file django_actual_admin_docs-0.1.tar.gz.

File metadata

  • Download URL: django_actual_admin_docs-0.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/24.1.0

File hashes

Hashes for django_actual_admin_docs-0.1.tar.gz
Algorithm Hash digest
SHA256 248a138759711e00f0c14b3cc6a2995f076319b2b0954c68ef40af5eebf26b9b
MD5 8c8a5adaed5d38d277760486d94410eb
BLAKE2b-256 be165fc8071aa74c247da1065fd1e45038902ccf3be4d78b6f7f2b765e0f79c3

See more details on using hashes here.

File details

Details for the file django_actual_admin_docs-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_actual_admin_docs-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9973576baf2c17ee7c08dc15594436e566a6263b38a5c920d93eeff40fecd950
MD5 b180647e8ae69e3b9b67c83c25234255
BLAKE2b-256 34814a13aad00f24729606d0f94359c8083b2a946cd03c0d8b7fcb571cb71920

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page