Commit f799de52 authored by Michal Čihař's avatar Michal Čihař

Add generic documentation to hook scripts

Issue #790
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 0cedd67b
......@@ -425,6 +425,8 @@ POST_UPDATE_SCRIPTS
List of scripts which are allowed as post update scripts. The script needs to be
later enabled in the :ref:`component`.
.. seealso:: :ref:`processing`
.. setting:: PRE_COMMIT_SCRIPTS
PRE_COMMIT_SCRIPTS
......@@ -468,6 +470,8 @@ POST_COMMIT_SCRIPTS
List of scripts which are allowed as post commit scripts. The script needs to be
later enabled in the :ref:`component`.
.. seealso:: :ref:`processing`
.. setting:: POST_PUSH_SCRIPTS
POST_PUSH_SCRIPTS
......@@ -478,6 +482,8 @@ POST_PUSH_SCRIPTS
List of scripts which are allowed as post push scripts. The script needs to be
later enabled in the :ref:`component`.
.. seealso:: :ref:`processing`
.. setting:: REGISTRATION_CAPTCHA
REGISTRATION_CAPTCHA
......
......@@ -212,8 +212,28 @@ delay, see :djadmin:`commit_pending`.
.. _processing:
Processing repository with scripts
----------------------------------
You can customize way how Weblate manipulates with repository by set of
scripts. These include :guilabel:`Post-update script`, :guilabel:`Pre-commit
script`, :guilabel:`Post-commit script` and :guilabel:`Post-push script` and
are briefly described in :ref:`component`.
Their naming quite clearly tells when given script is executed. The commit
related scripts always get one parameter with full path to the translation file
which has been changed.
.. seealso::
:setting:`POST_UPDATE_SCRIPTS`,
:setting:`PRE_COMMIT_SCRIPTS`,
:setting:`POST_COMMIT_SCRIPTS`,
:setting:`POST_PUSH_SCRIPTS`,
:ref:`component`
Pre commit processing of translations
-------------------------------------
+++++++++++++++++++++++++++++++++++++
In many cases you might want to automatically do some changes to translation
before it is committed to the repository. The pre commit script is exactly the
......
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