mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-15 01:02:35 +02:00
chore: rename data -> metadata for consistency
This commit is contained in:
parent
760b9172b0
commit
e9f2fabde1
8 changed files with 38 additions and 37 deletions
|
@ -6,13 +6,13 @@ async function loadPages(pagesDir) {
|
|||
cwd: pagesDir
|
||||
});
|
||||
|
||||
const pagesData = await Promise.all(
|
||||
const pagesMetadata = await Promise.all(
|
||||
pagesFiles.map(async source => ({
|
||||
path: encodePath(fileToPath(source)),
|
||||
source
|
||||
}))
|
||||
);
|
||||
return pagesData;
|
||||
return pagesMetadata;
|
||||
}
|
||||
|
||||
module.exports = loadPages;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue