|
10 | 10 | using MPSKit |
11 | 11 | using Documenter |
12 | 12 | using DocumenterCitations |
| 13 | +using DocumenterInterLinks |
13 | 14 |
|
14 | 15 | # examples |
15 | 16 | example_dir = joinpath(@__DIR__, "src", "examples") |
|
24 | 25 | bibpath = joinpath(@__DIR__, "src", "assets", "mpskit.bib") |
25 | 26 | bib = CitationBibliography(bibpath; style=:authoryear) |
26 | 27 |
|
| 28 | +# interlinks |
| 29 | +links = InterLinks( |
| 30 | + "TensorKit" => "https://jutho.github.io/TensorKit.jl/stable/", |
| 31 | + "TensorOperations" => "https://jutho.github.io/TensorOperations.jl/stable/" |
| 32 | +) |
| 33 | + |
27 | 34 | # include MPSKit in all doctests |
28 | 35 | DocMeta.setdocmeta!(MPSKit, :DocTestSetup, :(using MPSKit, TensorKit); recursive=true) |
29 | 36 |
|
30 | 37 | mathengine = MathJax3(Dict(:loader => Dict("load" => ["[tex]/physics"]), |
31 | | - :tex => Dict("inlineMath" => [["\$", "\$"], ["\\(", "\\)"]], |
32 | | - "tags" => "ams", |
33 | | - "packages" => ["base", "ams", "autoload", "physics"]))) |
| 38 | + :tex => Dict("inlineMath" => [["\$", "\$"], ["\\(", "\\)"]], |
| 39 | + "tags" => "ams", |
| 40 | + "packages" => ["base", "ams", "autoload", "physics"]))) |
34 | 41 | makedocs(; |
35 | | - modules=[MPSKit], |
36 | | - sitename="MPSKit.jl", |
37 | | - format=Documenter.HTML(; |
38 | | - prettyurls=get(ENV, "CI", nothing) == "true", |
39 | | - mathengine, |
40 | | - size_threshold=512000), |
41 | | - pages=["Home" => "index.md", |
42 | | - "Manual" => ["man/intro.md", |
43 | | - "man/states.md", |
44 | | - "man/operators.md", |
45 | | - "man/algorithms.md", |
46 | | - "man/environments.md", |
47 | | - "man/parallelism.md", |
48 | | - "man/lattices.md"], |
49 | | - "Examples" => "examples/index.md", |
50 | | - "Library" => "lib/lib.md", |
51 | | - "References" => "references.md"], |
52 | | - warnonly=true, |
53 | | - plugins=[bib]) |
| 42 | + sitename="MPSKit.jl", |
| 43 | + format=Documenter.HTML(; |
| 44 | + prettyurls=get(ENV, "CI", nothing) == "true", |
| 45 | + mathengine, |
| 46 | + size_threshold=512000), |
| 47 | + pages=["Home" => "index.md", |
| 48 | + "Manual" => ["man/intro.md", |
| 49 | + "man/states.md", |
| 50 | + "man/operators.md", |
| 51 | + "man/algorithms.md", |
| 52 | + "man/environments.md", |
| 53 | + "man/parallelism.md", |
| 54 | + "man/lattices.md"], |
| 55 | + "Examples" => "examples/index.md", |
| 56 | + "Library" => "lib/lib.md", |
| 57 | + "References" => "references.md"], |
| 58 | + checkdocs=:exports, |
| 59 | + plugins=[bib, links]) |
54 | 60 |
|
55 | 61 | deploydocs(; repo="github.com/QuantumKitHub/MPSKit.jl.git", push_preview=true) |
0 commit comments