From 6cf9ab71aa0ddcb795af030158ff744376c4c54e Mon Sep 17 00:00:00 2001 From: kakwa Date: Sun, 9 Aug 2015 10:45:03 +0200 Subject: [PATCH] adding documentation for custom js --- docs/deploy.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/deploy.rst b/docs/deploy.rst index 2686e8c..aa16bc0 100644 --- a/docs/deploy.rst +++ b/docs/deploy.rst @@ -462,6 +462,23 @@ Example: log.level = 'info' +Custom javascript +~~~~~~~~~~~~~~~~~ + +It's possible to add custom javascript to LdapCherry, mainly to add custom autofill functions. + +Configuration: + ++---------------------+---------+--------------------------------+--------------------------+------------------------------------------------------------+ +| Parameter | Section | Description | Values | Comment | ++=====================+=========+================================+==========================+============================================================+ +| tools.staticdir.on | /custom | Serve custom js files through | True, False | These files could be server directly by an | +| | | LdapCherry | | HTTP server for better performance. | ++---------------------+---------+--------------------------------+--------------------------+------------------------------------------------------------+ +| tools.staticdir.dir | /custom | Directory containing custom js | Path to static resources | * custom js files must be put at the root if the directory | +| | | files | | * only files ending with ".js" are taken into account | ++---------------------+---------+--------------------------------+--------------------------+------------------------------------------------------------+ + Other LdapCherry parameters ~~~~~~~~~~~~~~~~~~~~~~~~~~~