Skip to content

Commit 06df7cb

Browse files
Merge pull request #317 from ArnoStrouwen/docs1
Documenter 1.0 upgrade.
2 parents 7ca9bac + e32aefd commit 06df7cb

File tree

9 files changed

+68
-37
lines changed

9 files changed

+68
-37
lines changed

.JuliaFormatter.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
style = "sciml"
2+
format_markdown = true

.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
- 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

.github/workflows/FormatCheck.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: format-check
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
- 'release-'
8+
tags: '*'
9+
pull_request:
10+
11+
jobs:
12+
build:
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
julia-version: [1]
17+
julia-arch: [x86]
18+
os: [ubuntu-latest]
19+
steps:
20+
- uses: julia-actions/setup-julia@latest
21+
with:
22+
version: ${{ matrix.julia-version }}
23+
24+
- uses: actions/checkout@v4
25+
- name: Install JuliaFormatter and format
26+
# This will use the latest version by default but you can set the version like so:
27+
#
28+
# julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter", version="0.13.0"))'
29+
run: |
30+
julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))'
31+
julia -e 'using JuliaFormatter; format(".", verbose=true)'
32+
- name: Format check
33+
run: |
34+
julia -e '
35+
out = Cmd(`git diff --name-only`) |> read |> String
36+
if out == ""
37+
exit(0)
38+
else
39+
@error "Some files have not been formatted !!!"
40+
write(stdout, out)
41+
exit(1)
42+
end'

docs/Project.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
1010

1111
[compat]
1212
DifferentialEquations = "7.6"
13-
Documenter = "0.27"
13+
Documenter = "1"
1414
DomainSets = "0.5, 0.6"
15-
MethodOfLines = "0.8, 0.9"
1615
ModelingToolkit = "8"
1716
NonlinearSolve = "1"
1817
OrdinaryDiffEq = "6"

docs/make.jl

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,10 @@ include("pages.jl")
1010

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

docs/pages.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pages = [
99
"tutorials/icbc_sampled.md",
1010
"tutorials/PIDE.md",
1111
],
12-
"Performance Tips" => "performance.md"
12+
"Performance Tips" => "performance.md",
1313
"MOLFiniteDifference" => "MOLFiniteDifference.md",
1414
"Solution Interface - PDESolutions" => "solutions.md",
1515
"Grid and Solution Retrieval - Deprecated" => "get_grid.md",

