From e0c8f391218e33dd4feda44f4749f138f8290a1d Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 13 Dec 2024 10:48:50 -0600 Subject: [PATCH] Enable asciidoc rendering in forgejo --- nixos/beefcake.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/beefcake.nix b/nixos/beefcake.nix index d5c5ca2..c2a32dc 100644 --- a/nixos/beefcake.nix +++ b/nixos/beefcake.nix @@ -864,6 +864,13 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00 # REPO_INDEXER_INCLUDE = REPO_INDEXER_EXCLUDE = "resources/bin/**"; }; + "markup.asciidoc" = { + ENABLED = true; + NEED_POSTPROCESS = true; + FILE_EXTENSIONS = ".adoc,.asciidoc"; + RENDER_COMMAND = "${pkgs.asciidoctor}/bin/asciidoctor --embedded --safe-mode=secure --out-file=- -"; + IS_INPUT_FILE = false; + }; }; lfs = { enable = true;