Skip to content

Commit 0116b7d

Browse files
Merge pull request #978 from ArnoStrouwen/docs1
start Documenter 1.0 upgrade
2 parents 8aa3198 + 71a3104 commit 0116b7d

File tree

5 files changed

+72
-13
lines changed

5 files changed

+72
-13
lines changed

.github/workflows/ci.yml

+4
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

+1-1
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

+8-12
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
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"
8+
ENV["JULIA_DEBUG"] = "Documenter"
59
using Plots
610

711
mathengine = MathJax3(Dict(:loader => Dict("load" => ["[tex]/require", "[tex]/mathtools"]),
@@ -18,19 +22,11 @@ makedocs(
1822
sitename="Symbolics.jl",
1923
authors="Chris Rackauckas",
2024
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"]),
25+
clean=true, doctest=false, linkcheck = true,
26+
warnonly = [:docs_block, :missing_docs, :cross_references],
27+
format = Documenter.HTML(assets = ["assets/favicon.ico"],
3228
mathengine = mathengine,
33-
#canonical="https://mtk.sciml.ai/stable/"),
29+
canonical="https://docs.sciml.ai/Symbolics/stable/"),
3430
pages=[
3531
"Home" => "index.md",
3632
"getting_started.md",

docs/src/getting_started.md

+1
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ a function via a sparse matrix. For example:
328328
using LinearAlgebra
329329
N = 8
330330
A = sparse(Tridiagonal([x^i for i in 1:N-1], [x^i * y^(8-i) for i in 1:N], [y^i for i in 1:N-1]))
331+
show(A)
331332
```
332333

333334
Now we call `build_function`:

docs/src/index.md

+58
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)