Feat/create metadata impl#12166
Open
HelloItsJustin wants to merge 2 commits into
Open
Conversation
✅ [V2]Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
Pre-flight checklist
Closes #5691.
This PR adds creation metadata support for docs, mirroring the existing
last_updatemetadata flow. Docs can now expose when a page was originally created and who created it, using front matter values first and VCS metadata as a fallback.The new behavior is opt-in and disabled by default, so existing sites keep the same behavior unless they enable the new plugin options.
This PR adds:
showCreateTimeandshowCreateAuthordocs plugin options, both defaulting tofalselast_update_time,last_update_author,create_time, andcreate_authorcreatedAtandcreatedByfields in docs metadataTest Plan
Validated locally with:
Results:
Local validation notes:
pnpm lintcurrently fails because the existing root script callslint:SPELLING, while the script is namedlint:spelling.pnpm lint:cipasses eslint, stylelint, and cspell, then fails on existingsyncpack lintdependency policy issues unrelated to this PR.pnpm testfails locally in unchanged Windows-sensitive VCS/submodule tests, not in the docs metadata tests changed by this PRRelevant documentation page:
/docs/api/plugins/plugin-content-docsRelated issues/PRs
Closes #5691.