Skip to content

Commit 8a7f5ac

Browse files
Merge pull request #165 from festim-dev/fix-links
removed fenicsx branch + url checker
2 parents 166d98f + 58c9670 commit 8a7f5ac

11 files changed

Lines changed: 51 additions & 12 deletions

File tree

.github/workflows/url_check.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: URL check
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
docbuild:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v6
12+
13+
- name: urls-checker
14+
uses: urlstechie/urlchecker-action@master
15+
with:
16+
# A subfolder or path to navigate to in the present or cloned repository
17+
subfolder: book
18+
19+
# A comma-separated list of file types to cover in the URL checks
20+
file_types: .md,.py,.rst,.ipynb
21+
22+
# Choose whether to include file with no URLs in the prints.
23+
print_all: false
24+
25+
# The timeout seconds to provide to requests, defaults to 5 seconds
26+
timeout: 5
27+
28+
# How many times to retry a failed request (each is logged, defaults to 1)
29+
retry_count: 3
30+
31+
# A comma separated links to exclude during URL checks
32+
exclude_urls:
33+
34+
# A comma separated patterns to exclude during URL checks
35+
exclude_patterns: .css
36+
37+
# choose if the force pass or not
38+
force_pass : false

book/_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ author: The FESTIM community
88
repository:
99
url: https://github.com/festim-dev/FESTIM-workshop # Online location of your book
1010
path_to_book: book # Optional path to your book, relative to the repository root
11-
branch: festim2 # Which branch of the repository should be used when creating links (optional)
11+
branch: main # Which branch of the repository should be used when creating links (optional)
1212

1313
logo: images/logo_light.png
1414

@@ -64,7 +64,7 @@ sphinx:
6464
pyvista: ["https://docs.pyvista.org/", null]
6565
packaging: ["https://packaging.pypa.io/en/stable/", null]
6666
matplotlib: ["https://matplotlib.org/stable/", null]
67-
festim: ["https://festim.readthedocs.io/en/fenicsx/", null]
67+
festim: ["https://festim.readthedocs.io/en/stable/", null]
6868
html_favicon: "images/festim logo symbol.png"
6969

7070
extra_extensions:

book/content/boundary_conditions/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ We see that a huge spike in concentration in the first few nanometers of tungest
145145

146146
### Approximating plasma implantation using fixed concentration boundary conditions
147147

