From e43a52acadde6bf72147b50caa85fb5b057b8992 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Mon, 15 Apr 2024 20:06:32 +0200 Subject: [PATCH] Let's see if this rendering jupyter works --- nixos/server/package-configs/forgejo/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nixos/server/package-configs/forgejo/default.nix b/nixos/server/package-configs/forgejo/default.nix index 2377b60..193cb84 100644 --- a/nixos/server/package-configs/forgejo/default.nix +++ b/nixos/server/package-configs/forgejo/default.nix @@ -67,11 +67,19 @@ markup.jupyter = " ENABLED = true; FILE_EXTENSIONS = .ipynb - RENDER_COMMAND = jupyter nbconvert --stdout --to html --template full + RENDER_COMMAND = ${pkgs.jupyter}/bin/jupyter nbconvert --stdout --to html --template full IS_INPUT_FILE = true RENDER_CONTENT_MODE = no-sanitizer "; }; + markup.sanitizer.juypter0 = " + ; Jupyter chiefly uses divs + ELEMENT = div + ; we will need access to html classes later + ALLOW_ATTR = class + ; we don't mind which classes we keep, so let's keep all of them + REGEXP = + "; }; services.nginx = {