Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 0e10668

Browse files
Merge pull request #207 from ArnoStrouwen/master
add docs
2 parents 51ae585 + 62b919c commit 0e10668

File tree

10 files changed

+427
-3
lines changed

10 files changed

+427
-3
lines changed

.github/workflows/Documentation.yml

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

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
.DS_Store
22
Manifest.toml
33
/dev/
4+
5+
docs/build/
6+
docs/site/

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# SparseDiffTools.jl
22

3-
[![Join the chat at https://gitter.im/JuliaDiff/Lobby](https://badges.gitter.im/JuliaDiff/Lobby.svg)](https://gitter.im/JuliaDiff/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4-
[![Build status](https://badge.buildkite.com/ea7df061e20328f60d3e0816d97d2d856166f2ea7030748cef.svg?branch=master)](https://buildkite.com/julialang/sparsedifftools-dot-jl)
5-
[![Build status](https://badge.buildkite.com/ea7df061e20328f60d3e0816d97d2d856166f2ea7030748cef.svg)](https://buildkite.com/julialang/sparsedifftools-dot-jl)
3+
[![Join the chat at https://julialang.zulipchat.com #sciml-bridged](https://img.shields.io/static/v1?label=Zulip&message=chat&color=9558b2&labelColor=389826)](https://julialang.zulipchat.com/#narrow/stream/279055-sciml-bridged)
4+
[![Global Docs](https://img.shields.io/badge/docs-SciML-blue.svg)](https://docs.sciml.ai/SparseDiffTools/stable/)
5+
6+
[![codecov](https://codecov.io/gh/JuliaDiff/SparseDiffTools.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaDiff/SparseDiffTools.jl)
7+
[![Build Status](https://github.com/JuliaDiff/SparseDiffTools.jl/workflows/CI/badge.svg)](https://github.com/JuliaDiff/SparseDiffTools.jl/actions?query=workflow%3ACI)
8+
[![buildkite](https://badge.buildkite.com/ea7df061e20328f60d3e0816d97d2d856166f2ea7030748cef.svg)](https://buildkite.com/julialang/sparsedifftools-dot-jl)
9+
10+
[![ColPrac: Contributor's Guide on Collaborative Practices for Community Packages](https://img.shields.io/badge/ColPrac-Contributor's%20Guide-blueviolet)](https://github.com/SciML/ColPrac)
11+
[![SciML Code Style](https://img.shields.io/static/v1?label=code%20style&message=SciML&color=9558b2&labelColor=389826)](https://github.com/SciML/SciMLStyle)
612

713
This package is for exploiting sparsity in Jacobians and Hessians to accelerate
814
computations. Matrix-free Jacobian-vector product and Hessian-vector product

docs/Project.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
SparseDiffTools = "47a9eef4-7e08-11e9-0b38-333d64bd3804"
4+
5+
[compat]
6+
Documenter = "0.27"

docs/make.jl

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

docs/pages.jl

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

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)