From 8969a4492953cb2c485197118e4199ff647ae759 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 13 Apr 2023 19:36:01 +0200 Subject: [PATCH] Support rst rendering --- defaults/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 53f24d4..de34e5f 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -122,6 +122,11 @@ gitea_markup_markdown_conf: - { section: 'markup.markdown', option: 'ENABLED', value: '{{ gitea_markup_markdown_enabled }}', state: 'present' } - { section: 'markup.markdown', option: 'FILE_EXTENSIONS', value: '.md,.markdown', state: 'present' } - { section: 'markup.markdown', option: 'RENDER_COMMAND', value: 'pandoc -f markdown -t html --katex', state: 'present' } +gitea_markup_rst_enabled: 'true' +gitea_markup_rst_conf: + - { section: 'markup.restructuredtext', option: 'ENABLED', value: '{{ gitea_markup_rst_enabled }}', state: 'present' } + - { section: 'markup.restructuredtext', option: 'FILE_EXTENSIONS', value: '.rst', state: 'present' } + - { section: 'markup.restructuredtext', option: 'RENDER_COMMAND', value: 'timeout 30s pandoc +RTS -M512M -RTS -f rst', state: 'present' } gitea_prometheus_metrics: 'false' #gitea_prometheus_bearer_token: put it into a vault file