Skip to content

Commit 51e8c45

Browse files
committed
[CI] Added check for raw MkDocs variables in the generated HTML
1 parent c636be4 commit 51e8c45

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ jobs:
4949
run: |
5050
mkdocs build --strict
5151
52+
- name: Verify that there are no variables in generated HTML
53+
run: |
54+
# Check for raw MkDocs variables in the generated HTML
55+
if grep -Erl "\[\[=.*=\]\]" site > /dev/null; then
56+
echo "Raw variables detected in the following files:"
57+
grep -Erl "\[\[=.*=\]\]" site
58+
exit 1
59+
fi
60+
5261
vale-check:
5362
runs-on: ubuntu-latest
5463
if: github.event_name == 'pull_request'

0 commit comments

Comments
 (0)