mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-04 12:47:14 +02:00
wip
This commit is contained in:
parent
6b83e2d153
commit
c3f32ab781
3 changed files with 5 additions and 5 deletions
|
@ -29,8 +29,8 @@ export function validateFrontMatterTags(
|
||||||
): void {
|
): void {
|
||||||
const result = tagListSchema.validate(frontMatterTags);
|
const result = tagListSchema.validate(frontMatterTags);
|
||||||
if (result.error) {
|
if (result.error) {
|
||||||
throw new Error(
|
throw new Error(`Front matter contains invalid tags`, {
|
||||||
`Front matter contains invalid tags: ${result.error.message}`,
|
cause: result.error,
|
||||||
);
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -131,7 +131,7 @@ export default function pluginContentShowcase(
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Processing of page source file path=${relativeSource} failed.`,
|
`Processing of page source file path=${relativeSource} failed.`,
|
||||||
{cause: err as Error},
|
{cause: err},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -239,7 +239,7 @@ export default async function createConfigAsync() {
|
||||||
],
|
],
|
||||||
themes: ['live-codeblock', ...dogfoodingThemeInstances],
|
themes: ['live-codeblock', ...dogfoodingThemeInstances],
|
||||||
plugins: [
|
plugins: [
|
||||||
'content-showcase',
|
['content-showcase', {}],
|
||||||
[
|
[
|
||||||
'./src/plugins/changelog/index.js',
|
'./src/plugins/changelog/index.js',
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue