feat(build): enable build-stats and build-content by default for md2md#1976
Merged
Conversation
For --output-format=md, both --build-stats and --build-content now default to true so md2md CI pipelines get yfm-build-stats.json and yfm-build-content.json without an explicit opt-in. For html builds the flags stay off by default. Users can opt out via --no-build-stats / --no-build-content (or buildStats: false / buildContent: false in yfm config), and the explicit values continue to win over the per-format default.
These artifacts default to on for md2md builds, so every md2md fixture output would otherwise carry yfm-build-stats.json and yfm-build-content.json in its filelist snapshot. Treat them like the existing _bundle/ and _search/ system paths.
|
goldserg
approved these changes
Jun 3, 2026
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.



Summary
For `--output-format=md` builds, both `--build-stats` and `--build-content` now default to `true` so md2md CI pipelines emit `yfm-build-stats.json` and `yfm-build-content.json` without an explicit opt-in. For `html` builds the flags stay off by default — local dev doesn't pay for an extra fs walk by default, and the content map's main consumers (search reindex, change notifications) read from the md2md output anyway.
Per-feature
Confighooks resolve the default at config-resolution time usingconfig.outputFormat, so explicit--no-build-stats/--no-build-contentand yfm-configbuildStats: false/buildContent: falsecontinue to win over the per-format default.The flag descriptions in
yfm --helpare updated accordingly.A docs PR is opened separately.