Skip to content

Commit

Permalink
Add documentation (#26)
Browse files Browse the repository at this point in the history
using documenter
  • Loading branch information
luraess authored Sep 13, 2023
2 parents dfc860e + 4a41267 commit aa9a378
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Documentation

on:
push:
branches:
- iu/api # main # update to match your development branch (master, main, dev, trunk, ...)
tags: '*'
pull_request:

jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: '1.9'
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
run: julia --project=docs/ docs/make.jl
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# FastIce.jl
[![Docs](https://img.shields.io/badge/docs-dev-blue.svg)](https://PTsolvers.github.io/FastIce.jl/dev)
[![CPU CI](https://github.com/PTsolvers/FastIce.jl/actions/workflows/ci.yml/badge.svg)](https://github.com/PTsolvers/FastIce.jl/actions/workflows/ci.yml)
[![GPU CI](https://badge.buildkite.com/fac6909b4e3a4183ea260bb54f735ddf0657825a421cc634c7.svg)](https://buildkite.com/julialang/fastice-dot-jl)
[![codecov](https://codecov.io/gh/PTsolvers/FastIce.jl/branch/iu/api/graph/badge.svg?token=KDB0GQQDT7)](https://codecov.io/gh/PTsolvers/FastIce.jl)
Expand Down
2 changes: 2 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build/
site/
5 changes: 5 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

[compat]
Documenter = "0.27"
19 changes: 19 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using Documenter
using FastIce

push!(LOAD_PATH,"../src/")

makedocs(
sitename = "FastIce",
authors="Ludovic Räss, Ivan utkin and contributors",
format = Documenter.HTML(; prettyurls=get(ENV, "CI", nothing) == "true"), # easier local build
modules = [FastIce],
pages=[
"Home" => "index.md",
]
)

deploydocs(
repo = "github.com/PTsolvers/FastIce.jl.git",
devbranch = "iu/api" #"main"
)
Binary file added docs/src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# FastIce.jl

Documentation for FastIce.jl

0 comments on commit aa9a378

Please sign in to comment.