Skip to content

Commit 7ba6b87

Browse files
Merge pull request #1936 from ArnoStrouwen/master
reproducible docs
2 parents e3af435 + 1108fa0 commit 7ba6b87

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

docs/make.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ using Documenter, ModelingToolkit
44
ENV["GKSwstype"] = "100"
55
using Plots
66

7+
cp("./docs/Manifest.toml", "./docs/src/assets/Manifest.toml", force = true)
8+
cp("./docs/Project.toml", "./docs/src/assets/Project.toml", force = true)
9+
710
include("pages.jl")
811

912
mathengine = MathJax3(Dict(:loader => Dict("load" => ["[tex]/require", "[tex]/mathtools"]),

docs/src/index.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,58 @@ system:
162162
- [JuliaDiffEq](https://gitter.im/JuliaDiffEq/Lobby) on Gitter
163163
- On the Julia Discourse forums (look for the [modelingtoolkit tag](https://discourse.julialang.org/tag/modelingtoolkit)
164164
- See also [SciML Community page](https://sciml.ai/community/)
165+
166+
## Reproducibility
167+
```@raw html
168+
<details><summary>The documentation of this SciML package was build using these direct dependencies,</summary>
169+
```
170+
```@example
171+
using Pkg # hide
172+
Pkg.status() # hide
173+
```
174+
```@raw html
175+
</details>
176+
```
177+
```@raw html
178+
<details><summary>and using this machine and Julia version.</summary>
179+
```
180+
```@example
181+
using InteractiveUtils # hide
182+
versioninfo() # hide
183+
```
184+
```@raw html
185+
</details>
186+
```
187+
```@raw html
188+
<details><summary>A more complete overview of all dependencies and their versions is also provided.</summary>
189+
```
190+
```@example
191+
using Pkg # hide
192+
Pkg.status(;mode = PKGMODE_MANIFEST) # hide
193+
```
194+
```@raw html
195+
</details>
196+
```
197+
```@raw html
198+
You can also download the
199+
<a href="
200+
```
201+
```@eval
202+
using TOML
203+
version = TOML.parse(read("../../Project.toml",String))["version"]
204+
name = TOML.parse(read("../../Project.toml",String))["name"]
205+
link = "https://github.com/SciML/"*name*".jl/tree/gh-pages/v"*version*"/assets/Manifest.toml"
206+
```
207+
```@raw html
208+
">manifest</a> file and the
209+
<a href="
210+
```
211+
```@eval
212+
using TOML
213+
version = TOML.parse(read("../../Project.toml",String))["version"]
214+
name = TOML.parse(read("../../Project.toml",String))["name"]
215+
link = "https://github.com/SciML/"*name*".jl/tree/gh-pages/v"*version*"/assets/Project.toml"
216+
```
217+
```@raw html
218+
">project</a> file.
219+
```

0 commit comments

Comments
 (0)