File tree 3 files changed +47
-2
lines changed 3 files changed +47
-2
lines changed Original file line number Diff line number Diff line change 21
21
with :
22
22
repo-token : ${{ secrets.GITHUB_TOKEN }}
23
23
24
+ - name : Install Go
25
+ uses : actions/setup-go@v2
26
+ with :
27
+ go-version : " 1.14"
28
+
29
+ - name : Installs Go dependencies
30
+ shell : bash
31
+ run : go get -u github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc
32
+
33
+ - name : Install protoc compiler
34
+
35
+ with :
36
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
37
+
38
+ - name : Setup Python
39
+ uses : actions/setup-python@v1
40
+ with :
41
+ python-version : " 3.6"
42
+ architecture : " x64"
43
+
44
+ - name : Cache dependencies
45
+ uses : actions/cache@v1
46
+ with :
47
+ path : ~/.cache/pip
48
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
49
+ restore-keys : |
50
+ ${{ runner.os }}-pip-
51
+
52
+ - name : Install Python dependencies
53
+ run : |
54
+ python3 -m pip install --upgrade pip
55
+ python3 -m pip install -r ./requirements_docs.txt
56
+
57
+ - name : Build docs
58
+ run : task docs:build
59
+
24
60
- name : Verify links
25
61
run : task docs:check-links
Original file line number Diff line number Diff line change 56
56
57
57
docs:check-links :
58
58
desc : Verifies there are no dead links in documentation
59
- dir : docs
60
59
cmds :
61
- - npx -p markdown-link-check -c 'for file in **/* .md; do markdown-link-check -q "$file"; done'
60
+ - npx -p markdown-link-check -c 'for file in $(find -name "* .md") ; do markdown-link-check -c markdown-link-check-config.json -q "$file"; done'
62
61
63
62
docs:format :
64
63
desc : Automatically formats documentation
Original file line number Diff line number Diff line change
1
+ {
2
+ "ignorePatterns" : [
3
+ {
4
+ "pattern" : " https?://localhost:\\ d*/"
5
+ },
6
+ {
7
+ "pattern" : " https?://(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?):\\ d*"
8
+ }
9
+ ]
10
+ }
You can’t perform that action at this time.
0 commit comments