File tree Expand file tree Collapse file tree 3 files changed +22
-16
lines changed
Expand file tree Collapse file tree 3 files changed +22
-16
lines changed Original file line number Diff line number Diff line change 3636 npm run build
3737
3838 - name : Check for broken file references
39- run : |
40- cd "${{ matrix.repo }}/build"
41- echo "Checking for broken files in $(pwd)"
42-
43- echo "Total files: $(ls -alh . | wc -l)"
44- echo "Total HTML files: $(find . -type f -name "*.html" | wc -l)"
45-
46- echo "Ripgrep"
47- if rg 'file=../../../modules' -g '*.html' | grep -q .; then
48- echo "Matches found. Exiting with code 0."
49- rg 'file=../../../modules' -g '*.html'
50- exit 1
51- else
52- echo "No matches found"
53- exit 0
54- fi
39+ run : make file-ref-check
5540
5641 prettier :
5742 name : prettier
Original file line number Diff line number Diff line change 4646fmt-check :
4747 npx prettier --check --log-level=debug " **/*.md"
4848
49+ .PHONY : build
50+ build :
51+ @echo " Building mission-control documentation..."
52+ @cd modules && make all
53+ @cd mission-control && npm ci && npm run build
54+
55+ .PHONY : file-ref-check
56+ file-ref-check : # # Check for broken file references in build output
57+ @echo " Checking for broken files in mission-control/build"
58+ @cd mission-control/build && \
59+ echo " Total files: $$ (ls -alh . | wc -l)" && \
60+ echo " Total HTML files: $$ (find . -type f -name " * .html" | wc -l)" && \
61+ if rg ' file=../../../modules' -g ' *.html' | grep -q . ; then \
62+ echo " ERROR: Found broken file references:" && \
63+ rg ' file=../../../modules' -g ' *.html' && \
64+ exit 1; \
65+ else \
66+ echo " No broken file references found" ; \
67+ fi
68+
4969.PHONY :
5070sync :
5171 git submodule update --init --recursive
Original file line number Diff line number Diff line change @@ -242,6 +242,7 @@ Junit
242242JUnit
243243keypair
244244keypairs
245+ kmsConnection
245246knowledgebase
246247knowledgebases
247248Kratos
You can’t perform that action at this time.
0 commit comments