mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-23 03:29:11 +02:00
feat(core): add new plugin allContentLoaded lifecycle (#9931)
This commit is contained in:
parent
d02b96f7f5
commit
8d115a9e0d
7 changed files with 791 additions and 228 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue