Skip to content

Commit 79a1a3a

Browse files
Merge pull request #7 from SciML/docs
add docs and patch bump
2 parents fd55113 + 3559e43 commit 79a1a3a

File tree

12 files changed

+217
-5
lines changed

12 files changed

+217
-5
lines changed

.github/workflows/Documentation.yml

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

.github/workflows/Downstream.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: IntegrationTest
2+
on:
3+
push:
4+
branches: [main]
5+
tags: [v*]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}/${{ matrix.julia-version }}
11+
runs-on: ${{ matrix.os }}
12+
env:
13+
GROUP: ${{ matrix.package.group }}
14+
strategy:
15+
matrix:
16+
julia-version: [1,1.6]
17+
os: [ubuntu-latest]
18+
package:
19+
- {user: SciML, repo: OrdinaryDiffEq.jl, group: InterfaceI}
20+
- {user: SciML, repo: SciMLBase.jl, group: Core}
21+
- {user: SciML, repo: DiffEqBase.jl, group: Core}
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: julia-actions/setup-julia@v1
26+
with:
27+
version: ${{ matrix.julia-version }}
28+
arch: x64
29+
- uses: julia-actions/julia-buildpkg@latest
30+
- name: Clone Downstream
31+
uses: actions/checkout@v2
32+
with:
33+
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
34+
path: downstream
35+
- name: Load this and run the downstream tests
36+
shell: julia --color=yes --project=downstream {0}
37+
run: |
38+
using Pkg
39+
try
40+
# force it to use this PR's version of the package
41+
Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
42+
Pkg.update()
43+
Pkg.test() # resolver may fail with test time deps
44+
catch err
45+
err isa Pkg.Resolve.ResolverError || rethrow()
46+
# If we can't resolve that means this is incompatible by SemVer and this is fine
47+
# It means we marked this as a breaking change, so we don't need to worry about
48+
# Mistakenly introducing a breaking change, as we have intentionally made one
49+
@info "Not compatible with this release. No problem." exception=err
50+
exit(0) # Exit immediately, as a success
51+
end

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "CommonSolve"
22
uuid = "38540f10-b2f7-11e9-35d8-d573e4eb0ff2"
33
authors = ["Chris Rackauckas <[email protected]>"]
4-
version = "0.2.0"
4+
version = "0.2.1"
55

66
[compat]
77
julia = "1.6"

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
[![Build Status](https://github.com/SciML/CommonSolve.jl/workflows/CI/badge.svg)](https://github.com/SciML/CommonSolve.jl/actions?query=workflow%3ACI)
44

5-
This holds the common `solve` command. The rules are that you must dispatch
6-
on one of your own types. That's it. No pirates.
7-
8-
Oh and there're `init` and `solve!` as well.
5+
This holds the common `solve`, `init`, and `solve!` commands. By using the same definition,
6+
solver libraries from other completely different ecosystems can extend the functions and thus
7+
not clash with SciML if both ecosystems export the `solve` command. The rules are that
8+
you must dispatch on one of your own types. That's it. No pirates.
99

1010
## General recommendation
1111

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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
4+
[compat]
5+
Documenter = "0.27"

docs/make.jl

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

docs/pages.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pages = [
2+
"The Common Solve Interface" => "index.md",
3+
]

docs/src/assets/favicon.ico

1.36 KB
Binary file not shown.

docs/src/assets/logo.png

26 KB
Loading

0 commit comments

Comments
 (0)