Skip to content

Commit ae5a403

Browse files
authored
Merge pull request #21 from LAMPSPUC/jg/docs
Create documentation.yml
2 parents be091d6 + ad675c8 commit ae5a403

File tree

2 files changed

+38
-7
lines changed

2 files changed

+38
-7
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags: '*'
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
permissions:
13+
actions: write
14+
contents: write
15+
pull-requests: read
16+
statuses: write
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: julia-actions/setup-julia@v2
21+
with:
22+
version: '1'
23+
- uses: julia-actions/cache@v2
24+
- name: Install dependencies
25+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
26+
- name: Build and deploy
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
29+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
30+
run: julia --project=docs/ docs/make.jl

docs/make.jl

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
using Documenter
1+
import Documenter
22

3-
push!(LOAD_PATH, "../src")
43
using ApplicationDrivenLearning
54

6-
makedocs(;
7-
modules = [ApplicationDrivenLearning],
8-
doctest = false,
5+
Documenter.makedocs(;
96
clean = true,
10-
sitename = "ApplicationDrivenLearning.jl",
7+
sitename = "ApplicationDrivenLearning.jl documentation",
118
authors = "Giovanni Amorim, Joaquim Garcia",
12-
pages = ["Home" => "index.md", "API Reference" => "reference.md"],
9+
)
10+
11+
Documenter.deploydocs(;
12+
repo = "github.com/LAMPSPUC/ApplicationDrivenLearning.jl.git",
13+
push_preview = true,
1314
)

0 commit comments

Comments
 (0)