[1.8.x] Fixed #23903 -- Configured Sphinx to autogenerate django-admin manpage

Backport of f66c2bdc0f from master
This commit is contained in:
Erik Romijn 2015-03-07 11:40:30 +01:00 committed by Tim Graham
parent 6e81786f92
commit 846a970106
3 changed files with 2593 additions and 212 deletions

View File

@ -273,7 +273,7 @@ latex_documents = [
# One entry per manual page. List of tuples # One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section). # (source start file, name, description, authors, manual section).
man_pages = [ man_pages = [
('contents', 'django', 'Django Documentation', ['Django Software Foundation'], 1) ('ref/django-admin', 'django-admin', 'Utility script for the Django Web framework', ['Django Software Foundation'], 1),
] ]

View File

@ -420,3 +420,19 @@ Translating documentation
See :ref:`Localizing the Django documentation <translating-documentation>` if See :ref:`Localizing the Django documentation <translating-documentation>` if
you'd like to help translate the documentation into another language. you'd like to help translate the documentation into another language.
.. _django-admin-manpage:
``django-admin`` man page
-------------------------
Sphinx can generate a manual page for the
:doc:`django-admin </ref/django-admin>` command. This is configured in
``docs/conf.py``. Unlike other documentation output, this man page should be
included in the Django repository and the releases as
``docs/man/django-admin.1``. There isn't a need to update this file when
updating the documentation, as it's updated once as part of the release process.
To generate an updated version of the man page, run ``make man`` in the
``docs`` directory. The new man page will be written in
``docs/_build/man/django-admin.1``.

File diff suppressed because it is too large Load Diff