Skip to content

Commit b45f84a

Browse files
Merge pull request #63 from ArnoStrouwen/repro
reproducible docs
2 parents 27b5d1a + 1c58b1e commit b45f84a

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, MultiScaleArrays
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
makedocs(sitename = "MultiScaleArrays.jl",

docs/src/index.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,58 @@ techniques for each new model.
103103
- [JuliaDiffEq](https://gitter.im/JuliaDiffEq/Lobby) on Gitter
104104
- on the [Julia Discourse forums](https://discourse.julialang.org)
105105
- see also [SciML Community page](https://sciml.ai/community/)
106+
107+
## Reproducibility
108+
```@raw html
109+
<details><summary>The documentation of this SciML package was build using these direct dependencies,</summary>
110+
```
111+
```@example
112+
using Pkg # hide
113+
Pkg.status() # hide
114+
```
115+
```@raw html
116+
</details>
117+
```
118+
```@raw html
119+
<details><summary>and using this machine and Julia version.</summary>
120+
```
121+
```@example
122+
using InteractiveUtils # hide
123+
versioninfo() # hide
124+
```
125+
```@raw html
126+
</details>
127+
```
128+
```@raw html
129+
<details><summary>A more complete overview of all dependencies and their versions is also provided.</summary>
130+
```
131+
```@example
132+
using Pkg # hide
133+
Pkg.status(;mode = PKGMODE_MANIFEST) # hide
134+
```
135+
```@raw html
136+
</details>
137+
```
138+
```@raw html
139+
You can also download the
140+
<a href="
141+
```
142+
```@eval
143+
using TOML
144+
version = TOML.parse(read("../../Project.toml",String))["version"]
145+
name = TOML.parse(read("../../Project.toml",String))["name"]
146+
link = "https://github.com/SciML/"*name*".jl/tree/gh-pages/v"*version*"/assets/Manifest.toml"
147+
```
148+
```@raw html
149+
">manifest</a> file and the
150+
<a href="
151+
```
152+
```@eval
153+
using TOML
154+
version = TOML.parse(read("../../Project.toml",String))["version"]
155+
name = TOML.parse(read("../../Project.toml",String))["name"]
156+
link = "https://github.com/SciML/"*name*".jl/tree/gh-pages/v"*version*"/assets/Project.toml"
157+
```
158+
```@raw html
159+
">project</a> file.
160+
```

0 commit comments

Comments
 (0)