Skip to content

Commit

Permalink
Use Documenter 0.25 (#53)
Browse files Browse the repository at this point in the history
* Test documenter 0.24

* Use 0.25

* Fix docs/Project.toml
  • Loading branch information
mortenpi authored Jul 3, 2020
1 parent 49e6163 commit 53cae5b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 44 deletions.
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

[compat]
Documenter = "~0.21"
Documenter = "0.25"
33 changes: 32 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,38 @@ makedocs(
"Other utilities" => "utilities.md",
"Internals" => "internals.md",
],
assets = ["assets/latex.js"],
format = Documenter.HTML(
mathengine = MathJax(Dict(
:TeX => Dict(
:equationNumbers => Dict(:autoNumber => "AMS"),
:Macros => Dict(
:defd => "",
:ket => ["|#1\\rangle", 1],
:bra => ["\\langle#1|", 1],
:braket => ["\\langle#1|#2\\rangle", 2],
:ketbra => ["|#1\\rangle\\!\\langle#2|", 2],
:matrixel => ["\\langle#1|#2|#3\\rangle", 3],
:vec => ["\\mathbf{#1}", 1],
:mat => ["\\mathsf{#1}", 1],
:conj => ["#1^*", 1],
:im => "\\mathrm{i}",
:operator => ["\\mathfrak{#1}", 1],
:Hamiltonian => "\\operator{H}",
:hamiltonian => "\\operator{h}",
:Lagrangian => "\\operator{L}",
:fock => "\\operator{f}",
:lagrange => ["\\epsilon_{#1}", 1],
:vary => ["\\delta_{#1}", 1],
:onebody => ["(#1|#2)", 2],
:twobody => ["[#1|#2]", 2],
:twobodydx => ["[#1||#2]", 2],
:direct => ["{\\operator{J}_{#1}}", 1],
:exchange => ["{\\operator{K}_{#1}}", 1],
:diff => ["\\mathrm{d}#1\\,", 1]
)
)
))
)
)

deploydocs(repo = "github.com/JuliaAtoms/AtomicLevels.jl.git")
42 changes: 0 additions & 42 deletions docs/src/assets/latex.js

This file was deleted.

0 comments on commit 53cae5b

Please sign in to comment.