forgejo: switched to pandoc for rendering RST

This commit is contained in:
Fiscal Velvet Poet 2023-12-20 23:56:11 +10:00
parent befaeac9ce
commit 56e8832606
Signed by: fiscalvelvetpoet
GPG key ID: D8EBFD58B023BD47

View file

@ -19,11 +19,6 @@ in {
httpPort = 3002; # Provided unique port
rootUrl = "https://reciproka.dev/"; # Root web URL
settings = let
docutils = pkgs.python39.withPackages (ps:
with ps; [
docutils # Provides rendering of ReStructured Text files
pygments # Provides syntax highlighting
]);
server = {
DOMAIN = "reciproka.dev"; # Domain name
HTTP_PORT = 3002; # Provided unique port
@ -44,7 +39,7 @@ in {
"markup.restructuredtext" = {
ENABLED = true;
FILE_EXTENSIONS = ".rst";
RENDER_COMMAND = "${docutils}/bin/rst2html.py";
RENDER_COMMAND = "timeout 30s ${pkgs.pandoc}/bin/pandoc +RTS -M512M -RTS -f rst";
IS_INPUT_FILE = false;
};
ui = {