Skip to content

Commit b8e8496

Browse files
committed
start Documenter 1.0 upgrade
1 parent e4b06dc commit b8e8496

File tree

4 files changed

+69
-13
lines changed

4 files changed

+69
-13
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ on:
33
pull_request:
44
branches:
55
- master
6+
paths-ignore:
7+
- 'docs/**'
68
push:
79
branches:
810
- master
11+
paths-ignore:
12+
- 'docs/**'
913
jobs:
1014
test:
1115
runs-on: ubuntu-latest

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
1010

1111
[compat]
1212
BenchmarkTools = "1.3"
13-
Documenter = "0.27"
13+
Documenter = "1"
1414
Latexify = "0.15, 0.16"
1515
OrdinaryDiffEq = "6.31"
1616
Plots = "1.36"

docs/make.jl

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
using Documenter, Symbolics, SymbolicUtils
22

3+
cp("./docs/Manifest.toml", "./docs/src/assets/Manifest.toml", force = true)
4+
cp("./docs/Project.toml", "./docs/src/assets/Project.toml", force = true)
5+
36
# Make sure that plots don't throw a bunch of warnings / errors!
47
ENV["GKSwstype"] = "100"
58
using Plots
@@ -18,19 +21,10 @@ makedocs(
1821
sitename="Symbolics.jl",
1922
authors="Chris Rackauckas",
2023
modules=[Symbolics,SymbolicUtils],
21-
clean=true,doctest=false,
22-
strict=[
23-
:doctest,
24-
:linkcheck,
25-
:parse_error,
26-
:example_block,
27-
# Other available options are
28-
# :autodocs_block, :cross_references, :docs_block, :eval_block, :example_block, :footnote, :meta_block, :missing_docs, :setup_block
29-
],
30-
format = Documenter.HTML(#analytics = "UA-90474609-3",
31-
assets = ["assets/favicon.ico"]),
24+
clean=true, doctest=false, linkcheck = true,
25+
format = Documenter.HTML(assets = ["assets/favicon.ico"],
3226
mathengine = mathengine,
33-
#canonical="https://mtk.sciml.ai/stable/"),
27+
canonical="https://docs.sciml.ai/Symbolics/stable/"),
3428
pages=[
3529
"Home" => "index.md",
3630
"getting_started.md",

docs/src/index.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,61 @@ to be listed here, feel free to open a pull request!
8181
- [ReversePropagation.jl](https://github.com/dpsanders/ReversePropagation.jl): Source-to-source reverse mode automatic differentiation
8282
- Automated tracing of code and construction of backpropagation equations
8383
- Composes with symbolic transformation and simplification functionality
84+
85+
## Reproducibility
86+
87+
```@raw html
88+
<details><summary>The documentation of this SciML package was built using these direct dependencies,</summary>
89+
```
90+
91+
```@example
92+
using Pkg # hide
93+
Pkg.status() # hide
94+
```
95+
96+
```@raw html
97+
</details>
98+
```
99+
100+
```@raw html
101+
<details><summary>and using this machine and Julia version.</summary>
102+
```
103+
104+
```@example
105+
using InteractiveUtils # hide
106+
versioninfo() # hide
107+
```
108+
109+
```@raw html
110+
</details>
111+
```
112+
113+
```@raw html
114+
<details><summary>A more complete overview of all dependencies and their versions is also provided.</summary>
115+
```
116+
117+
```@example
118+
using Pkg # hide
119+
Pkg.status(; mode = PKGMODE_MANIFEST) # hide
120+
```
121+
122+
```@raw html
123+
</details>
124+
```
125+
126+
```@eval
127+
using TOML
128+
using Markdown
129+
version = TOML.parse(read("../../Project.toml", String))["version"]
130+
name = TOML.parse(read("../../Project.toml", String))["name"]
131+
link_manifest = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version *
132+
"/assets/Manifest.toml"
133+
link_project = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version *
134+
"/assets/Project.toml"
135+
Markdown.parse("""You can also download the
136+
[manifest]($link_manifest)
137+
file and the
138+
[project]($link_project)
139+
file.
140+
""")
141+
```

0 commit comments

Comments
 (0)