Skip to content

Commit 6a94c02

Browse files
lrcoutomerelcht
andauthored
Run MKDocs strict validation on new commit pushes. (#5173)
* Add linkcheck job to github CI Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Add permissions Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Run on all pushes Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Edit the correct file Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Install UV the same way we do on unit tests Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Fix MKdocs warnings Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Lint Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Add Lychee to github CI job Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Install lychee with cargo Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Add stricter validation to docs, fix broken anchors Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Remove lychee from CI Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Make anchor links more specific, run lincheck only on python 3.11 Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Update docs/build/slice_a_pipeline.md Co-authored-by: Merel Theisen <49397448+merelcht@users.noreply.github.com> Signed-off-by: L. R. Couto <57910428+lrcouto@users.noreply.github.com> * Update docs/tutorials/add_another_pipeline.md Co-authored-by: Merel Theisen <49397448+merelcht@users.noreply.github.com> Signed-off-by: L. R. Couto <57910428+lrcouto@users.noreply.github.com> --------- Signed-off-by: Laura Couto <laurarccouto@gmail.com> Signed-off-by: L. R. Couto <57910428+lrcouto@users.noreply.github.com> Co-authored-by: Merel Theisen <49397448+merelcht@users.noreply.github.com>
1 parent 5d8024d commit 6a94c02

File tree

14 files changed

+74
-15
lines changed

14 files changed

+74
-15
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Check links in MkDocs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
pull_request:
9+
branches:
10+
- main
11+
- develop
12+
13+
jobs:
14+
linkcheck:
15+
permissions:
16+
contents: read
17+
18+
runs-on: ubuntu-latest
19+
20+
strategy:
21+
matrix:
22+
python-version: [ "3.11" ]
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v5
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
33+
- name: Install the latest version of uv with Python ${{inputs.python-version}}
34+
uses: astral-sh/setup-uv@v6
35+
with:
36+
version: "latest"
37+
python-version: ${{ inputs.python-version }}
38+
activate-environment: true
39+
40+
- name: Install docs requirements
41+
run: |
42+
make install-docs-requirements
43+
44+
- name: Run MkDocs on strict mode.
45+
run: |
46+
mkdocs build --strict

docs/about/technical_steering_committee.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ We look for commitment markers who can do the following:
6262
| [Ivan Danov](https://github.com/idanov) | [Palantir](https://www.palantir.com/) |
6363
| [Jitendra Gundaniya](https://github.com/jitu5) | [QuantumBlack, AI by McKinsey](https://www.mckinsey.com/capabilities/quantumblack) |
6464
| [Joel Schwarzmann](https://github.com/datajoely) | [Aneira Health](https://www.aneira.health) |
65-
| [Juan Luis Cano](https://github.com/astrojuanlu) | [Canonical](www.canonical.com ) |
65+
| [Juan Luis Cano](https://github.com/astrojuanlu) | [Canonical](https://www.canonical.com ) |
6666
| [Laura Couto](https://github.com/lrcouto) | [QuantumBlack, AI by McKinsey](https://www.mckinsey.com/capabilities/quantumblack) |
6767
| [Marcin Zabłocki](https://github.com/marrrcin) | [Printify, Inc.](https://printify.com/) |
6868
| [Merel Theisen](https://github.com/merelcht) | [QuantumBlack, AI by McKinsey](https://www.mckinsey.com/capabilities/quantumblack) |

docs/about/telemetry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ more at https://docs.kedro.org/en/stable/configuration/telemetry.html
7676
```
7777

7878
You can hide this message by explicitly granting or denying consent. The
79-
[previous section](#how-do-i-withdraw-consent) explains how to deny consent by setting environment
79+
[previous section](#how-to-withdraw-consent) explains how to deny consent by setting environment
8080
variables or updating the `.telemetry` file. You can also grant consent by modifying or creating the
8181
`.telemetry` file manually. If the `.telemetry` file exists in the root folder of your Kedro
8282
project, set the `consent` variable to `true`. If the file does not exist, create it with the following content:

docs/build/run_a_pipeline.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ kedro run --pipeline=my_pipeline
189189
If you specify `kedro run` without the `--pipeline` option, it runs the `__default__` pipeline from the dictionary returned by `register_pipelines()`.
190190

191191

192-
Further information about `kedro run` can be found in the [Kedro CLI documentation](../getting-started/commands_reference.md#run-the-project).
192+
Further information about `kedro run` can be found in the [Kedro CLI documentation](../getting-started/commands_reference.md#kedro-run).
193193

194194
## Run pipelines with IO
195195

@@ -233,7 +233,7 @@ In a simple example, we define a `MemoryDataset` called `xs` to store our inputs
233233

234234
## Configure `kedro run` arguments
235235

236-
The [Kedro CLI documentation](../getting-started/commands_reference.md#run-the-project) lists the available CLI options for `kedro run`. You can alternatively supply a configuration file that contains the arguments to `kedro run`.
236+
The [Kedro CLI documentation](../getting-started/commands_reference.md#kedro-run) lists the available CLI options for `kedro run`. You can alternatively supply a configuration file that contains the arguments to `kedro run`.
237237

238238
Here is an example file named `config.yml`, but you can choose any name for the file:
239239

docs/build/slice_a_pipeline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Sometimes it is desirable to run a subset, or a 'slice' of a pipeline's nodes. T
77

88
![](../meta/images/slice_pipeline_kedro_viz.gif)
99

10-
2. **Programmatically with the Kedro CLI.** You can also use the [Kedro CLI to pass parameters to `kedro run`](../getting-started/commands_reference.md#run-the-project) command and slice a pipeline. In this page, we illustrate the programmatic options that Kedro provides.
10+
2. **Programmatically with the Kedro CLI.** You can also use the [Kedro CLI to pass parameters to `kedro run`](../getting-started/commands_reference.md#kedro-run) command and slice a pipeline. In this page, we illustrate the programmatic options that Kedro provides.
1111

1212
Let's look again at the example pipeline from the [pipeline introduction documentation](./pipeline_introduction.md#how-to-build-a-pipeline), which computes the variance of a set of numbers:
1313

docs/configure/configuration_basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ CONF_SOURCE = "new_conf"
121121
```
122122

123123
### How to change the configuration source folder at runtime
124-
Specify a source folder for the configuration files at runtime using the [`kedro run` CLI command](../getting-started/commands_reference.md#modifying-a-kedro-run) with the `--conf-source` flag as follows:
124+
Specify a source folder for the configuration files at runtime using the [`kedro run` CLI command](../getting-started/commands_reference.md#kedro-commands) with the `--conf-source` flag as follows:
125125

126126
```bash
127127
kedro run --conf-source=<path-to-new-conf-folder>

docs/deploy/single_machine.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ docker pull <DockerID>/<image-name>
3838
The procedure for using other container registries, like AWS ECR or GitLab Container Registry, will be almost identical to the steps described above. However, authentication will be different for each solution.
3939

4040
## Package-based
41-
If you prefer not to use containerisation, you can instead package your Kedro project using [`kedro package`](../getting-started/commands_reference.md#deploy-the-project).
41+
If you prefer not to use containerisation, you can instead package your Kedro project using [`kedro package`](../getting-started/commands_reference.md#kedro-package).
4242

4343
Run the following in your project’s root directory:
4444

docs/develop/automated_testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dev = [
3939
pip install ."[dev]"
4040
```
4141

42-
Alternatively, you can individually install test requirements as you would install other packages with `pip`, making sure you have installed your project locally and your [project's virtual environment is active](../getting-started/install.md#create-a-virtual-environment-for-your-kedro-project).
42+
Alternatively, you can individually install test requirements as you would install other packages with `pip`, making sure you have installed your project locally and your [project's virtual environment is active](../getting-started/install.md#how-to-manually-create-a-virtual-environment-for-your-kedro-project).
4343

4444
1. To install your project, navigate to your project root and run the following command:
4545

@@ -142,7 +142,7 @@ It can be useful to see how much of your project is covered by tests. For this,
142142

143143
### Install `pytest-cov`
144144

145-
Install `pytest` as you would install other packages with pip, making sure your [project's virtual environment is active](../getting-started/install.md#create-a-virtual-environment-for-your-kedro-project).
145+
Install `pytest` as you would install other packages with pip, making sure your [project's virtual environment is active](../getting-started/install.md#how-to-manually-create-a-virtual-environment-for-your-kedro-project).
146146

147147
```bash
148148
pip install pytest-cov

docs/getting-started/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ This is a growing set of technical FAQs. The [product FAQs on the Kedro website]
3838
* [How do I specify additional configuration environments](../configure/configuration_basics.md#how-to-specify-additional-configuration-environments)?
3939
* [How do I change the default overriding configuration environment](../configure/configuration_basics.md#how-to-change-the-default-overriding-environment)?
4040
* [How do I use only one configuration environment](../configure/configuration_basics.md#how-to-use-only-one-configuration-environment)?
41-
* [How do I use Kedro without the rich library](../configure/configuration_basics.md#how-to-use-kedro-without-the-rich-library)?
41+
* [How do I use Kedro logging without the Rich library](../develop/logging.md#how-to-use-logging-without-the-rich-library)
4242

4343
### Advanced topics
4444

docs/integrations-and-plugins/marimo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This guide explains how to set up Kedro programmatically from non-Jupyter enviro
44

55
## Overview
66

7-
Kedro Jupyter notebook users rely on the magic command `%load_ext kedro.ipython` to source their catalog, context, pipelines and session objects, see [Kedro and Notebooks](../integrations-and-plugins/kedro_and_notebooks.md) for more. This magic command automatically finds the location of the root Kedro project.
7+
Kedro Jupyter notebook users rely on the magic command `%load_ext kedro.ipython` to source their catalog, context, pipelines and session objects, see [Kedro and Notebooks](../integrations-and-plugins/notebooks_and_ipython/kedro_and_notebooks.md) for more. This magic command automatically finds the location of the root Kedro project.
88

99
Such magic commands are not available in modern notebook interfaces such as Marimo or in short Python scripts. Yet, using Kedro for sharing configuration, credentials, or the data catalog across a project is still desired when developing data science projects.
1010

0 commit comments

Comments
 (0)