Skip to content

Commit 178ab3c

Browse files
authored
Add broken links check in docs (#333)
1 parent 087facf commit 178ab3c

File tree

4 files changed

+39
-7
lines changed

4 files changed

+39
-7
lines changed

.github/workflows/build-docs.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright (c) 2025, NVIDIA CORPORATION.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Build docs
16+
17+
on:
18+
pull_request:
19+
types: [opened, synchronize, reopened, labeled, unlabeled]
20+
workflow_call:
21+
22+
jobs:
23+
build-docs:
24+
uses: NVIDIA-NeMo/FW-CI-templates/.github/workflows/[email protected]
25+
with:
26+
docs-directory: docs/source

docs/source/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,9 @@
103103
],
104104
}
105105
html_extra_path = ["project.json", "versions1.json"]
106+
107+
# Github links are now getting rate limited from the Github Actions
108+
linkcheck_ignore = [
109+
".*github\\.com.*",
110+
".*githubusercontent\\.com.*",
111+
]

docs/source/guides/management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,4 @@ nemorun experiment cancel experiment_with_scripts_1720556256 0
135135

136136
This information is specific to each experiment on how to manage it.
137137

138-
See [this notebook](../../../examples/hello-world/hello_experiments.ipynb) for more details and a playable experience.
138+
See [this notebook](https://github.com/NVIDIA-NeMo/Run/blob/main/examples/hello-world/hello_experiments.ipynb) for more details and a playable experience.

docs/source/index.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ NeMo-Run Documentation
88

99
NeMo-Run is a powerful tool designed to streamline the configuration, execution and management of Machine Learning experiments across various computing environments. NeMo Run has three core responsibilities:
1010

11-
1. `Configuration <./guides/configuration.html>`_
12-
2. `Execution <./guides/execution.html>`_
13-
3. `Management <./guides/management.html>`_
11+
1. :doc:`Configuration <guides/configuration>`
12+
2. :doc:`Execution <guides/execution>`
13+
3. :doc:`Management <guides/management>`
1414

1515
Please click into each link to learn more.
1616
This is also the typical order Nemo Run users will follow to setup and launch experiments.
@@ -61,6 +61,6 @@ The ``hello_world`` tutorial series provides a comprehensive introduction to NeM
6161

6262
You can find the tutorial series below:
6363

64-
1. `Part 1: Hello World <../../../examples/hello-world/hello_world.ipynb>`_
65-
2. `Part 2: Hello Experiments <../../../examples/hello-world/hello_experiments.ipynb>`_
66-
3. `Part 3: Hello Scripts <../../../examples/hello-world/hello_scripts.py>`_
64+
1. `Part 1: Hello World <https://github.com/NVIDIA-NeMo/Run/blob/main/examples/hello-world/hello_world.ipynb>`_
65+
2. `Part 2: Hello Experiments <https://github.com/NVIDIA-NeMo/Run/blob/main/examples/hello-world/hello_experiments.ipynb>`_
66+
3. `Part 3: Hello Scripts <https://github.com/NVIDIA-NeMo/Run/blob/main/examples/hello-world/hello_scripts.py>`_

0 commit comments

Comments
 (0)