-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathmake.jl
More file actions
72 lines (64 loc) · 2.15 KB
/
make.jl
File metadata and controls
72 lines (64 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
using Pkg
# if examples is not the current active environment, switch to it
if Base.active_project() != joinpath(@__DIR__, "Project.toml")
Pkg.activate(@__DIR__)
Pkg.develop(PackageSpec(; path = joinpath(@__DIR__, "..")))
Pkg.resolve()
Pkg.instantiate()
end
using Documenter
using DocumenterTypst
using Random
using TensorKit
using TensorKit: FusionTreePair, Index2Tuple
using TensorKit.TensorKitSectors
using TensorKit.MatrixAlgebraKit
using DocumenterInterLinks
links = InterLinks(
"MatrixAlgebraKit" => "https://quantumkithub.github.io/MatrixAlgebraKit.jl/stable/",
"TensorOperations" => "https://quantumkithub.github.io/TensorOperations.jl/stable/",
"TensorKitSectors" => "https://quantumkithub.github.io/TensorKitSectors.jl/dev/"
)
pages = [
"Home" => "index.md",
"Manual" => [
"man/intro.md", "man/tutorial.md",
"man/spaces.md", "man/symmetries.md",
"man/sectors.md", "man/gradedspaces.md",
"man/fusiontrees.md", "man/tensors.md",
"man/tensormanipulations.md",
],
"Library" => [
"lib/sectors.md", "lib/fusiontrees.md",
"lib/spaces.md", "lib/tensors.md",
],
"Index" => ["index/index.md"],
"Appendix" => ["appendix/symmetric_tutorial.md", "appendix/categories.md"],
"Changelog" => "Changelog.md",
]
mathengine = MathJax3(
Dict(
:loader => Dict("load" => ["[tex]/physics"]),
:tex => Dict(
"inlineMath" => [["\$", "\$"], ["\\(", "\\)"]],
"tags" => "ams",
"packages" => ["base", "ams", "autoload", "physics"]
)
)
)
# docstrings don't need `using TensorKit`
DocMeta.setdocmeta!(TensorKit, :DocTestSetup, :(using TensorKit); recursive = true)
makedocs(;
modules = [TensorKit, TensorKitSectors],
sitename = "TensorKit.jl",
authors = "Jutho Haegeman",
warnonly = [:missing_docs, :cross_references],
format = Documenter.HTML(;
prettyurls = true, mathengine, assets = ["assets/custom.css"]
),
# format = DocumenterTypst.Typst(),
pages = pages,
pagesonly = true,
plugins = [links]
)
deploydocs(; repo = "github.com/QuantumKitHub/TensorKit.jl.git", push_preview = true)