Skip to content

Commit 8146b05

Browse files
committed
More on exporter icons
1 parent 0069487 commit 8146b05

3 files changed

Lines changed: 16 additions & 7 deletions

File tree

modules/exporters/nbconvert/default.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,11 @@ symlinkJoin {
6363
name = x.name;
6464
display_name = x.display_name;
6565
extension = x.extension;
66-
meta = x.meta;
66+
meta = x.meta // {
67+
inherit (x) icon iconMonochrome;
68+
};
6769
icon = x.icon;
68-
iconMonochrome = x.iconMonochrome;
70+
icon_monochrome = x.iconMonochrome;
6971
args = [(x + "/bin/export")];
7072
input_extensions = ["ipynb"];
7173
}) exporters;

modules/exporters/pandoc/default.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ symlinkJoin {
4141
name = x.name;
4242
display_name = x.display_name;
4343
extension = x.extension;
44-
meta = pandoc.meta;
45-
icon = icon;
44+
meta = pandoc.meta // {
45+
inherit icon iconMonochrome;
46+
};
47+
inherit icon;
4648
icon_monochrome = iconMonochrome;
4749
args = [(x + "/bin/export")];
4850
input_extensions = ["ipynb" "md"];

modules/exporters/typst/default.nix

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ let
1616
echo_and_run ${typst}/bin/typst compile "$1" "$2"
1717
'';
1818

19+
icon = ./typst.png;
20+
iconMonochrome = ./typst.svg;
21+
1922
in
2023

2124
symlinkJoin {
@@ -37,9 +40,11 @@ symlinkJoin {
3740
name = "codedown-exporter-typst";
3841
display_name = "Typst";
3942
extension = "pdf";
40-
meta = typst.meta;
41-
icon = ./typst.png;
42-
iconMonochrome = ./typst.svg;
43+
meta = typst.meta // {
44+
inherit icon iconMonochrome;
45+
};
46+
inherit icon;
47+
icon_monochrome = iconMonochrome;
4348
args = [(script + "/bin/typst-export")];
4449
outputs = ["pdf" "png" "svg" "html"];
4550
input_extensions = ["typ"];

0 commit comments

Comments
 (0)