aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/doc
diff options
context:
space:
mode:
authorNicolas Lenz <nicolas@eisfunke.com>2018-10-30 15:34:12 +0100
committertechknowlogick <hello@techknowlogick.com>2018-10-30 10:34:12 -0400
commit220ee6ae4296a9271a6d9b1825b00ed6f3d66659 (patch)
tree4159018c184c0ac05cb8760d5ba6656be3ab6e89 /docs/content/doc
parente61c6cd3dbc756b363f6e5441d67e207605c1dc0 (diff)
downloadgitea-220ee6ae4296a9271a6d9b1825b00ed6f3d66659.tar.gz
gitea-220ee6ae4296a9271a6d9b1825b00ed6f3d66659.zip
Pass link prefixes to external markup parsers (#5201)
* Pass environment variables for URL prefixes to external markup parser Signed-off-by: Nicolas Lenz <nicolas@eisfunke.com> * Document external markup link prefix environment variables Signed-off-by: Nicolas Lenz <nicolas@eisfunke.com> * Run format on link prefix changes Signed-off-by: Nicolas Lenz <nicolas@eisfunke.com>
Diffstat (limited to 'docs/content/doc')
-rw-r--r--docs/content/doc/advanced/config-cheat-sheet.en-us.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/content/doc/advanced/config-cheat-sheet.en-us.md b/docs/content/doc/advanced/config-cheat-sheet.en-us.md
index 4dbc4c0d7c..1c327f6073 100644
--- a/docs/content/doc/advanced/config-cheat-sheet.en-us.md
+++ b/docs/content/doc/advanced/config-cheat-sheet.en-us.md
@@ -359,6 +359,10 @@ IS_INPUT_FILE = false
- RENDER\_COMMAND: External command to render all matching extensions.
- IS\_INPUT\_FILE: **false** Input is not a standard input but a file param followed `RENDER_COMMAND`.
+Two special environment variables are passed to the render command:
+- `GITEA_PREFIX_SRC`, which contains the current URL prefix in the `src` path tree. To be used as prefix for links.
+- `GITEA_PREFIX_RAW`, which contains the current URL prefix in the `raw` path tree. To be used as prefix for image paths.
+
## Other (`other`)
- `SHOW_FOOTER_BRANDING`: **false**: Show Gitea branding in the footer.