Skip to content

Commit

Permalink
added doc files
Browse files Browse the repository at this point in the history
  • Loading branch information
obeznosov-LANL committed Jan 8, 2025
1 parent a6c9a05 commit 8beab24
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Documentation

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

jobs:
build:
permissions:
contents: write
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: '0.1.0'
- 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
2 changes: 2 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
Empty file added docs/devel.md
Empty file.
Empty file added docs/index.md
Empty file.
16 changes: 16 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using Pkg
using Documenter

makedocs(
sitename="hFlux",
authors = "Oleksii Beznosov",
format=Documenter.HTMLWriter.HTML(size_threshold = nothing),
pages =
[
"Home" => "index.md",
"Quickstart Guide" => "quickstart.md",
"For Developers" => "devel.md"
]
)

deploydocs(; repo = "github.com/obeznosov-LANL/hFlux")
Empty file added docs/quickstart.md
Empty file.

0 comments on commit 8beab24

Please sign in to comment.