Skip to content

Commit 5d15acd

Browse files
Merge pull request #16 from 00krishna-opensource/add_reproducibility
added reproducibility to index.md and make.jl
2 parents 607487b + 84fb9f1 commit 5d15acd

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, CommonSolve
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(

docs/src/index.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,58 @@ CommonSolve.solve!
5050
- [JuliaDiffEq](https://gitter.im/JuliaDiffEq/Lobby) on Gitter
5151
- On the Julia Discourse forums (look for the [modelingtoolkit tag](https://discourse.julialang.org/tag/modelingtoolkit)
5252
- See also [SciML Community page](https://sciml.ai/community/)
53+
54+
## Reproducibility
55+
```@raw html
56+
<details><summary>The documentation of this SciML package was built using these direct dependencies,</summary>
57+
```
58+
```@example
59+
using Pkg # hide
60+
Pkg.status() # hide
61+
```
62+
```@raw html
63+
</details>
64+
```
65+
```@raw html
66+
<details><summary>and using this machine and Julia version.</summary>
67+
```
68+
```@example
69+
using InteractiveUtils # hide
70+
versioninfo() # hide
71+
```
72+
```@raw html
73+
</details>
74+
```
75+
```@raw html
76+
<details><summary>A more complete overview of all dependencies and their versions is also provided.</summary>
77+
```
78+
```@example
79+
using Pkg # hide
80+
Pkg.status(;mode = PKGMODE_MANIFEST) # hide
81+
```
82+
```@raw html
83+
</details>
84+
```
85+
```@raw html
86+
You can also download the
87+
<a href="
88+
```
89+
```@eval
90+
using TOML
91+
version = TOML.parse(read("../../Project.toml",String))["version"]
92+
name = TOML.parse(read("../../Project.toml",String))["name"]
93+
link = "https://github.com/SciML/"*name*".jl/tree/gh-pages/v"*version*"/assets/Manifest.toml"
94+
```
95+
```@raw html
96+
">manifest</a> file and the
97+
<a href="
98+
```
99+
```@eval
100+
using TOML
101+
version = TOML.parse(read("../../Project.toml",String))["version"]
102+
name = TOML.parse(read("../../Project.toml",String))["name"]
103+
link = "https://github.com/SciML/"*name*".jl/tree/gh-pages/v"*version*"/assets/Project.toml"
104+
```
105+
```@raw html
106+
">project</a> file.
107+
```

0 commit comments

Comments
 (0)