feat(core): add new plugin allContentLoaded lifecycle (#9931)

This commit is contained in:
Sébastien Lorber 2024-03-08 19:13:59 +01:00 committed by GitHub
parent d02b96f7f5
commit 8d115a9e0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 791 additions and 228 deletions

View file

@ -30,7 +30,7 @@ export default function pluginDebug({
return '../src/theme';
},
async contentLoaded({actions: {createData, addRoute}, allContent}) {
async allContentLoaded({actions: {createData, addRoute}, allContent}) {
const allContentPath = await createData(
// Note that this created data path must be in sync with
// metadataPath provided to mdx-loader.