File tree Expand file tree Collapse file tree 3 files changed +47
-2
lines changed
Expand file tree Collapse file tree 3 files changed +47
-2
lines changed Original file line number Diff line number Diff line change 2121 with :
2222 repo-token : ${{ secrets.GITHUB_TOKEN }}
2323
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+ uses : arduino/setup-protoc@v1.1.0
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+
2460 - name : Verify links
2561 run : task docs:check-links
Original file line number Diff line number Diff line change 5656
5757 docs:check-links :
5858 desc : Verifies there are no dead links in documentation
59- dir : docs
6059 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'
6261
6362 docs:format :
6463 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