From 453044464f7c19e6e22ea5057e36692264f63ce0 Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Thu, 30 Oct 2025 12:35:01 +1000 Subject: [PATCH] forge: enable adoc render for staging Signed-off-by: Ryan Lerch --- roles/openshift-apps/forgejo/templates/values.yaml.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/openshift-apps/forgejo/templates/values.yaml.j2 b/roles/openshift-apps/forgejo/templates/values.yaml.j2 index f3f1dc3b92..fa0382bcce 100644 --- a/roles/openshift-apps/forgejo/templates/values.yaml.j2 +++ b/roles/openshift-apps/forgejo/templates/values.yaml.j2 @@ -626,6 +626,16 @@ gitea: ## @param gitea.config.markup Configuration for advanced markup processors markup: {} +{% if env == "staging" %} + markup.asciidoc: + ENABLED:true + NEED_POSTPROCESS = true + FILE_EXTENSIONS = .adoc,.asciidoc + RENDER_COMMAND = "asciidoctor --embedded --safe-mode=secure --out-file=- -" + IS_INPUT_FILE = false + RENDER_CONTENT_MODE: sanitized +{% endif %} + ## @param gitea.config.highlight.mapping File extension to language mapping overrides for syntax highlighting highlight.mapping: {}