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
|
httpPort = 3002; # Provided unique port
|
||||||
rootUrl = "https://reciproka.dev/"; # Root web URL
|
rootUrl = "https://reciproka.dev/"; # Root web URL
|
||||||
settings = let
|
settings = let
|
||||||
docutils = pkgs.python39.withPackages (ps:
|
|
||||||
with ps; [
|
|
||||||
docutils # Provides rendering of ReStructured Text files
|
|
||||||
pygments # Provides syntax highlighting
|
|
||||||
]);
|
|
||||||
server = {
|
server = {
|
||||||
DOMAIN = "reciproka.dev"; # Domain name
|
DOMAIN = "reciproka.dev"; # Domain name
|
||||||
HTTP_PORT = 3002; # Provided unique port
|
HTTP_PORT = 3002; # Provided unique port
|
||||||
|
@ -44,7 +39,7 @@ in {
|
||||||
"markup.restructuredtext" = {
|
"markup.restructuredtext" = {
|
||||||
ENABLED = true;
|
ENABLED = true;
|
||||||
FILE_EXTENSIONS = ".rst";
|
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;
|
IS_INPUT_FILE = false;
|
||||||
};
|
};
|
||||||
ui = {
|
ui = {
|
||||||
|
|
Loading…
Reference in a new issue