Skip to content

Commit 89856eb

Browse files
committed
fix: HTML export wasn't exporting anything.
1 parent 4500925 commit 89856eb

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

Project.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
name = "Norganic"
22
uuid = "dfab6fa2-2962-42ba-9a10-aa3aeb79a0e4"
33
authors = ["Hugo Levy-Falk <[email protected]> and contributors"]
4-
version = "0.1.15"
4+
version = "0.1.17"
55

66
[deps]
77
Comonicon = "863f3e99-da2a-4334-8734-de3dacbe5542"
88
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
99
Norg = "64228516-68de-4e23-8112-6940bc1970d1"
10+
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
1011

1112
[compat]
1213
Comonicon = "1"

src/Norganic.jl

+14-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Convert Norg to HTML.
1010
function _html(input::IO, output::IO)
1111
s = read(input, String)
1212
res = norg(HTMLTarget(), s)
13-
write(output, s)
13+
write(output, string(res))
1414
end
1515

1616
function _html(input::IO, output::String)
@@ -71,4 +71,17 @@ Your solvent-free Norg compiler.
7171
"""
7272
@main
7373

74+
using SnoopPrecompile
75+
76+
@precompile_setup begin
77+
output_file = tempname()
78+
input_file = Norg.NORG_SPEC_PATH
79+
@precompile_all_calls begin
80+
# all calls in this block will be precompiled, regardless of whether
81+
# they belong to your package or not (on Julia 1.8 and higher)
82+
html(input=input_file, output=output_file)
83+
json(input=input_file, output=output_file)
84+
end
85+
end
86+
7487
end

0 commit comments

Comments
 (0)