-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (52 loc) · 1.36 KB
/
check_docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Check Docs
on:
push:
branches:
- add_linting # update to match your development branch (master, main, dev, trunk, ...)
tags: '*'
pull_request:
jobs:
documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Julia
uses: julia-actions/setup-julia@v1
with:
version: '1' # Use the latest stable Julia version
- name: Install dependencies
run: |
julia --project=docs -e '
using Pkg;
Pkg.develop(PackageSpec(path=pwd()));
Pkg.instantiate();
Pkg.add("Documenter");
'
- name: Try building documentation and run doctests
run: |
julia --project=docs -e '
using Documenter, HerbCore;
content = """
```@meta
CurrentModule = HerbCore
DocTestSetup = quote
using HerbCore
end
```
```@autodocs
Modules = [HerbCore]
```
"""
mkpath("src/")
open("src/index.md", "w") do file
write(file, content)
end
makedocs(
sitename="HerbCore.jl",
modules=[HerbCore],
format=Documenter.HTML(),
doctest=true,
warnonly=[:missing_docs],
pages=["index.md"]
);
'