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.1a2
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.1a2.tar.gz | 1.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_sphinx_view-21.1a2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 3.9 kB
Release files / django-sphinx-view-21.1a2.tar.gz
| Download URL | django-sphinx-view-21.1a2.tar.gz |
|---|---|
| Size | 1.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40c9fa167d6507eb3bd2c6b21935133f38a59cf8c36f445eb53483cc015fa439
|
|
BLAKE2b-256 checksum How to use checksums |
8d6541a571c46dcde2fd086f65608e786d5cddabf930eda203b202d405d3f033
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Release files / django_sphinx_view-21.1a2-py2.py3-none-any.whl
| Download URL | django_sphinx_view-21.1a2-py2.py3-none-any.whl |
|---|---|
| Size | 2.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
800e73ad197de29d2030eb76d2dffb1749de9e0e697998a79d7604e8c8479bbc
|
|
BLAKE2b-256 checksum How to use checksums |
145967fa98ca22e4a99ad21a862f0a27d9e011368b15d32d3cd4a7ee4b60e4b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|