django-easy-docs


Namedjango-easy-docs JSON
Version 2.0.4 PyPI version JSON
download
home_pagehttps://github.com/LewisFletcher/django-easy-docs
SummaryA simple documentation app for Django.
upload_time2024-04-09 20:52:44
maintainerNone
docs_urlNone
authorLewis Fletcher
requires_pythonNone
licenseMIT
keywords django documentation docs easy simple
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://lewisfletcher.github.io/django-easy-docs/installation.html).

Install via pip:

```bash
pip install django-easy-docs
```

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

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

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

```python
from django.urls import path, include

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

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

- [django-markdownx](https://neutronx.github.io/django-markdownx/)
- [django-simple-history](https://django-simple-history.readthedocs.io/en/latest/)
- [django-htmx](https://django-htmx.readthedocs.io/en/latest/)
- [Bootstrap 4](https://getbootstrap.com/docs/4.0/getting-started/introduction/) (required for modal functionality)

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

```python
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](https://lewisfletcher.github.io/django-easy-docs/installation.html).

## Usage

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

```html
{% 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:

```html
{% 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](https://www.markdownguide.org/basic-syntax/).

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](https://lewisfletcher.github.io/django-easy-docs/usage.html).

## Documentation

For full documentation, please see the [documentation](https://lewisfletcher.github.io/django-easy-docs/).


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/LewisFletcher/django-easy-docs",
    "name": "django-easy-docs",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "django, documentation, docs, easy, simple",
    "author": "Lewis Fletcher",
    "author_email": "lew.fletcher3@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a4/64/dc0df85afeb784072578fb032fc3d781aa4eb216d5009947aa8962bd007a/django-easy-docs-2.0.4.tar.gz",
    "platform": null,
    "description": "# django-easy-docs\n\nA 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.\n\nThis project is still in its early stages of development, and any contributors are welcomed.\n\nIt has only been tested on Django 4.0 and up. For earlier Django releases, use with caution.\n\nIf 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. \n\nIf you find a bug, please report it!\n\n## Installation\n\nThis is an abridged installation. To properly install the app, please see the [documentation](https://lewisfletcher.github.io/django-easy-docs/installation.html).\n\nInstall via pip:\n\n```bash\npip install django-easy-docs\n```\n\nYou will need to add `easy_docs` to your `INSTALLED_APPS` in your `settings.py` file:\n\n```python\nINSTALLED_APPS = [\n    ...\n    'easy_docs',\n    ...\n]\n```\n\nYou will also need to add the following to your `urls.py` file:\n\n```python\nfrom django.urls import path, include\n\nurlpatterns = [\n    ...\n    path('easy_docs/', include('easy_docs.urls')),\n    ...\n]\n```\n\nThis package also takes advantage of several other packages, including:\n\n- [django-markdownx](https://neutronx.github.io/django-markdownx/)\n- [django-simple-history](https://django-simple-history.readthedocs.io/en/latest/)\n- [django-htmx](https://django-htmx.readthedocs.io/en/latest/)\n- [Bootstrap 4](https://getbootstrap.com/docs/4.0/getting-started/introduction/) (required for modal functionality)\n\nThese are installed automatically when you install `django-easy-docs`, but you will need to add them to your `INSTALLED_APPS` as well:\n\n```python\nINSTALLED_APPS = [\n    ...\n    'markdownx',\n    'simple_history',\n    'django_htmx',\n    ...\n]\n```\n\nPlease see each packages documentation for detailed installation/usage instructions. I also go over the basic installation of each in the Easy Docs [documentation](https://lewisfletcher.github.io/django-easy-docs/installation.html).\n\n## Usage\n\nTo use Easy Docs, you will need to add the following to your base template:\n\n```html\n{% load easy_docs_tags %}\n\n<head>\n    ...\n    {% load_dependencies %}\n    ...\n</head>\n\n```\n\nThis 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:\n\n```html\n{% load easy_docs_tags %}\n\n<body>\n    ...\n    {% help_button %}\n    ...\n</body>\n```\n\nThis 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.\n\nBy 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](https://www.markdownguide.org/basic-syntax/).\n\nTo 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.\n\nA 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.\n\nDocuments are flaggable as public, which will allow them to be viewed by non-staff members. This is useful for adding documentation for your users.\n\nFor full usage instructions, please see the [documentation](https://lewisfletcher.github.io/django-easy-docs/usage.html).\n\n## Documentation\n\nFor full documentation, please see the [documentation](https://lewisfletcher.github.io/django-easy-docs/).\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A simple documentation app for Django.",
    "version": "2.0.4",
    "project_urls": {
        "Download": "https://pypi.org/project/django-easy-docs/",
        "Homepage": "https://github.com/LewisFletcher/django-easy-docs"
    },
    "split_keywords": [
        "django",
        " documentation",
        " docs",
        " easy",
        " simple"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "00187b04f447778a141adb91ff847dbad873923a955926b7c4bda840a5917352",
                "md5": "88014c3d5bc7941f26cb3dac2b8184b6",
                "sha256": "06d7dfa7db64f6e3634fa45ee9d788194c8a199457db72646daa4fb61a547a07"
            },
            "downloads": -1,
            "filename": "django_easy_docs-2.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "88014c3d5bc7941f26cb3dac2b8184b6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 22249,
            "upload_time": "2024-04-09T20:52:42",
            "upload_time_iso_8601": "2024-04-09T20:52:42.588814Z",
            "url": "https://files.pythonhosted.org/packages/00/18/7b04f447778a141adb91ff847dbad873923a955926b7c4bda840a5917352/django_easy_docs-2.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a464dc0df85afeb784072578fb032fc3d781aa4eb216d5009947aa8962bd007a",
                "md5": "a947228bab0353677126dc27f827f24f",
                "sha256": "7cdcfd89d4812692ed029b3b477d23d0dc19df383ddf6321582489a9b8e1ac47"
            },
            "downloads": -1,
            "filename": "django-easy-docs-2.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "a947228bab0353677126dc27f827f24f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 13683,
            "upload_time": "2024-04-09T20:52:44",
            "upload_time_iso_8601": "2024-04-09T20:52:44.795242Z",
            "url": "https://files.pythonhosted.org/packages/a4/64/dc0df85afeb784072578fb032fc3d781aa4eb216d5009947aa8962bd007a/django-easy-docs-2.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-09 20:52:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "LewisFletcher",
    "github_project": "django-easy-docs",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "django-easy-docs"
}
        
Elapsed time: 0.25484s