1010using MPSKit
1111using Documenter
1212using DocumenterCitations
13+ using DocumenterInterLinks
1314
1415# examples
1516example_dir = joinpath (@__DIR__ , " src" , " examples" )
2425bibpath = joinpath (@__DIR__ , " src" , " assets" , " mpskit.bib" )
2526bib = CitationBibliography (bibpath; style= :authoryear )
2627
28+ # interlinks
29+ links = InterLinks (" TensorKit" => " https://jutho.github.io/TensorKit.jl/stable/" ,
30+ " TensorOperations" => " https://jutho.github.io/TensorOperations.jl/stable/" )
31+
2732# include MPSKit in all doctests
2833DocMeta. setdocmeta! (MPSKit, :DocTestSetup , :(using MPSKit, TensorKit); recursive= true )
2934
@@ -32,7 +37,6 @@ mathengine = MathJax3(Dict(:loader => Dict("load" => ["[tex]/physics"]),
3237 " tags" => " ams" ,
3338 " packages" => [" base" , " ams" , " autoload" , " physics" ])))
3439makedocs (;
35- modules= [MPSKit],
3640 sitename= " MPSKit.jl" ,
3741 format= Documenter. HTML (;
3842 prettyurls= get (ENV , " CI" , nothing ) == " true" ,
@@ -49,7 +53,7 @@ makedocs(;
4953 " Examples" => " examples/index.md" ,
5054 " Library" => " lib/lib.md" ,
5155 " References" => " references.md" ],
52- warnonly = true ,
53- plugins= [bib])
56+ checkdocs = :exports ,
57+ plugins= [bib, links ])
5458
5559deploydocs (; repo= " github.com/QuantumKitHub/MPSKit.jl.git" , push_preview= true )
0 commit comments