Add .nojekyll to stop Jekyll from choking on vcpkg patch files - #136
Closed
liuzicheng1987 with Copilot wants to merge 2 commits into
Closed
Add .nojekyll to stop Jekyll from choking on vcpkg patch files#136liuzicheng1987 with Copilot wants to merge 2 commits into
liuzicheng1987 with Copilot wants to merge 2 commits into
Conversation
Co-authored-by: liuzicheng1987 <19538706+liuzicheng1987@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix GitHub Pages build failure due to invalid YAML front matter
Add .nojekyll to stop Jekyll from choking on vcpkg patch files
Sep 6, 2026
liuzicheng1987
marked this pull request as ready for review
September 7, 2026 00:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Pages deployment failed with
Invalid YAML front matter in vcpkg/ports/gsl/0001-configure.patch— Jekyll was parsing the patch file's leading---as front matter.Root cause
.github/workflows/docs.yaml, but nothing prevented Jekyll (e.g. a legacy branch-based Pages source) from crawling the full checkout, includingvcpkg/..nojekyllfile, which likely reintroduced this exposure.Changes
.nojekyllat the top level to disable Jekyll processing if the repo is ever served via a branch-based Pages source.docs/static/.nojekyll, which Hugo copies intodocs/public/(the actual deployed artifact), so the marker travels with the built site.include-hidden-files: trueon theactions/upload-pages-artifactstep indocs.yaml, since dotfiles are stripped from the artifact by default and would otherwise drop.nojekyllbefore deployment.