File tree Expand file tree Collapse file tree 4 files changed +348
-24
lines changed Expand file tree Collapse file tree 4 files changed +348
-24
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"problemMatcher" : [
3
3
{
4
- "owner" : " sphinx" ,
4
+ "owner" : " sphinx-build " ,
5
5
"pattern" : [
6
6
{
7
- "regexp" : " ^([^:]+):(\\ d+): (WARNING: )?(.+)$" ,
7
+ "regexp" : " ^([^:]+):\\ s(.+)$" ,
8
+ "file" : 1 ,
9
+ "message" : 2
10
+ },
11
+ {
12
+ "regexp" : " ^([^:]+):(\\ d+):\\ s(.+)$" ,
13
+ "file" : 1 ,
14
+ "line" : 2 ,
15
+ "message" : 3
16
+ }
17
+ ]
18
+ },
19
+ {
20
+ "owner" : " sphinx-lint" ,
21
+ "pattern" : [
22
+ {
23
+ "regexp" : " ^([^:]+):(\\ d+):\\ s+(.*)\\ s\\ (([a-z-]+)\\ )$" ,
8
24
"file" : 1 ,
9
25
"line" : 2 ,
10
- "message" : 4
26
+ "message" : 3 ,
27
+ "code" : 4
11
28
}
12
29
]
13
30
}
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ jobs:
130
130
run : echo "::add-matcher::.github/sphinx-problem-matcher.json"
131
131
132
132
- name : Build docs
133
- run : |-
134
- poe docs |& tee /tmp/output
135
- # fail the job if there are issues
136
- grep -q " WARNING:" /tmp/output && exit 1 || exit 0
133
+ run : poe docs -e SPHINXOPTS=--fail-on-warning
134
+
135
+ - name : Lint docs
136
+ run : poetry run sphinx-lint --enable all $(git ls-files docs)
You can’t perform that action at this time.
0 commit comments