|
1 | | -using ReservoirCellularAutomata |
2 | | -using Documenter |
| 1 | +using Documenter, DocumenterCitations, ReservoirCellularAutomata |
3 | 2 |
|
4 | | -DocMeta.setdocmeta!(ReservoirCellularAutomata, :DocTestSetup, |
5 | | - :(using ReservoirCellularAutomata); recursive = true) |
| 3 | +cp("./docs/Manifest.toml", "./docs/src/assets/Manifest.toml"; force = true) |
| 4 | +cp("./docs/Project.toml", "./docs/src/assets/Project.toml"; force = true) |
6 | 5 |
|
7 | | -makedocs(; |
8 | | - modules = [ReservoirCellularAutomata], |
9 | | - authors = "Francesco Martinuzzi", |
| 6 | +ENV["PLOTS_TEST"] = "true" |
| 7 | +ENV["GKSwstype"] = "100" |
| 8 | +include("pages.jl") |
| 9 | +mathengine = Documenter.MathJax() |
| 10 | + |
| 11 | +bib = CitationBibliography( |
| 12 | + joinpath(@__DIR__, "src", "refs.bib"); |
| 13 | + style = :authoryear |
| 14 | +) |
| 15 | + |
| 16 | +makedocs(; modules = [ReservoirCellularAutomata], |
10 | 17 | sitename = "ReservoirCellularAutomata.jl", |
| 18 | + authors = "Francesco Martinuzzi", |
| 19 | + clean = true, doctest = false, linkcheck = true, |
| 20 | + plugins = [bib], |
11 | 21 | format = Documenter.HTML(; |
12 | | - canonical = "https://MartinuzziFrancesco.github.io/ReservoirCellularAutomata.jl", |
13 | | - edit_link = "main", |
14 | | - assets = String[] |
15 | | - ), |
16 | | - pages = [ |
17 | | - "Home" => "index.md" |
18 | | - ] |
| 22 | + mathengine, |
| 23 | + assets = ["assets/favicon.ico"], |
| 24 | + canonical = "https://docs.sciml.ai/ReservoirComputing/stable/"), |
| 25 | + pages = pages |
19 | 26 | ) |
20 | 27 |
|
21 | | -deploydocs(; |
22 | | - repo = "github.com/MartinuzziFrancesco/ReservoirCellularAutomata.jl", |
23 | | - devbranch = "main" |
24 | | -) |
| 28 | +deploydocs(; repo = "github.com/SciML/ReservoirComputing.jl.git", |
| 29 | + push_preview = true) |
0 commit comments