Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
.. image:: https://img.shields.io/travis/littlepea/django-docs.svg?style=flat-square :target: http://travis-ci.org/littlepea/django-docs
.. image:: https://img.shields.io/pypi/v/django-docs.svg?style=flat-square :target: https://pypi.python.org/pypi/django-docs/
.. image:: https://img.shields.io/badge/license-New%20BSD-blue.svg?style=flat-square :target: https://raw.githubusercontent.com/littlepea/django-docs/master/LICENSE
django-docs
allows to serve Sphinx generated docs directly from Django.
littlepea/django-docs <https://github.com/littlepea/django-docs/>
_Documentation on Read The Docs <https://django-docs.readthedocs.org/>
_Evgeny Demchenko <https://github.com/littlepea>
_Install django-docs
package::
pip install django-docs
Add docs
to INSTALLED_APPS in settings.py::
INSTALLED_APPS = ( ... 'docs', ... )
Add docs.urls
to urls.py::
urlpatterns = [ ... url(r'^docs/', include('docs.urls')), ... ]
Customize configuration::
DOCS_ROOT = os.path.join(PROJECT_PATH, '../docs/_build/html') DOCS_ACCESS = 'staff'
DOCS_ROOT (required) ^^^^^^^^^^^^^^^^^^^^
Absolute path to the root directory of html docs generated by Sphinx (just like STATIC_ROOT / MEDIA_ROOT settings).
DOCS_ACCESS (optional) ^^^^^^^^^^^^^^^^^^^^^^
Docs access level (public by default). Possible values:
Make sure to install test_requirements.txt
first::
pip install -r test_requirements.txt
pip install -e .
You can run the tests with via::
python setup.py test
or::
python docs/tests/runtests.py
To run all tests against different versions of Django simply run::
tox
Make sure to install requirements.txt
first::
virtualenv env
. env/bin/activate
pip install -r test_requirements.txt
pip install -e .
You can run the example project with via::
cd example
python manage.py migrate
python manage.py runserver
.. image:: https://www.evernote.com/l/AHRVMNRZKLVPaoCgJouF_-Pz7rfeDzGF32sB/image.png
FAQs
Allows to serve Sphinx generated docs from django.
We found that django-docs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.