Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
apply formatter to all files
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Mar 12, 2020
1 parent ad77950 commit 85a86d0
Show file tree
Hide file tree
Showing 189 changed files with 31,322 additions and 22,495 deletions.
3 changes: 2 additions & 1 deletion docs/generate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import Literate

EXAMPLE_BL_DIR = joinpath(@__DIR__, "..", "examples", "DGmethods_old")
GENERATED_BL_DIR = joinpath(@__DIR__, "src", "examples", "DGmethods_old", "generated")
GENERATED_BL_DIR =
joinpath(@__DIR__, "src", "examples", "DGmethods_old", "generated")
for example in readdir(EXAMPLE_BL_DIR)
endswith(example, ".jl") || continue
input = abspath(joinpath(EXAMPLE_BL_DIR, example))
Expand Down
108 changes: 52 additions & 56 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,78 +5,74 @@ using CLIMA, Documenter
# TODO: Add generated examples back
# include("generate.jl")

GENERATED_BL_EXAMPLES =
[joinpath("examples", "DGmethods_old", "generated", f) for f in
(
"ex_001_periodic_advection.md",
"ex_002_solid_body_rotation.md",
)]
GENERATED_BL_EXAMPLES = filter!(x->isfile(x), GENERATED_BL_EXAMPLES)
GENERATED_BL_EXAMPLES = [
joinpath("examples", "DGmethods_old", "generated", f)
for
f in ("ex_001_periodic_advection.md", "ex_002_solid_body_rotation.md")
]
GENERATED_BL_EXAMPLES = filter!(x -> isfile(x), GENERATED_BL_EXAMPLES)

pages = Any[
"Home" => "index.md",
"Common" => Any[
"MoistThermodynamics" => "Common/MoistThermodynamics.md",
],
"Utilites" => Any[
"RootSolvers" => "Utilities/RootSolvers.md",
],
"Atmos" => Any[
"Atmos/SurfaceFluxes.md",
"Atmos/TurbulenceConvection.md",
"Atmos/EDMFEquations.md",
"Microphysics" => "Atmos/Microphysics.md",
],
"ODESolvers" => "ODESolvers.md",
"LinearSolvers" => "LinearSolvers.md",
"Mesh" => "Mesh.md",
"Arrays" => "Arrays.md",
"DGmethods_old" => "DGmethods_old.md",
"InputOutput.md",
"Developer docs" => Any[
"CodingConventions.md",
"AcceptableUnicode.md",
"VariableList.md",
],
"Home" => "index.md",
"Common" => Any["MoistThermodynamics" => "Common/MoistThermodynamics.md",],
"Utilites" => Any["RootSolvers" => "Utilities/RootSolvers.md",],
"Atmos" => Any[
"Atmos/SurfaceFluxes.md",
"Atmos/TurbulenceConvection.md",
"Atmos/EDMFEquations.md",
"Microphysics" => "Atmos/Microphysics.md",
],
"ODESolvers" => "ODESolvers.md",
"LinearSolvers" => "LinearSolvers.md",
"Mesh" => "Mesh.md",
"Arrays" => "Arrays.md",
"DGmethods_old" => "DGmethods_old.md",
"InputOutput.md",
"Developer docs" => Any[
"CodingConventions.md",
"AcceptableUnicode.md",
"VariableList.md",
],
]

if !isempty(GENERATED_BL_EXAMPLES)
push!(pages,"Balance Law Examples" => ["BalanceLawOverview.md", GENERATED_BL_EXAMPLES...])
push!(
pages,
"Balance Law Examples" =>
["BalanceLawOverview.md", GENERATED_BL_EXAMPLES...],
)
end


makedocs(
sitename = "CLIMA",
doctest = false,
strict = false,
linkcheck = false,
checkdocs = :exports,
# checkdocs = :all,
format = Documenter.HTML(
prettyurls = get(ENV, "CI", nothing) == "true",
sitename = "CLIMA",
doctest = false,
strict = false,
linkcheck = false,
checkdocs = :exports,
# checkdocs = :all,
format = Documenter.HTML(
prettyurls = get(ENV, "CI", nothing) == "true",
mathengine = MathJax(Dict(
:TeX => Dict(
:equationNumbers => Dict(:autoNumber => "AMS"),
:Macros => Dict()
)
))
# prettyurls = !("local" in ARGS),
# canonical = "https://climate-machine.github.io/CLIMA/stable/",
),
clean = true,
modules = [Documenter, CLIMA],
pages = pages,
:Macros => Dict(),
),
)),
# prettyurls = !("local" in ARGS),
# canonical = "https://climate-machine.github.io/CLIMA/stable/",
),
clean = true,
modules = [Documenter, CLIMA],
pages = pages,
)

# make sure there are no *.vtu files left around from the build
p = joinpath(@__DIR__, "build", "examples", "DGmethods_old", "generated")
if ispath(p)
cd(p) do
foreach(file -> endswith(file, ".vtu") && rm(file), readdir())
end
cd(p) do
foreach(file -> endswith(file, ".vtu") && rm(file), readdir())
end
end

deploydocs(
repo = "github.com/climate-machine/CLIMA.git",
target = "build",
)
deploydocs(repo = "github.com/climate-machine/CLIMA.git", target = "build")
Loading

0 comments on commit 85a86d0

Please sign in to comment.