airajena commented on code in PR #53:
URL: https://github.com/apache/fineract-site/pull/53#discussion_r2844680494


##########
.github/workflows/site-pr-check.yml:
##########
@@ -0,0 +1,30 @@
+name: Site PR Check
+
+on:
+  pull_request:
+    branches:
+      - asf-site
+  workflow_dispatch:
+
+jobs:
+  build-and-validate:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v4
+
+      - name: Build site with pinned Hugo container
+        run: bash ./scripts/site-build.sh --cleanDestinationDir
+
+      - name: Check internal links
+        run: python3 ./scripts/check_internal_links.py --site-root .build/site
+
+      - name: HTML lint
+        run: |
+          npm install -g [email protected]
+          htmlhint ".build/site/**/*.html" --config .htmlhintrc || true
+
+      - name: Accessibility check
+        run: |
+          npm install -g @axe-core/[email protected]
+          axe .build/site/index.html .build/site/security.html --exit || true

Review Comment:
   Agreed. I’ll add local check support and document it in README so 
contributors can run the same link/html/a11y checks before opening a PR.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to