Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs #26

Merged
merged 5 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion src/FastIce.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ include("physics.jl")
include("BoundaryConditions/boundary_conditions.jl")
include("Models/models.jl")

include("distributed.jl")
# include("Distributed/distributed.jl")

end # module