-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmake.jl
More file actions
44 lines (37 loc) · 1.14 KB
/
make.jl
File metadata and controls
44 lines (37 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
cd(@__DIR__)
using ComplexityMeasures
using Documenter
using DocumenterCitations
using RecurrenceMicrostatesAnalysis
using StateSpaceSets
# Convert tutorial file to markdown
import Literate
Literate.markdown("src/tutorial.jl", "src"; credit = false)
Literate.markdown("src/examples.jl", "src"; credit = false)
pages = [
"Welcome" => "index.md",
"Tutorial" => "tutorial.md",
"API" => "api.md",
"GPU" => "gpu.md",
"Examples" => "examples.md",
"Developers docs" => "dev.md",
"References" => "refs.md",
]
# Apply JuliaDynamics theme, choosing a specific branch (easier debugging)
github_user = "JuliaDynamics"
branch = "master"
download_path = "https://raw.githubusercontent.com/$github_user/doctheme/$branch/"
import Downloads
Downloads.download(
"$download_path/build_docs_with_style.jl",
joinpath(@__DIR__, "build_docs_with_style.jl")
)
include("build_docs_with_style.jl")
using DocumenterCitations
bib = CitationBibliography(
joinpath(@__DIR__, "refs.bib");
style=:authoryear
)
build_docs_with_style(pages, RecurrenceMicrostatesAnalysis, ComplexityMeasures, StateSpaceSets;
expandfirst = ["index.md"], bib,
)