Add top-level index.html for dev only (not GH Pages / W3C site) #4076
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 Eleventy build and dev server populates subdirectories, but does not create a top-level index.html, which leads to a 404 when you follow the link output to the console by the dev server, or output in PR comments by Netlify. This has already caused confusion for a number of folks.
I initially avoided adding a top-level index page to avoid complications with regard to publishing to GitHub Pages and the W3C Site, but since it's come up a few times and been specifically requested I discussed it with Kevin yesterday and spent some time today working on solving it while keeping it clear of the deployment/publication cases.
Changes
index.html
.eleventyignore
to allow for top-level HTML files, while still ignoring top-level files that shouldn't be builtCustomLiquid.ts
to avoid processing pages outside oftechniques
orunderstanding
index.html