Skip to content

Commit 3600af8

Browse files
authored
fix: docs (#102)
* fix: docs * compat: tests * ci: CompatHelper in multiple subdirs * fix: authors * docs: linkcheck * fix: docs again * ci: compat drop on docs and test suggested by @rikhuijzer
1 parent bb1e5ee commit 3600af8

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,18 @@ on:
66
jobs:
77
CompatHelper:
88
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
subdir: [
12+
{dir: "", compat: "KeepEntry()"},
13+
{dir: "docs", compat: "DropEntry()"},
14+
{dir: "test", compat: "DropEntry()"},
15+
]
916
steps:
1017
- name: Pkg.add("CompatHelper")
1118
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
1219
- name: CompatHelper.main()
1320
env:
1421
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1522
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
16-
run: julia -e 'using CompatHelper; CompatHelper.main()'
23+
run: julia -e 'using CompatHelper; CompatHelper.main(; subdirs=["${{ matrix.subdir.dir }}"], entry_type=${{ matrix.subdir.compat }})'

docs/Project.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ PlutoStaticHTML = "359b1769-a58e-495b-9770-312e911026ad"
99
TuringGLM = "0004c1f4-53c5-4d43-a221-a1dac6cf6b74"
1010

1111
[compat]
12-
CSV = "0.9, 1"
13-
CairoMakie = "0.7"
12+
CSV = "0.10, 1"
13+
CairoMakie = "0.11"
1414
CategoricalArrays = "0.10"
1515
DataFrames = "1"
16-
Documenter = "0.27"
17-
PlutoStaticHTML = "5"
16+
Documenter = "1"
17+
PlutoStaticHTML = "6"

docs/make.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,18 @@ DocMeta.setdocmeta!(TuringGLM, :DocTestSetup, :(using TuringGLM); recursive=true
2424
makedocs(;
2525
modules=[TuringGLM],
2626
authors="Jose Storopoli <[email protected]>, Rik Huijzer <[email protected]>, and contributors",
27-
repo="https://github.com/TuringLang/TuringGLM.jl/blob/{commit}{path}#{line}",
2827
sitename="TuringGLM.jl",
2928
format=Documenter.HTML(;
3029
assets=["assets/favicon.ico"],
3130
canonical="https://TuringLang.github.io/TuringGLM.jl",
3231
# Using MathJax3 since Pluto uses that engine too.
3332
mathengine=Documenter.MathJax3(),
3433
prettyurls=get(ENV, "CI", "false") == "true",
34+
size_threshold=600 * 2^10, # 600 KiB
35+
size_threshold_warn=200 * 2^10, # 200 KiB
3536
),
3637
pages=["Home" => "index.md", "Tutorials" => T, "API reference" => "api.md"],
38+
linkcheck=true,
3739
)
3840

3941
deploydocs(; repo="github.com/TuringLang/TuringGLM.jl", devbranch="main")

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ We recommend always using it with the latest stable Julia release.
1111

1212
TuringGLM makes easy to specify Bayesian **G**eneralized **L**inear **M**odels using the formula syntax and returns an instantiated [Turing](https://github.com/TuringLang/Turing.jl) model.
1313

14-
Heavily inspired by [brms](https://github.com/paul-buerkner/brms/) (uses RStan or CmdStanR) and [bambi](https://github.com/bambinos/bambi) (uses PyMC3).
14+
Heavily inspired by [brms](https://github.com/paul-buerkner/brms/) (uses RStan or CmdStanR) and [bambi](https://github.com/bambinos/bambi/) (uses PyMC3).
1515

1616
### `@formula`
1717

test/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
1212
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
1313

1414
[compat]
15-
CSV = "0.9, 1"
15+
CSV = "0.10, 1"
1616
CategoricalArrays = "0.10"
1717
DataFrames = "1"
1818
TimerOutputs = "0.5"

0 commit comments

Comments
 (0)