Skip to content

Commit 714facc

Browse files
Merge pull request #3 from SciML/make-docs
Add documentation, CI workflow
2 parents b0fef22 + a2d4ecf commit 714facc

File tree

9 files changed

+162
-0
lines changed

9 files changed

+162
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags: '*'
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: julia-actions/setup-julia@latest
16+
with:
17+
version: '1'
18+
- name: Install dependencies
19+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
20+
- name: Build and deploy
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
23+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
24+
run: julia --project=docs/ --code-coverage=user docs/make.jl
25+
- uses: julia-actions/julia-processcoverage@v1
26+
- uses: codecov/codecov-action@v1
27+
with:
28+
file: lcov.info

docs/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build/
2+
site/

docs/Project.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[deps]
2+
SymbolicIndexingInterface = "2efcf032-c050-4f8e-a9bb-153293bab1f5"
3+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
4+
5+
[compat]
6+
Documenter = "0.27"
7+
SymbolicIndexingInterface = "0.1"

docs/make.jl

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using Documenter, SymbolicIndexingInterface
2+
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+
6+
include("pages.jl")
7+
8+
makedocs(
9+
sitename="SymbolicIndexingInterface.jl",
10+
authors="Chris Rackauckas",
11+
modules=[SymbolicIndexingInterface],
12+
clean=true,doctest=false,
13+
format = Documenter.HTML(analytics = "UA-90474609-3",
14+
assets = ["assets/favicon.ico"],
15+
canonical="https://docs.sciml.ai/SymbolicIndexingInterface/stable/"),
16+
pages=pages
17+
)
18+
19+
deploydocs(
20+
repo = "github.com/SciML/SymbolicIndexingInterface.jl.git";
21+
push_preview = true
22+
)

docs/pages.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Put in a separate page so it can be used by SciMLDocs.jl
2+
3+
pages=[
4+
"Home" => "index.md",
5+
"API" => "api.md",
6+
]

docs/src/api.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Interface Functions
2+
3+
```@docs
4+
independent_variables
5+
is_indep_sym
6+
states
7+
state_sym_to_index
8+
is_state_sym
9+
parameters
10+
param_sym_to_index
11+
is_param_sym
12+
```
13+
14+
## Concrete Types
15+
16+
```@docs
17+
SymbolCache
18+
```

docs/src/assets/favicon.ico

1.36 KB
Binary file not shown.

docs/src/assets/logo.png

26 KB
Loading

docs/src/index.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# SymbolicIndexingInterface.jl: Arrays of Arrays and Even Deeper
2+
3+
SymbolicIndexingInterface.jl is a set of interface functions for handling containers
4+
of symbolic variables. It also contains one such container: `SymbolCache`.
5+
6+
## Installation
7+
8+
To install SymbolicIndexingInterface.jl, use the Julia package manager:
9+
10+
```julia
11+
using Pkg
12+
Pkg.add("SymbolicIndexingInterface")
13+
```
14+
15+
## Contributing
16+
17+
- Please refer to the
18+
[SciML ColPrac: Contributor's Guide on Collaborative Practices for Community Packages](https://github.com/SciML/ColPrac/blob/master/README.md)
19+
for guidance on PRs, issues, and other matters relating to contributing to SciML.
20+
- There are a few community forums:
21+
- the #diffeq-bridged channel in the [Julia Slack](https://julialang.org/slack/)
22+
- [JuliaDiffEq](https://gitter.im/JuliaDiffEq/Lobby) on Gitter
23+
- on the [Julia Discourse forums](https://discourse.julialang.org)
24+
- see also [SciML Community page](https://sciml.ai/community/)
25+
26+
## Reproducibility
27+
```@raw html
28+
<details><summary>The documentation of this SciML package was built using these direct dependencies,</summary>
29+
```
30+
```@example
31+
using Pkg # hide
32+
Pkg.status() # hide
33+
```
34+
```@raw html
35+
</details>
36+
```
37+
```@raw html
38+
<details><summary>and using this machine and Julia version.</summary>
39+
```
40+
```@example
41+
using InteractiveUtils # hide
42+
versioninfo() # hide
43+
```
44+
```@raw html
45+
</details>
46+
```
47+
```@raw html
48+
<details><summary>A more complete overview of all dependencies and their versions is also provided.</summary>
49+
```
50+
```@example
51+
using Pkg # hide
52+
Pkg.status(;mode = PKGMODE_MANIFEST) # hide
53+
```
54+
```@raw html
55+
</details>
56+
```
57+
```@raw html
58+
You can also download the
59+
<a href="
60+
```
61+
```@eval
62+
using TOML
63+
version = TOML.parse(read("../../Project.toml",String))["version"]
64+
name = TOML.parse(read("../../Project.toml",String))["name"]
65+
link = "https://github.com/SciML/"*name*".jl/tree/gh-pages/v"*version*"/assets/Manifest.toml"
66+
```
67+
```@raw html
68+
">manifest</a> file and the
69+
<a href="
70+
```
71+
```@eval
72+
using TOML
73+
version = TOML.parse(read("../../Project.toml",String))["version"]
74+
name = TOML.parse(read("../../Project.toml",String))["name"]
75+
link = "https://github.com/SciML/"*name*".jl/tree/gh-pages/v"*version*"/assets/Project.toml"
76+
```
77+
```@raw html
78+
">project</a> file.
79+
```

0 commit comments

Comments
 (0)