Skip to main content

django-easy-docs

A simple, opinionated way to add documentation to your website. Add a "Help" button to any page, and intuitively build the documentation for your Django app.

This project is still in its early stages of development, and any contributors are welcomed.

It has only been tested on Django 4.0 and up. For earlier Django releases, use with caution.

If you want to see something added, please request it! As I said, this is still in early development, and I am open to all suggestions.

If you find a bug, please report it!

Installation

This is an abridged installation. To properly install the app, please see the documentation.

Install via pip:

pip install django-easy-docs

You will need to add easy_docs to your INSTALLED_APPS in your settings.py file:

INSTALLED_APPS = [
    ...
    'easy_docs',
    ...
]

You will also need to add the following to your urls.py file:

from django.urls import path, include

urlpatterns = [
    ...
    path('easy_docs/', include('easy_docs.urls')),
    ...
]

This package also takes advantage of several other packages, including:

These are installed automatically when you install django-easy-docs, but you will need to add them to your INSTALLED_APPS as well:

INSTALLED_APPS = [
    ...
    'markdownx',
    'simple_history',
    'django_htmx',
    ...
]

Please see each packages documentation for detailed installation/usage instructions. I also go over the basic installation of each in the Easy Docs documentation.

Usage

To use Easy Docs, you will need to add the following to your base template:

{% load easy_docs_tags %}

<head>
    ...
    {% load_dependencies %}
    ...
</head>

This will load the necessary dependencies for Easy Docs to work. You will then be able to load the help button on any page by adding the following to your template:

{% load easy_docs_tags %}

<body>
    ...
    {% help_button %}
    ...
</body>

This will load the help button on any page that uses this template. If the page does not have any documentation and a staff member is logged in, it will open the documentation editor when clicked. If the page does have documentation, it will open the documentation viewer.

By default, the help button will be placed exactly where you place it in your template. The documentation editor supports Markdown, and will automatically render any Markdown in the documentation. For more information on Markdown, please see the following guide.

To assist those who are not familiar with Markdown, the documentation editor also includes a live preview of the documentation. This preview will update as you type, and will show you exactly how the documentation will look when it is saved.

A backend system is also provided to allow you to manage the documentation for your site. You can access this by going to /docs/all-documentation/, or by clicking the 'Documentation' header at the top of the document. You will need to be a staff member to access this page. It also includes version control with an option to easily revert to a previous documentation's save.

Documents are flaggable as public, which will allow them to be viewed by non-staff members. This is useful for adding documentation for your users.

For full usage instructions, please see the documentation.

Documentation

For full documentation, please see the documentation.

Metadata

Release files for django-easy-docs 2.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-easy-docs 2.0.4
File Size Uploaded Provenance
django-easy-docs-2.0.4.tar.gz 13.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-easy-docs 2.0.4
File Interpreter ABI Platform
django_easy_docs-2.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 35.9 kB

Release files / django-easy-docs-2.0.4.tar.gz

Download URL django-easy-docs-2.0.4.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7cdcfd89d4812692ed029b3b477d23d0dc19df383ddf6321582489a9b8e1ac47
BLAKE2b-256 checksum
How to use checksums
a464dc0df85afeb784072578fb032fc3d781aa4eb216d5009947aa8962bd007a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release files / django_easy_docs-2.0.4-py3-none-any.whl

Download URL django_easy_docs-2.0.4-py3-none-any.whl
Size 22.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06d7dfa7db64f6e3634fa45ee9d788194c8a199457db72646daa4fb61a547a07
BLAKE2b-256 checksum
How to use checksums
00187b04f447778a141adb91ff847dbad873923a955926b7c4bda840a5917352
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Security for django-easy-docs 2.0.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page