Commit 5b41d8bd authored by Michal Čihař's avatar Michal Čihař

Rewrite management docs using djangodocs

parent 8b432f6f
......@@ -3,33 +3,31 @@
Management commands
-------------------
.. program:: ./manage.py
The ./manage.py is extended with following commands:
.. option:: checkgit
.. django-admin:: checkgit
Prints current state of backend git repository.
You can either define which subproject to check (eg. ``weblate/master``) or
use ``--all`` to check all existing subprojects.
.. option:: commitgit
.. django-admin:: commitgit
Commits any possible pending changes to backend git repository.
You can either define which subproject to check (eg. ``weblate/master``) or
use ``--all`` to check all existing subprojects.
.. option:: cleanuptrans
.. django-admin:: cleanuptrans
Cleanups orphnaed checks and translation suggestions.
.. option:: createadmin
.. django-admin:: createadmin
Creates admin account with pasword admin.
.. option:: import_project <project> <gitrepo> <branch> <filemask>
.. django-admin:: import_project <project> <gitrepo> <branch> <filemask>
Imports subprojects into project based on filemask.
......@@ -49,26 +47,26 @@ The ./manage.py is extended with following commands:
./manage.py import_project debian-handbook git://anonscm.debian.org/debian-handbook/debian-handbook.git squeeze/master '*/**.po'
.. option:: loadpo
.. django-admin:: loadpo
Reloads translations from disk (eg. in case you did some updates in Git
repository).
.. option:: rebuild_index
.. django-admin:: rebuild_index
Rebuilds index for fulltext search. This might be lengthy operation if you
have huge set of translation units.
You can use ``--clean`` to remove all words from database prior updating.
.. option:: update_index
.. django-admin:: update_index
Updates index for fulltext search when :envvar:`OFFLOAD_INDEXING` is enabled.
It is recommended to run this frequently (eg. every 5 minutes) to have index
uptodate.
.. option:: setupgroups
.. django-admin:: setupgroups
Configures default groups and (if called with ``--move``) assigns all users
to default group.
......@@ -78,7 +76,7 @@ The ./manage.py is extended with following commands:
.. seealso:: :ref:`privileges`
.. option:: setuplang
.. django-admin:: setuplang
Setups list of languages (it has own list and all defined in
translate-toolkit).
......@@ -86,7 +84,7 @@ The ./manage.py is extended with following commands:
The option ``--no-update`` disables update of existing languages (only add
new ones).
.. option:: updatechecks
.. django-admin:: updatechecks
Updates all check for all units. This could be useful only on upgrades
which do major changes to checks.
......@@ -94,7 +92,7 @@ The ./manage.py is extended with following commands:
You can either define which project or subproject to update (eg.
``weblate/master``) or use ``--all`` to update all existing subprojects.
.. option:: updategit
.. django-admin:: updategit
Fetches remote Git repositories and updates internal cache.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment