forgejo: switched to pandoc for rendering RST
This commit is contained in:
parent
befaeac9ce
commit
56e8832606
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue