Skip to content

Commit 9c20c06

Browse files
committed
fix(pages): stop Jekyll dropping _shared.lua from the published site
Irish transcription is broken in production with a 404 on wiktionary_pron/lua_modules/ga-passes/_shared.lua. The Pages build runs actions/jekyll-build-pages (see .github/workflows/jekyll-gh-pages.yml), and Jekyll excludes any path whose basename begins with an underscore. The file is committed and correct, but it never reaches the built site. Confirmed against production: in the same directory and commit, 01_polarity.lua returns 200 while _shared.lua returns 404 — the only difference is the leading underscore. This breaks Irish completely: all 17 passes plus the engine require the module, so the first fetch fails and nothing transcribes. Adding _config.yml with an explicit `include` puts the file back in the build output. Note that a .nojekyll file would NOT help here: that only bypasses the legacy Pages pipeline, not an explicit jekyll-build-pages run. Chose this over renaming the file to shared.lua, which would have touched 19 call sites and broken the byte-identical invariant with the source repo (wiktionary_ipa_phoneme_lexicons/irish/passes/), where the module is _shared.lua and the sync is a mechanical passes. -> ga-passes. rewrite. _shared.lua is currently the only underscore-prefixed tracked file in the repo.
1 parent 7f23a24 commit 9c20c06

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

_config.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Jekyll configuration for GitHub Pages.
2+
#
3+
# This site is a plain static site — nothing here uses Jekyll's templating. The
4+
# only reason this file exists is that the Pages build (see
5+
# .github/workflows/jekyll-gh-pages.yml, which runs actions/jekyll-build-pages)
6+
# excludes any path whose basename starts with an underscore. That silently
7+
# dropped wiktionary_pron/lua_modules/ga-passes/_shared.lua from the published
8+
# site, giving a 404 and breaking Irish transcription entirely — every one of
9+
# the 17 Irish passes requires that module.
10+
#
11+
# `include` re-adds specific underscore-prefixed paths to the build output.
12+
include:
13+
- wiktionary_pron/lua_modules/ga-passes/_shared.lua
14+
15+
# Deliberately no `exclude:` list — Jekyll's defaults already skip node_modules
16+
# and .github, and overriding it here risks dropping something the site serves.

0 commit comments

Comments
 (0)