From 83da6655702cf011ce0989c5ef12f20c4d3efd8b Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 3 Dec 2021 10:05:28 -0800 Subject: [PATCH] add asciidoctor and pandoc --- Dockerfile | 2 +- app.ini.template | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 95fe55d..06a24ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM cloudron/base:3.0.0@sha256:455c70428723e3a823198c57472785437eb6eab082e79b3ff04ea584faf46e92 RUN apt-get update && \ - apt-get install -y openssh-server git && \ + apt-get install -y openssh-server git asciidoctor pandoc && \ rm -rf /etc/ssh_host_* && \ rm -r /var/cache/apt /var/lib/apt/lists RUN pip3 install jupyter diff --git a/app.ini.template b/app.ini.template index 9bd32be..39bac12 100644 --- a/app.ini.template +++ b/app.ini.template @@ -103,6 +103,19 @@ COOKIE_SECURE = true COOKIE_NAME = cloudron_gitea GC_INTERVAL_TIME = 2592000 +[markup.asciidoc] +ENABLED = true +FILE_EXTENSIONS = .adoc,.asciidoc +RENDER_COMMAND = "asciidoctor -s -a showtitle --out-file=- -" +; Input is not a standard input but a file +IS_INPUT_FILE = false + +[markup.restructuredtext] +ENABLED = true +FILE_EXTENSIONS = .rst +RENDER_COMMAND = "timeout 30s pandoc +RTS -M512M -RTS -f rst" +IS_INPUT_FILE = false + [markup.jupyter] ENABLED = true FILE_EXTENSIONS = .ipynb