Skip to content

Commit f0d5cd2

Browse files
authored
Add a basic precompile workload (#2004)
1 parent 88ed15a commit f0d5cd2

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
1616
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
1717
MarkdownAST = "d0879d2d-cac2-40c8-9cee-1863dc0c7391"
1818
REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
19+
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
1920
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2021
Unicode = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
2122

@@ -26,6 +27,7 @@ DocStringExtensions = "0.4, 0.5, 0.6, 0.7, 0.8, 0.9"
2627
IOCapture = "0.2"
2728
JSON = "0.19, 0.20, 0.21"
2829
MarkdownAST = "0.1.1"
30+
SnoopPrecompile = "1"
2931
julia = "1.6"
3032

3133
[extras]

src/Documenter.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,9 @@ include("deployconfig.jl")
9797
include("deploydocs.jl")
9898
include("doctest.jl")
9999

100+
using SnoopPrecompile
101+
@precompile_all_calls begin
102+
include("docs_precompile/make.jl")
103+
end
104+
100105
end # module

src/docs_precompile/make.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using Documenter, Logging
2+
3+
with_logger(NullLogger()) do
4+
makedocs(
5+
sitename = "TestPkg",
6+
pages = Any[
7+
"Home" => "index.md",
8+
],
9+
build = mktempdir()
10+
)
11+
end

src/docs_precompile/src/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Header

0 commit comments

Comments
 (0)