Skip to content

Commit

Permalink
ci: restrict build docs on PR (#18923)
Browse files Browse the repository at this point in the history
* ci: restrict build docs on PR

* linkcheck_timeout
  • Loading branch information
Borda authored Nov 2, 2023
1 parent 5f6669f commit 1e68c50
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ on:
- "docs/**"
- "_notebooks"
- "requirements/**"
- "src/**"
- "src/lightning/app/**"
- "src/lightning_app/*"
- "src/lightning/fabric/**"
- "src/lightning_fabric/*"
- "src/lightning/pytorch/**"
- "src/pytorch_lightning/*"
- "setup.py"
- "pyproject.toml" # includes metadata used in the package creation
- "!*.md"
Expand Down
3 changes: 3 additions & 0 deletions docs/source-app/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,5 +444,8 @@ def find_source():
# skip false positive linkcheck errors from anchors
linkcheck_anchors = False

# A timeout value, in seconds, for the linkcheck builder.
linkcheck_timeout = 10

# ignore all links in any CHANGELOG file
linkcheck_exclude_documents = [r"^(.*\/)*CHANGELOG.*$"]
3 changes: 3 additions & 0 deletions docs/source-fabric/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,5 +408,8 @@ def find_source():
# skip false positive linkcheck errors from anchors
linkcheck_anchors = False

# A timeout value, in seconds, for the linkcheck builder.
linkcheck_timeout = 10

# ignore all links in any CHANGELOG file
linkcheck_exclude_documents = [r"^(.*\/)*CHANGELOG.*$"]
3 changes: 3 additions & 0 deletions docs/source-pytorch/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,9 @@ def package_list_from_file(file):
# skip false positive linkcheck errors from anchors
linkcheck_anchors = False

# A timeout value, in seconds, for the linkcheck builder.
linkcheck_timeout = 10

# ignore all links in any CHANGELOG file
linkcheck_exclude_documents = [r"^(.*\/)*CHANGELOG.*$"]

Expand Down

0 comments on commit 1e68c50

Please sign in to comment.