148-
If recombination is fast enough, the spike shown above can be approximated as a fixed concentration boundary condition that mainly drives diffusion across the material. Learn more about the plasma implantation approximation approach _[here](https://festim.readthedocs.io/en/fenicsx/theory.html#plasma-implantation-approximation)_.
148+
If recombination is fast enough, the spike shown above can be approximated as a fixed concentration boundary condition that mainly drives diffusion across the material. Learn more about the plasma implantation approximation approach _[here](https://festim.readthedocs.io/en/latest/theory.html#plasma-implantation-approximation)_.
149149

150150
To see how we might approximate this, let's define a maximum concentration to set on the left boundary, representing the spike from the implantation:
151151

book/content/boundary_conditions/h_transport_basic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ kernelspec:
1414

1515
# Hydrogen transport: basic
1616

17-
This section discusses how to implement basic boundary conditions (BCs) for hydrogen transport problems. Boundary conditions are essential to FESTIM simulations, as they describe the mathematical problem at the boundaries of the simulated domain. Read more about BCs _[here](https://festim.readthedocs.io/en/fenicsx/userguide/boundary_conditions.html)_.
17+
This section discusses how to implement basic boundary conditions (BCs) for hydrogen transport problems. Boundary conditions are essential to FESTIM simulations, as they describe the mathematical problem at the boundaries of the simulated domain. Read more about BCs _[here](https://festim.readthedocs.io/en/latest/userguide/boundary_conditions.html)_.
1818

1919
Objectives:
2020
* Implement fixed concentration boundary conditions

book/content/boundary_conditions/heat_transfer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ my_flux_bc = HeatFluxBC(subdomain=boundary, value=BC)
6060
```
6161

6262
```{note}
63-
Read more about heat transfer settings __[here](https://festim-workshop.readthedocs.io/en/festim2/content/temperatures/temperatures_advanced)__.
63+
Read more about heat transfer settings __[here](temperature-advanced)__.
6464
```

book/content/initial_conditions/temperature.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Objectives:
2424

2525
## Defining temperature initial conditions ##
2626

27-
Similar to the __[concentration](https://festim-workshop.readthedocs.io/en/festim2/content/initial_conditions/concentration.html)__, we can define temperature initial conditions on volume subdomains using `InitialTemperature`:
27+
Similar to the __[concentration](https://festim-workshop.readthedocs.io/en/latest/content/initial_conditions/concentration.html)__, we can define temperature initial conditions on volume subdomains using `InitialTemperature`:
2828

2929
```{code-cell} ipython3
3030
import festim as F
@@ -36,7 +36,7 @@ IC = F.InitialTemperature(value=400, volume=vol)
3636
```
3737

3838
```{note}
39-
Since initial conditions are only used in transient simulations, `thermal_conductivity`, `heat_capacity`, and `density` must be defined for the material. Learn more about defining thermal properties __[here](https://festim-workshop.readthedocs.io/en/festim2/content/material/material_basics.html#defining-thermal-properties)__.
39+
Since initial conditions are only used in transient simulations, `thermal_conductivity`, `heat_capacity`, and `density` must be defined for the material. Learn more about defining thermal properties __[here](https://festim-workshop.readthedocs.io/en/latest/content/material/material_basics.html#defining-thermal-properties)__.
4040
```
4141

4242
+++

book/content/material/material_advanced.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ kernelspec:
1212
name: python3
1313
---
1414

15+
(temperature-advanced)=
1516
# Advanced functionality #
1617

1718
+++

book/content/material/material_basics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ kernelspec:
1414

1515
# Basic functionality
1616

17-
Materials are key components of hydrogen transport simulations. They hold the properties like diffusivity, solubility and even thermal properties like thermal conductivity or heat capacity. Read more about the `Materials` class and syntax at __[Materials](https://festim.readthedocs.io/en/fenicsx/userguide/subdomains.html)__.
17+
Materials are key components of hydrogen transport simulations. They hold the properties like diffusivity, solubility and even thermal properties like thermal conductivity or heat capacity. Read more about the `Materials` class and syntax at __[Materials](https://festim.readthedocs.io/en/latest/userguide/subdomains.html)__.
1818

1919

2020
Objectives:
@@ -70,7 +70,7 @@ mat.density = lambda T: 7*T + 5
7070

7171
## Defining materials on different subdomains ##
7272

73-
Volume subdomains are used to assign different materials or define regions with specific physical properties. Each volume subdomain must be associated with a `festim.Material` object. Read more about subdomains __[here](https://festim-workshop.readthedocs.io/en/festim2/content/meshes/mesh_fenics.html#defining-subdomains)__.
73+
Volume subdomains are used to assign different materials or define regions with specific physical properties. Each volume subdomain must be associated with a `festim.Material` object. Read more about subdomains __[here](https://festim-workshop.readthedocs.io/en/latest/content/meshes/mesh_fenics.html#defining-subdomains)__.
7474

7575
Consider the following volume with two subdomains separated halfway through the mesh:
7676

book/content/meshes/mesh_fenics.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"source": [
88
"# DOLFINx meshes\n",
99
"\n",
10-
"DOLFINx provides a range of simple built-in meshes that are useful for quick testing and solving basic problems. You can find more information about the available mesh types, as well as tools for creating, refining, and marking meshes, in the [DOLFINx mesh documentation](https://docs.fenicsproject.org/dolfinx/v0.9.0/python/generated/dolfinx.mesh.html).\n",
10+
"DOLFINx provides a range of simple built-in meshes that are useful for quick testing and solving basic problems. You can find more information about the available mesh types, as well as tools for creating, refining, and marking meshes, in the [DOLFINx mesh documentation](https://docs.fenicsproject.org/dolfinx/v0.10.0/python/generated/dolfinx.mesh.html).\n",
1111
"\n",
1212
"In this tutorial, we will cover the following:\n",
1313
"\n",

book/content/post_process/pyvista.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Users can change the colormap by adjusting the `cmap` argument.
122122

123123
Users can also use PyVista to visualize the fields in discontinuous problems.
124124

125-
Let us consider the same __[multi-material problem](https://festim-workshop.readthedocs.io/en/festim2/content/material/material_basics.html#multi-material-example)__ in the Materials chapter, where we use `HydrogenTransportProblemDiscontinuous` to solve a multi-material problem.
125+
Let us consider the same __[multi-material problem](https://festim-workshop.readthedocs.io/en/latest/content/material/material_basics.html#multi-material-example)__ in the Materials chapter, where we use `HydrogenTransportProblemDiscontinuous` to solve a multi-material problem.
126126

127127
```{code-cell} ipython3
128128
:tags: [hide-input]

0 commit comments

Comments
 (0)