@@ -25,35 +25,36 @@ for data in ("logo" => "black", "logo-dark" => "white")
2525 println (" Sucessfully created asset: $(data. first) ." )
2626 end
2727end
28+
2829# Turn logo into icon
2930if ! isfile (joinpath (assets_dir, " favicon.ico" )) && isfile (joinpath (assets_dir, " logo.svg" ))
3031 run (` convert -background none $(joinpath (assets_dir, " logo.svg" )) -define icon:auto-resize $(joinpath (assets_dir, " favicon.ico" )) ` )
3132 println (" Sucessfully created asset: ico." )
3233end
34+
35+ # Set the right metadata for doctests
3336DocMeta. setdocmeta! (DeformableBodies, :DocTestSetup , :(using DeformableBodies); recursive= true )
3437
3538makedocs (
3639 sitename = " DeformableBodies.jl" ,
3740 authors = " Iago Leal de Freitas" ,
3841 format = Documenter. HTML (
39- prettyurls = get (ENV , " CI" , nothing ) == " true" ,
40- assets = [" assets/favicon.ico" ]
42+ prettyurls = ! (" local" in ARGS ), # Deactivate on local builds
43+ assets = [" assets/favicon.ico" ],
44+ canonical = " https://iagoleal.github.io/DeformableBodies.jl/dev/"
4145 ),
4246 modules = [DeformableBodies, DeformableBodies. Quaternions],
4347 pages = [
4448 " Introduction" => " index.md" ,
4549 " Tutorial" => " tutorial-cubecopter.md" ,
46- " theory.md" ,
4750 " Reference" => [
4851 " Quaternions" => " ref-quaternions.md" ,
4952 " DeformableBodies" => " ref-models.md"
5053 ]
5154 ]
5255)
5356
54- # Documenter can also automatically deploy documentation to gh-pages.
55- # See "Hosting Documentation" and deploydocs() in the Documenter manual
56- # for more information.
57- #= deploydocs(
58- repo = "<repository url>"
59- )=#
57+ # Deploy site to Github Pages
58+ deploydocs (
59+ repo = " github.com/iagoleal/DeformableBodies.jl.git" ,
60+ )
0 commit comments