Skip to content

Commit b64b33c

Browse files
Merge pull request #5270 from wso2/doc_improvements
2 parents a67cc5d + 268b11b commit b64b33c

File tree

29 files changed

+364
-14
lines changed

29 files changed

+364
-14
lines changed

.github/workflows/pr-builder.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: PR Builder - Asgardeo Docs
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'en/asgardeo/**'
7+
- 'en/includes/**'
8+
9+
# Avoid running multiple builds for the same PR.
10+
concurrency:
11+
group: pr-builder-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
broken-link-checker:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Check out code
19+
uses: actions/checkout@v4
20+
with:
21+
token: ${{ secrets.IAM_DOCS_GITHUB_BOT_TOKEN }}
22+
fetch-depth: 0
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: '3.12'
28+
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install -r en/asgardeo/requirements.txt
33+
34+
- name: Start MkDocs server and run broken link checker
35+
run: |
36+
cd en/asgardeo
37+
nohup mkdocs serve > mkdocs.log 2>&1 &
38+
# Wait for server to start
39+
while ! nc -z localhost 8000; do
40+
sleep 1
41+
done
42+
pip3 install linkchecker
43+
linkchecker -F html http://127.0.0.1:8000 --threads=100 --no-warnings
93.7 KB
Loading
210 KB
Loading
83.1 KB
Loading
227 KB
Loading
108 KB
Loading
383 KB
Loading
132 KB
Loading
2.09 MB
Loading
1.71 MB
Loading

0 commit comments

Comments
 (0)