docs/src/howitworks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ See [here](https://github.com/SciML/MethodOfLines.jl/blob/master/src/MOL_discret
66

77
Given your discretization and `PDESystem`, we take each independent variable defined on the space to be discretized and create a corresponding range. We then take each dependent variable and create an array of symbolic variables to represent it in its discretized form. This is stored in a [`DiscreteSpace`](https://github.com/SciML/MethodOfLines.jl/blob/master/src/discretization/discretize_vars.jl) object, a useful abstraction.
88

9-
We recognize boundary conditions, i.e. whether they are on the upper or lower ends of the domain, or periodic [here](https://github.com/SciML/MethodOfLines.jl/blob/master/src/system_parsing/bcs/parse_boundaries.jl), and use this information to construct the interior of the domain for each equation [here](https://github.com/SciML/MethodOfLines.jl/blob/master/src/system_parsing/interiormap.jl). Each PDE is matched to each dependent variable in this step by which variable is of highest order in each PDE, with precedence given to time derivatives. This dictates which boundary conditions reduce the size of the interior for which PDE. This is done to ensure that there will be the same number of equations as discrete variable states, so that the system of equations is balanced.
9+
We recognize boundary conditions, i.e. whether they are on the upper or lower ends of the domain, or periodic [here](https://github.com/SciML/PDEBase.jl/blob/master/src/parse_boundaries.jl), and use this information to construct the interior of the domain for each equation [here](https://github.com/SciML/MethodOfLines.jl/blob/master/src/system_parsing/interior_map.jl). Each PDE is matched to each dependent variable in this step by which variable is of highest order in each PDE, with precedence given to time derivatives. This dictates which boundary conditions reduce the size of the interior for which PDE. This is done to ensure that there will be the same number of equations as discrete variable states, so that the system of equations is balanced.
1010

1111
Next, the boundary conditions are discretized, creating an equation for each point on the boundary in terms of the discretized variables, replacing any space derivatives in the direction of the boundary with their upwind finite difference expressions. [This](https://github.com/SciML/MethodOfLines.jl/blob/master/src/discretization/generate_bc_eqs.jl) is the place to look to see how this happens.
1212

docs/src/index.md

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -109,26 +109,19 @@ Pkg.status(;mode = PKGMODE_MANIFEST) # hide
109109
```@raw html
110110
</details>
111111
```
112-
```@raw html
113-
You can also download the
114-
<a href="
115-
```
116112
```@eval
117113
using TOML
118-
version = TOML.parse(read("../../Project.toml",String))["version"]
119-
name = TOML.parse(read("../../Project.toml",String))["name"]
120-
link = "https://github.com/SciML/"*name*".jl/tree/gh-pages/v"*version*"/assets/Manifest.toml"
121-
```
122-
```@raw html
123-
">manifest</a> file and the
124-
<a href="
125-
```
126-
```@eval
127-
using TOML
128-
version = TOML.parse(read("../../Project.toml",String))["version"]
129-
name = TOML.parse(read("../../Project.toml",String))["name"]
130-
link = "https://github.com/SciML/"*name*".jl/tree/gh-pages/v"*version*"/assets/Project.toml"
131-
```
132-
```@raw html
133-
">project</a> file.
114+
using Markdown
115+
version = TOML.parse(read("../../Project.toml", String))["version"]
116+
name = TOML.parse(read("../../Project.toml", String))["name"]
117+
link_manifest = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version *
118+
"/assets/Manifest.toml"
119+
link_project = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version *
120+
"/assets/Project.toml"
121+
Markdown.parse("""You can also download the
122+
[manifest]($link_manifest)
123+
file and the
124+
[project]($link_project)
125+
file.
126+
""")
134127
```

docs/src/performance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ To overcome this limitation, and scale MOL to realistic physics simulations, Jul
77
Whenever this package and MethodOfLines are loaded together, MOL will also load `MethodOfLinesJuliaSimCompilerExt.jl`, an extension that takes advantage of this backend to speed up your compilation and solves automatically, with the same interface you are used to.
88

99
!!! note
10-
JuliaSimCompiler is part of JuliaSim and thus requires a valid JuliaSim license to use. JuliaSim is a proprietary software developed by JuliaHub Inc. Using the packages through the registry requires a valid JuliaSim license. It is free to use for non-commercial academic teaching and research purposes. For commercial users, license fees apply. Please refer to the [End User License Agreement](https://juliahub.com/company/eula/?_gl=1*120lqg6*_ga*MTAxODQ4OTE3Mi4xNjk0MDA4MDM5*_ga_8FC7JQQLXX*MTY5NDAwODAzOC4xLjEuMTY5NDAwODgxMC4wLjAuMA..) for details. Please contact [sales@juliahub.com](sales@juliahub.com) for purchasing information.
10+
JuliaSimCompiler is part of JuliaSim and thus requires a valid JuliaSim license to use. JuliaSim is a proprietary software developed by JuliaHub Inc. Using the packages through the registry requires a valid JuliaSim license. It is free to use for non-commercial academic teaching and research purposes. For commercial users, license fees apply. Please refer to the [End User License Agreement](https://juliahub.com/company/eula/?_gl=1*120lqg6*_ga*MTAxODQ4OTE3Mi4xNjk0MDA4MDM5*_ga_8FC7JQQLXX*MTY5NDAwODAzOC4xLjEuMTY5NDAwODgxMC4wLjAuMA..) for details. Please contact [sales@juliahub.com](https://juliahub.com/products/pricing/) for purchasing information.

0 commit comments

Comments
 (0)