Skip to content

Commit

Permalink
Add docs skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskawczynski committed Jul 20, 2021
1 parent ec66f9e commit c2ea968
Show file tree
Hide file tree
Showing 9 changed files with 172 additions and 1 deletion.
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: ci
on:
push:
branches:
- main
- trying
- staging
tags: '*'
pull_request:

jobs:
test:
name: ci ${{ matrix.version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.4'
- '1.5'
- '1.6.0'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
26 changes: 26 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Documentation

on:
push:
branches:
- main
- trying
- staging
tags: '*'
pull_request:

jobs:
docbuild:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: 1.6.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 }} # For authentication with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
run: julia --project=docs/ docs/make.jl
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "TurbulenceConvection"
uuid = "8e072fc4-01f8-44fb-b9dc-f9336c367e6b"
authors = ["Charles Kawczynski <[email protected]>"]
authors = ["Climate Modeling Alliance"]
version = "0.1.0"

[deps]
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# TurbulenceConvection.jl #

|||
|---------------------:|:----------------------------------------------|
| **Docs Build** | [![docs build][docs-bld-img]][docs-bld-url] |
| **Documentation** | [![dev][docs-dev-img]][docs-dev-url] |
| **GHA CI** | [![gha ci][gha-ci-img]][gha-ci-url] |
| **Bors enabled** | [![bors][bors-img]][bors-url] |

[docs-bld-img]: https://github.com/CliMA/TurbulenceConvection.jl/actions/workflows/docs.yml/badge.svg
[docs-bld-url]: https://github.com/CliMA/TurbulenceConvection.jl/actions/workflows/docs.yml

[docs-dev-img]: https://img.shields.io/badge/docs-dev-blue.svg
[docs-dev-url]: https://CliMA.github.io/TurbulenceConvection.jl/dev/

[gha-ci-img]: https://github.com/CliMA/TurbulenceConvection.jl/actions/workflows/ci.yml/badge.svg
[gha-ci-url]: https://github.com/CliMA/TurbulenceConvection.jl/actions/workflows/ci.yml

[bors-img]: https://bors.tech/images/badge_small.svg
[bors-url]: https://app.bors.tech/repositories/35146


TurbulenceConvection (Single Column Atmospheric Model in Julia) provides a framework for testing parameterizations of clouds and turbulence.
It is particularly designed to support eddy-diffusivity mass-flux modeling frameworks.

Expand Down
10 changes: 10 additions & 0 deletions bors.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
status = [
"ci 1.4 - ubuntu-latest",
"ci 1.4 - windows-latest",
"ci 1.4 - macOS-latest",
"ci 1.5 - ubuntu-latest",
"ci 1.5 - windows-latest",
"ci 1.5 - macOS-latest",
"ci 1.6.0 - ubuntu-latest",
"ci 1.6.0 - windows-latest",
"ci 1.6.0 - macOS-latest",
"buildkite/turbulenceconvection-ci",
"docbuild",
"format",
]
delete_merged_branches = true
Expand Down
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"
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
TurbulenceConvection = "8e072fc4-01f8-44fb-b9dc-f9336c367e6b"
16 changes: 16 additions & 0 deletions docs/bibliography.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# The citation keys have been formatted as:
# Last author name (titlecase), followed by
# (no characters in-between) the year.
@article{Nishizawa2018,
title = {A Surface Flux Scheme Based on the Monin-Obukhov Similarity for Finite Volume Models},
author = {Nishizawa, S and Kitamura, Y},
journal = {Journal of Advances in Modeling Earth Systems},
volume = {10},
number = {12},
doi = {10.1029/2018MS001534},
pages = {3159--3175},
year = {2018},
publisher = {Wiley Online Library}
}

43 changes: 43 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
using TurbulenceConvection, Documenter
using DocumenterCitations

bib = CitationBibliography(joinpath(@__DIR__, "bibliography.bib"))

#! format: off
pages = Any[
"Home" => "index.md",
]

mathengine = MathJax(Dict(
:TeX => Dict(
:equationNumbers => Dict(:autoNumber => "AMS"),
:Macros => Dict(),
),
))

format = Documenter.HTML(
prettyurls = get(ENV, "CI", nothing) == "true",
mathengine = mathengine,
collapselevel = 1,
)
#! format: on

makedocs(
bib,
sitename = "TurbulenceConvection.jl",
strict = true,
format = format,
checkdocs = :exports,
clean = true,
doctest = true,
modules = [TurbulenceConvection],
pages = pages,
)

deploydocs(
repo = "github.com/CliMA/TurbulenceConvection.jl.git",
target = "build",
push_preview = true,
devbranch = "main",
forcepush = true,
)
2 changes: 2 additions & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# TurbulenceConvection.jl

0 comments on commit c2ea968

Please sign in to comment.