Skip to content

Commit 9684652

Browse files
committed
fix: copy custom templates to Jekyll build directory
The competitive-verifier docs action generates markdown to _jekyll but doesn't automatically copy custom templates. Jekyll needs _includes and _layouts to be in the source directory to use them. This explicitly copies our custom templates from .verify-helper/markdown/ to _jekyll/ so Jekyll can find and use our customized document_body.html with minified code sections.
1 parent 3c239e5 commit 9684652

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/verify.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,15 @@ jobs:
176176
verify-result: ${{github.workspace}}/merged-result.json
177177
destination: _jekyll
178178
write-summary: true
179+
- name: Copy custom templates to Jekyll
180+
shell: bash
181+
run: |
182+
if [ -d ".verify-helper/markdown/_includes" ]; then
183+
cp -r .verify-helper/markdown/_includes _jekyll/
184+
fi
185+
if [ -d ".verify-helper/markdown/_layouts" ]; then
186+
cp -r .verify-helper/markdown/_layouts _jekyll/
187+
fi
179188
- name: Inject minified code into documentation
180189
shell: bash
181190
run: python3 .verify-helper/scripts/inject_minified_docs.py

0 commit comments

Comments
 (0)