Pre-release
This release is a pre-release and may not be stable for production use.
django-sphinx-view
Serve your Sphinx docs with Django.
Current status: pre-alpha. You're far too early. 😀
Basic Usage
Build your Sphinx docs with the JSONBuilder, using make json.
Provide a sphinx_view/page.html template. This package will ship one in a later
version.
Route a DocumentationView with a Path to the output json.
from pathlib import Path
from django.urls import path
from sphinx_view import DocumentationView
urlpatterns = [
# ...
path(
"docs<path:path>",
DocumentationView.as_view(
json_build_dir=Path('/path/to/output/json')
),
name="documentation",
),
# ...
]
Enjoy.
You can subclass DocumentationView to require authentication and so add
access control, and so on. You can customise the template to add other dynamic
elements.
Metadata
Release files for django-sphinx-view 21.1a3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-sphinx-view-21.1a3.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_sphinx_view-21.1a3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 6.6 kB
Release files / django-sphinx-view-21.1a3.tar.gz
| Download URL | django-sphinx-view-21.1a3.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7fc18029a09d97a7e09f7c2be31630ab1ca9dcade81c91897bdc35d9ad21a19
|
|
BLAKE2b-256 checksum How to use checksums |
77aee5b8e21a55303890ea48aab751bac5d049c6a3376dbd2a92458ef55e20d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Release files / django_sphinx_view-21.1a3-py2.py3-none-any.whl
| Download URL | django_sphinx_view-21.1a3-py2.py3-none-any.whl |
|---|---|
| Size | 2.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
885935c00e3a0bf6594599f2f75f6fb73998793cc302927a979987af2f9330a4
|
|
BLAKE2b-256 checksum How to use checksums |
53ebdba6438d1a3ae721a5463dce7994e30f6790fb50149ef722caa1a8ef6dce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|