Skip to content

Commit 7383982

Browse files
committed
Documenter 1.0 upgrade
1 parent bdbd1ee commit 7383982

File tree

5 files changed

+19
-35
lines changed

5 files changed

+19
-35
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ on:
33
pull_request:
44
branches:
55
- main
6+
paths-ignore:
7+
- 'docs/**'
68
push:
79
branches:
810
- main
11+
paths-ignore:
12+
- 'docs/**'
913
jobs:
1014
test:
1115
runs-on: ubuntu-latest

.github/workflows/FormatCheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: format-check
33
on:
44
push:
55
branches:
6-
- 'master'
6+
- 'main'
77
- 'release-'
88
tags: '*'
99
pull_request:

docs/Project.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
1111
[compat]
1212
ControlSystemsBase = "1.1"
1313
DifferentialEquations = "7.6"
14-
Documenter = "0.27"
14+
Documenter = "1"
1515
IfElse = "0.1"
1616
ModelingToolkit = "8.67"
17-
ModelingToolkitStandardLibrary = "2"
1817
OrdinaryDiffEq = "6.31"
1918
Plots = "1.36"

docs/make.jl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ include("pages.jl")
1919

2020
makedocs(sitename = "ModelingToolkitStandardLibrary.jl",
2121
authors = "Julia Computing",
22-
clean = true,
23-
doctest = false,
24-
linkcheck = true,
25-
strict = [
26-
:linkcheck,
27-
:doctest,
28-
:example_block,
29-
],
3022
modules = [ModelingToolkit,
3123
ModelingToolkitStandardLibrary,
3224
ModelingToolkitStandardLibrary.Blocks,
@@ -38,6 +30,8 @@ makedocs(sitename = "ModelingToolkitStandardLibrary.jl",
3830
ModelingToolkitStandardLibrary.Thermal,
3931
ModelingToolkitStandardLibrary.Hydraulic,
4032
ModelingToolkitStandardLibrary.Hydraulic.IsothermalCompressible],
33+
clean = true, doctest = false, linkcheck = true,
34+
warnonly = [:docs_block, :missing_docs, :cross_references],
4135
format = Documenter.HTML(assets = ["assets/favicon.ico"],
4236
canonical = "https://docs.sciml.ai/ModelingToolkitStandardLibrary/stable/"),
4337
pages = pages)

docs/src/index.md

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -87,32 +87,19 @@ Pkg.status(; mode = PKGMODE_MANIFEST) # hide
8787
</details>
8888
```
8989

90-
```@raw html
91-
You can also download the
92-
<a href="
93-
```
94-
9590
```@eval
9691
using TOML
92+
using Markdown
9793
version = TOML.parse(read("../../Project.toml", String))["version"]
9894
name = TOML.parse(read("../../Project.toml", String))["name"]
99-
link = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version *
100-
"/assets/Manifest.toml"
101-
```
102-
103-
```@raw html
104-
">manifest</a> file and the
105-
<a href="
106-
```
107-
108-
```@eval
109-
using TOML
110-
version = TOML.parse(read("../../Project.toml", String))["version"]
111-
name = TOML.parse(read("../../Project.toml", String))["name"]
112-
link = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version *
113-
"/assets/Project.toml"
114-
```
115-
116-
```@raw html
117-
">project</a> file.
95+
link_manifest = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version *
96+
"/assets/Manifest.toml"
97+
link_project = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version *
98+
"/assets/Project.toml"
99+
Markdown.parse("""You can also download the
100+
[manifest]($link_manifest)
101+
file and the
102+
[project]($link_project)
103+
file.
104+
""")
118105
```

0 commit comments

Comments
 (0)