Skip to content
This repository was archived by the owner on Sep 28, 2024. It is now read-only.

Commit febd1a7

Browse files
committed
Documenter 1.0 upgrade
1 parent a20d06f commit febd1a7

File tree

4 files changed

+22
-30
lines changed

4 files changed

+22
-30
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ env:
44
on:
55
push:
66
branches: '*'
7+
paths-ignore:
8+
- 'docs/**'
79
tags: '*'
810
pull_request:
11+
paths-ignore:
12+
- 'docs/**'
913
concurrency:
1014
# Skip intermediate builds: always.
1115
# Cancel intermediate builds: only if it is a pull request build.

docs/Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
55
NeuralOperators = "ea5c82af-86e5-48da-8ee1-382d6ad7af4b"
66

77
[compat]
8-
Documenter = "0.27"
9-
DocumenterCitations = "0.2"
8+
Documenter = "1"
9+
DocumenterCitations = "1"
1010
Flux = "0.13"
1111
NeuralOperators = "0.4"

docs/make.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,23 @@ using DocumenterCitations
55
cp("./docs/Manifest.toml", "./docs/src/assets/Manifest.toml", force = true)
66
cp("./docs/Project.toml", "./docs/src/assets/Project.toml", force = true)
77

8-
bib = CitationBibliography(joinpath(@__DIR__, "bibliography.bib"), sorting = :nyt)
8+
bib = CitationBibliography(joinpath(@__DIR__, "bibliography.bib"), style = :numeric)
99

1010
DocMeta.setdocmeta!(NeuralOperators, :DocTestSetup, :(using NeuralOperators);
1111
recursive = true)
1212

1313
include("pages.jl")
1414

15-
makedocs(bib,
16-
modules = [NeuralOperators],
15+
makedocs(modules = [NeuralOperators],
1716
authors = "JingYu Ning <[email protected]> and contributors",
1817
repo = "https://github.com/SciML/NeuralOperators.jl/blob/{commit}{path}#{line}",
1918
sitename = "NeuralOperators.jl",
19+
clean = true, doctest = false, linkcheck = true,
2020
format = Documenter.HTML(;
2121
prettyurls = get(ENV, "CI", "false") == "true",
2222
canonical = "https://docs.sciml.ai/NeuralOperators/stable/",
2323
assets = ["assets/favicon.ico"]),
24+
plugins=[bib],
2425
pages = pages)
2526

2627
deploydocs(;

docs/src/index.md

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -143,32 +143,19 @@ Pkg.status(; mode = PKGMODE_MANIFEST) # hide
143143
</details>
144144
```
145145

146-
```@raw html
147-
You can also download the
148-
<a href="
149-
```
150-
151-
```@eval
152-
using TOML
153-
version = TOML.parse(read("../../Project.toml", String))["version"]
154-
name = TOML.parse(read("../../Project.toml", String))["name"]
155-
link = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version *
156-
"/assets/Manifest.toml"
157-
```
158-
159-
```@raw html
160-
">manifest</a> file and the
161-
<a href="
162-
```
163-
164146
```@eval
165147
using TOML
148+
using Markdown
166149
version = TOML.parse(read("../../Project.toml", String))["version"]
167150
name = TOML.parse(read("../../Project.toml", String))["name"]
168-
link = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version *
169-
"/assets/Project.toml"
170-
```
171-
172-
```@raw html
173-
">project</a> file.
174-
```
151+
link_manifest = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version *
152+
"/assets/Manifest.toml"
153+
link_project = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version *
154+
"/assets/Project.toml"
155+
Markdown.parse("""You can also download the
156+
[manifest]($link_manifest)
157+
file and the
158+
[project]($link_project)
159+
file.
160+
""")
161+
```

0 commit comments

Comments
 (0)