Feat: site build enhancements#9247
Open
espy wants to merge 17 commits intoapache:masterfrom
Open
Conversation
…line markdown filter
…above code blocks
…ove 11ty config file to root
No longer maxes out CPUs and no more orphaned node processes
… any longer, plus some cleanup in the config file
No longer swallows logs from eleventy and leaves child processes hanging on crash. Also rebuilds after 11ty crashing, no need to restart process anymore.
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.
This PR adds various improvements to the site, mainly concerning the build process, and removes, simplifies and hardens a bunch of build and dev server related stuff. These are in preparation for #9246, so that all gets easier to do.
Overview
eleventy-plugin-syntaxhighlightinstead of custom highlighting code, adaptscode.jsto work with this new output.layoutsand enforces full filenames with extensions when using includes (faster and less error-prone).build-site.jsand the 11ty config that don't seem to be needed any longer.execainstead ofexecto run CLI scripts inbuild-site, this now correctly displays logs from 11ty, handles cleanup of orphaned child processes properly, and resumes work after an 11ty crash and subsequent rebuild without having to restart the process manually.stickyfillpolyfill, asposition: stickyis widely available.Testing recommendations
Build the site locally and compare it to
pouchdb.com:Checklist