refactor(content-docs): make readVersionsMetadata async (#6277)

* refactor(content-docs): make readVersionsMetadata async

* fix tests
This commit is contained in:
Joshua Chen 2022-01-06 21:46:08 +08:00 committed by GitHub
parent 1d957d97e8
commit edab7e07ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 87 additions and 83 deletions

View file

@ -64,7 +64,7 @@ export default async function pluginContentDocs(
): Promise<Plugin<LoadedContent>> {
const {siteDir, generatedFilesDir, baseUrl, siteConfig} = context;
const versionsMetadata = readVersionsMetadata({context, options});
const versionsMetadata = await readVersionsMetadata({context, options});
const pluginId = options.id ?? DEFAULT_PLUGIN_ID;