Skip to content

Commit e252d79

Browse files
committed
reproducible docs
1 parent 87f1d83 commit e252d79

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, LabelledArrays
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 = "LabelledArrays.jl",

docs/src/index.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,58 @@ Pkg.add("LabelledArrays")
2424
- [JuliaDiffEq](https://gitter.im/JuliaDiffEq/Lobby) on Gitter
2525
- on the [Julia Discourse forums](https://discourse.julialang.org)
2626
- see also [SciML Community page](https://sciml.ai/community/)
27+
28+
## Reproducibility
29+
```@raw html
30+
<details><summary>The documentation of this SciML package was build using these direct dependencies,</summary>
31+
```
32+
```@example
33+
using Pkg # hide
34+
Pkg.status() # hide
35+
```
36+
```@raw html
37+
</details>
38+
```
39+
```@raw html
40+
<details><summary>and using this machine and Julia version.</summary>
41+
```
42+
```@example
43+
using InteractiveUtils # hide
44+
versioninfo() # hide
45+
```
46+
```@raw html
47+
</details>
48+
```
49+
```@raw html
50+
<details><summary>A more complete overview of all dependencies and their versions is also provided.</summary>
51+
```
52+
```@example
53+
using Pkg # hide
54+
Pkg.status(;mode = PKGMODE_MANIFEST) # hide
55+
```
56+
```@raw html
57+
</details>
58+
```
59+
```@raw html
60+
You can also download the
61+
<a href="
62+
```
63+
```@eval
64+
using TOML
65+
version = TOML.parse(read("../../Project.toml",String))["version"]
66+
name = TOML.parse(read("../../Project.toml",String))["name"]
67+
link = "https://github.com/SciML/"*name*".jl/tree/gh-pages/v"*version*"/assets/Manifest.toml"
68+
```
69+
```@raw html
70+
">manifest</a> file and the
71+
<a href="
72+
```
73+
```@eval
74+
using TOML
75+
version = TOML.parse(read("../../Project.toml",String))["version"]
76+
name = TOML.parse(read("../../Project.toml",String))["name"]
77+
link = "https://github.com/SciML/"*name*".jl/tree/gh-pages/v"*version*"/assets/Project.toml"
78+
```
79+
```@raw html
80+
">project</a> file.
81+
```

0 commit comments

Comments
 (0)