Skip to content

Commit

Permalink
Update documentation build script
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Sep 20, 2023
1 parent f6aca5f commit 74947fb
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@latest
with:
version: '1'
- name: Install Dependencies
run: julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
run: julia --project=docs --color=yes -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and Deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: julia --project=docs docs/make.jl
run: julia --project=docs --color=yes docs/make.jl
4 changes: 4 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
WaterModels = "7c60b362-08f4-5b14-8680-cd67a3e18348"

[compat]
Documenter = "1"
29 changes: 18 additions & 11 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,34 +1,41 @@
using Documenter, WaterModels
import Documenter
import WaterModels

makedocs(
modules = [WaterModels],
format = Documenter.HTML(analytics="UA-367975-10", mathengine=Documenter.MathJax(), prettyurls=false),
Documenter.makedocs(
sitename = "WaterModels",
authors = "Byron Tasseff and contributors",
format = Documenter.HTML(
analytics="UA-367975-10",
mathengine = Documenter.MathJax(),
prettyurls = false,
),
pages = [
"Home" => "index.md",
"Manual" => [
"Getting Started" => "quickguide.md",
"Network Data Format" => "network-data.md",
"Result Data Format" => "result-data.md",
"Mathematical Models" => "math-model.md"
"Mathematical Models" => "math-model.md",
],
"Library" => [
"Network Formulations" => "formulations.md",
"Problem Specifications" => "specifications.md",
"Modeling Components" => [
"Objective" => "objective.md",
"Variables" => "variables.md",
"Constraints" => "constraints.md"
"Constraints" => "constraints.md",
],
"File I/O" => "parser.md"
"File I/O" => "parser.md",
],
"Developer" => "developer.md",
"Examples" => "examples.md"
"Devegloper" => "developer.md",
"Examples" => "examples.md",
],
warnonly = true
clean = true,
modules = [WaterModels],
warnonly = true,
)

deploydocs(
Documenter.deploydocs(
repo = "github.com/lanl-ansi/WaterModels.jl.git",
push_preview = true,
)

0 comments on commit 74947fb

Please sign in to comment.