Skip to content

Commit 66de240

Browse files
committed
Documenter 1.0 upgrade
1 parent 75ebbc3 commit 66de240

File tree

7 files changed

+23
-41
lines changed

7 files changed

+23
-41
lines changed

.github/workflows/CI.yml

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

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ the documentation, which contains the unreleased features.
3737
- Integrated logging suite for handling connections to TensorBoard
3838
- Handling of (partial) integro-differential equations and various stochastic equations
3939
- Specialized forms for solving `ODEProblem`s with neural networks
40-
- Compatability with [Flux.jl](https://docs.sciml.ai/Flux.jl/stable/) and [Lux.jl](https://docs.sciml.ai/Lux/stable/)
40+
- Compatability with [Flux.jl](https://fluxml.ai/) and [Lux.jl](https://lux.csail.mit.edu/)
4141
for all of the GPU-powered machine learning layers available from those libraries.
4242
- Compatability with [NeuralOperators.jl](https://docs.sciml.ai/NeuralOperators/stable/) for
4343
mixing DeepONets and other neural operators (Fourier Neural Operators, Graph Neural Operators,

docs/Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
2020

2121
[compat]
2222
DiffEqBase = "6.106"
23-
Documenter = "0.27"
23+
Documenter = "1"
2424
DomainSets = "0.6"
2525
Flux = "0.13, 0.14"
2626
Integrals = "3.3"

docs/make.jl

+3-12
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,10 @@ include("pages.jl")
1010

1111
makedocs(sitename = "NeuralPDE.jl",
1212
authors = "#",
13-
clean = true,
14-
doctest = false,
1513
modules = [NeuralPDE],
16-
strict = [
17-
:doctest,
18-
:linkcheck,
19-
:parse_error,
20-
:example_block,
21-
# Other available options are
22-
# :autodocs_block, :cross_references, :docs_block, :eval_block, :example_block, :footnote, :meta_block, :missing_docs, :setup_block
23-
],
24-
format = Documenter.HTML(analytics = "UA-90474609-3",
25-
assets = ["assets/favicon.ico"],
14+
clean = true, doctest = false, linkcheck = true,
15+
warnonly = [:missing_docs, :example_block],
16+
format = Documenter.HTML(assets = ["assets/favicon.ico"],
2617
canonical = "https://docs.sciml.ai/NeuralPDE/stable/"),
2718
pages = pages)
2819

docs/src/examples/Lotka_Volterra_BPINNs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ tspan = (0.0, 6.0)
4646
prob = ODEProblem(lotka_volterra, u0, tspan, p)
4747

4848
```
49-
With the [`saveat` argument](https://docs.sciml.ai/latest/basics/common_solver_opts/) we can specify that the solution is stored only at `saveat` time units(default saveat=1 / 50.0).
49+
With the [`saveat` argument](https://docs.sciml.ai/DiffEqDocs/stable/basics/common_solver_opts/) we can specify that the solution is stored only at `saveat` time units(default saveat=1 / 50.0).
5050

5151
```julia
5252
# Plot solution got by Standard DifferentialEquations.jl ODE solver

docs/src/index.md

+12-25
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ networks which both approximate physical laws and real data simultaniously.
1515
- Integrated logging suite for handling connections to TensorBoard.
1616
- Handling of (partial) integro-differential equations and various stochastic equations.
1717
- Specialized forms for solving `ODEProblem`s with neural networks.
18-
- Compatibility with [Flux.jl](https://docs.sciml.ai/Flux.jl/stable/) and [Lux.jl](https://docs.sciml.ai/Lux/stable/).
18+
- Compatibility with [Flux.jl](https://fluxml.ai/) and [Lux.jl](https://lux.csail.mit.edu/).
1919
for all the GPU-powered machine learning layers available from those libraries.
2020
- Compatibility with [NeuralOperators.jl](https://docs.sciml.ai/NeuralOperators/stable/) for
2121
mixing DeepONets and other neural operators (Fourier Neural Operators, Graph Neural Operators,
@@ -132,32 +132,19 @@ Pkg.status(; mode = PKGMODE_MANIFEST) # hide
132132
</details>
133133
```
134134

135-
```@raw html
136-
You can also download the
137-
<a href="
138-
```
139-
140135
```@eval
141136
using TOML
137+
using Markdown
142138
version = TOML.parse(read("../../Project.toml", String))["version"]
143139
name = TOML.parse(read("../../Project.toml", String))["name"]
144-
link = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version *
145-
"/assets/Manifest.toml"
146-
```
147-
148-
```@raw html
149-
">manifest</a> file and the
150-
<a href="
151-
```
152-
153-
```@eval
154-
using TOML
155-
version = TOML.parse(read("../../Project.toml", String))["version"]
156-
name = TOML.parse(read("../../Project.toml", String))["name"]
157-
link = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version *
158-
"/assets/Project.toml"
159-
```
160-
161-
```@raw html
162-
">project</a> file.
140+
link_manifest = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version *
141+
"/assets/Manifest.toml"
142+
link_project = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version *
143+
"/assets/Project.toml"
144+
Markdown.parse("""You can also download the
145+
[manifest]($link_manifest)
146+
file and the
147+
[project]($link_project)
148+
file.
149+
""")
163150
```

src/pinn_types.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ methodology.
6666
should only be used to more directly impose functional information in the training problem,
6767
for example imposing the boundary condition by the test function formulation.
6868
* `adaptive_loss`: the choice for the adaptive loss function. See the
69-
[adaptive loss page](@id adaptive_loss) for more details. Defaults to no adaptivity.
69+
[adaptive loss page](@ref adaptive_loss) for more details. Defaults to no adaptivity.
7070
* `additional_loss`: a function `additional_loss(phi, θ, p_)` where `phi` are the neural
7171
network trial solutions, `θ` are the weights of the neural network(s), and `p_` are the
7272
hyperparameters of the `OptimizationProblem`. If `param_estim = true`, then `θ` additionally

0 commit comments

Comments
 (0)