Skip to content

Commit e844b63

Browse files
Merge pull request #272 from ArnoStrouwen/repro
reproducible docs
2 parents 18987ff + 9838e8c commit e844b63

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
@@ -1,5 +1,8 @@
11
using Documenter, JumpProcesses
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
include("pages.jl")
47

58
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
@@ -51,3 +51,58 @@ Pkg.add("JumpProcesses")
5151
[Julia Zulip](https://julialang.zulipchat.com/#narrow/stream/279055-sciml-bridged)
5252
- The [Julia Discourse forums](https://discourse.julialang.org)
5353
- See also the [SciML Community page](https://sciml.ai/community/)
54+
55+
## Reproducibility
56+
```@raw html
57+
<details><summary>The documentation of this SciML package was built using these direct dependencies,</summary>
58+
```
59+
```@example
60+
using Pkg # hide
61+
Pkg.status() # hide
62+
```
63+
```@raw html
64+
</details>
65+
```
66+
```@raw html
67+
<details><summary>and using this machine and Julia version.</summary>
68+
```
69+
```@example
70+
using InteractiveUtils # hide
71+
versioninfo() # hide
72+
```
73+
```@raw html
74+
</details>
75+
```
76+
```@raw html
77+
<details><summary>A more complete overview of all dependencies and their versions is also provided.</summary>
78+
```
79+
```@example
80+
using Pkg # hide
81+
Pkg.status(;mode = PKGMODE_MANIFEST) # hide
82+
```
83+
```@raw html
84+
</details>
85+
```
86+
```@raw html
87+
You can also download the
88+
<a href="
89+
```
90+
```@eval
91+
using TOML
92+
version = TOML.parse(read("../../Project.toml",String))["version"]
93+
name = TOML.parse(read("../../Project.toml",String))["name"]
94+
link = "https://github.com/SciML/"*name*".jl/tree/gh-pages/v"*version*"/assets/Manifest.toml"
95+
```
96+
```@raw html
97+
">manifest</a> file and the
98+
<a href="
99+
```
100+
```@eval
101+
using TOML
102+
version = TOML.parse(read("../../Project.toml",String))["version"]
103+
name = TOML.parse(read("../../Project.toml",String))["name"]
104+
link = "https://github.com/SciML/"*name*".jl/tree/gh-pages/v"*version*"/assets/Project.toml"
105+
```
106+
```@raw html
107+
">project</a> file.
108+
```

0 commit comments

Comments
 (0)