33
44using QuantumToolbox
55using Documenter
6+ using DocumenterVitepress
67using DocumenterCitations
78
89DocMeta. setdocmeta! (QuantumToolbox, :DocTestSetup , :(using QuantumToolbox); recursive = true )
@@ -11,16 +12,16 @@ const DRAFT = false # set `true` to disable cell evaluation
1112
1213bib = CitationBibliography (joinpath (@__DIR__ , " src" , " bibliography.bib" ), style= :authoryear )
1314
14- const MathEngine = MathJax3 (
15- Dict (
16- :loader => Dict (" load" => [" [tex]/physics" ]),
17- :tex => Dict (
18- " inlineMath" => [[" \$ " , " \$ " ], [" \\ (" , " \\ )" ]],
19- " tags" => " ams" ,
20- " packages" => [" base" , " ams" , " autoload" , " physics" ],
21- ),
22- )
23- )
15+ # const MathEngine = MathJax3(
16+ # Dict(
17+ # :loader => Dict("load" => ["[tex]/physics"]),
18+ # :tex => Dict(
19+ # "inlineMath" => [["\$", "\$"], ["\\(", "\\)"]],
20+ # "tags" => "ams",
21+ # "packages" => ["base", "ams", "autoload", "physics"],
22+ # ),
23+ # )
24+ # )
2425
2526const PAGES = [
2627 " Getting Started" => [
@@ -71,16 +72,28 @@ makedocs(;
7172 repo = Remotes. GitHub (" qutip" , " QuantumToolbox.jl" ),
7273 sitename = " QuantumToolbox.jl" ,
7374 pages = PAGES,
74- format = Documenter. HTML (;
75- prettyurls = get (ENV , " CI" , " false" ) == " true" ,
76- canonical = " https://qutip.github.io/QuantumToolbox.jl" ,
77- edit_link = " main" ,
78- assets = [" assets/favicon.ico" ],
79- mathengine = MathEngine,
80- size_threshold_ignore = [" api.md" ],
75+ # format = Documenter.HTML(;
76+ # prettyurls = get(ENV, "CI", "false") == "true",
77+ # canonical = "https://qutip.github.io/QuantumToolbox.jl",
78+ # edit_link = "main",
79+ # assets = ["assets/favicon.ico"],
80+ # mathengine = MathEngine,
81+ # size_threshold_ignore = ["api.md"],
82+ # ),
83+ format = DocumenterVitepress. MarkdownVitepress (
84+ repo = " https://qutip.github.io/QuantumToolbox.jl" ,
85+ # deploy_url = "https://qutip.org/QuantumToolbox.jl/",
8186 ),
8287 draft = DRAFT,
8388 plugins = [bib],
8489)
8590
86- deploydocs (; repo = " github.com/qutip/QuantumToolbox.jl" , devbranch = " main" )
91+ # deploydocs(; repo = "github.com/qutip/QuantumToolbox.jl", devbranch = "main")
92+
93+ deploydocs (;
94+ repo = " github.com/qutip/QuantumToolbox.jl" ,
95+ target = " build" , # this is where Vitepress stores its output
96+ devbranch = " main" ,
97+ branch = " gh-pages" ,
98+ push_preview = true ,
99+ )
0 commit comments