Skip to content

Commit 6b87dbc

Browse files
Bordalantiga
authored andcommitted
ci: restrict build docs on PR (#18923)
* ci: restrict build docs on PR * linkcheck_timeout (cherry picked from commit 1e68c50)
1 parent 422979b commit 6b87dbc

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

.github/workflows/docs-build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ on:
1414
- "docs/**"
1515
- "_notebooks"
1616
- "requirements/**"
17-
- "src/**"
17+
- "src/lightning/app/**"
18+
- "src/lightning_app/*"
19+
- "src/lightning/fabric/**"
20+
- "src/lightning_fabric/*"
21+
- "src/lightning/pytorch/**"
22+
- "src/pytorch_lightning/*"
1823
- "setup.py"
1924
- "pyproject.toml" # includes metadata used in the package creation
2025
- "!*.md"

docs/source-app/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,5 +444,8 @@ def find_source():
444444
# skip false positive linkcheck errors from anchors
445445
linkcheck_anchors = False
446446

447+
# A timeout value, in seconds, for the linkcheck builder.
448+
linkcheck_timeout = 10
449+
447450
# ignore all links in any CHANGELOG file
448451
linkcheck_exclude_documents = [r"^(.*\/)*CHANGELOG.*$"]

docs/source-fabric/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,5 +407,8 @@ def find_source():
407407
# skip false positive linkcheck errors from anchors
408408
linkcheck_anchors = False
409409

410+
# A timeout value, in seconds, for the linkcheck builder.
411+
linkcheck_timeout = 10
412+
410413
# ignore all links in any CHANGELOG file
411414
linkcheck_exclude_documents = [r"^(.*\/)*CHANGELOG.*$"]

docs/source-pytorch/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,9 @@ def package_list_from_file(file):
597597
# skip false positive linkcheck errors from anchors
598598
linkcheck_anchors = False
599599

600+
# A timeout value, in seconds, for the linkcheck builder.
601+
linkcheck_timeout = 10
602+
600603
# ignore all links in any CHANGELOG file
601604
linkcheck_exclude_documents = [r"^(.*\/)*CHANGELOG.*$"]
602605

0 commit comments

Comments
 (0)