File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 1
- name : Build Sphinx Documentation
1
+ name : Build Sphinx Documentation and check links
2
2
3
3
on :
4
+ schedule :
5
+ # Weekly, at 03:00 on Monday UTC time
6
+ - cron : " 0 3 * * 1"
4
7
pull_request :
5
8
paths :
6
9
- " .github/workflows/sphinx.yml"
43
46
44
47
- name : Build Documentation
45
48
run : make docs
49
+
50
+ - name : Check Documentation URLs
51
+ run : make linkcheck-docs
Original file line number Diff line number Diff line change @@ -138,10 +138,10 @@ install-dev-env: ## install libraries required to build images and run tests
138
138
139
139
140
140
docs : # # build HTML documentation
141
- sphinx-build -W docs/ docs/_build/
141
+ sphinx-build -W --keep-going --color docs/ docs/_build/
142
142
143
143
linkcheck-docs : # # check broken links
144
- sphinx-build -b linkcheck docs/ docs/_build/
144
+ sphinx-build -W --keep-going --color - b linkcheck docs/ docs/_build/
145
145
146
146
install-docs-env : # # install libraries required to build docs
147
147
@pip install -r requirements-docs.txt
Original file line number Diff line number Diff line change 88
88
89
89
# MyST configuration reference: https://myst-parser.readthedocs.io/en/latest/sphinx/reference.html
90
90
myst_heading_anchors = 3
91
+
92
+ linkcheck_ignore = [
93
+ r".*github\.com.*#" , # javascript based anchors
94
+ r"http://127\.0\.0\.1:49153/.*" , # example
95
+ r"https://mybinder\.org/v2/gh/.*" , # lots of 500 errors
96
+ ]
97
+
98
+ linkcheck_allowed_redirects = {
99
+ r"https://results\.pre-commit\.ci/latest/github/jupyter/docker-stacks/master" : r"https://results\.pre-commit\.ci/run/github/.*" , # Latest master CI build
100
+ r"https://github\.com/jupyter/docker-stacks/issues/new.*" : r"https://github\.com/login.*" , # Github wants user to be logon to use this features
101
+ r"https://github\.com/orgs/jupyter/teams/docker-image-maintainers/members" : r"https://github\.com/login.*" ,
102
+ }
You can’t perform that action at this time.
0 commit comments