Fix Quartz build to preserve git history for accurate file dates #106
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/quartz-content-directory"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes the "isn't yet tracked by git, dates will be inaccurate" warnings by using Quartz's
-d docsflag instead of symlinking.Problem
The previous approach symlinked
content -> docs, but git doesn't follow symlinks. When Quartz asked git aboutcontent/index.md, git had no history for that path.Solution
Use
npx quartz build -d docsto tell Quartz to read fromdocs/directly. Now when Quartz asks git aboutdocs/index.md, git finds the actual file history.docs/for the build, then removedTesting
Tested locally - build produces no warnings.