mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-30 15:00:09 +02:00
feat(blog): author header social icons (#10222)
Co-authored-by: OzakIOne <OzakIOne@users.noreply.github.com> Co-authored-by: sebastien <lorber.sebastien@gmail.com> Co-authored-by: slorber <slorber@users.noreply.github.com>
This commit is contained in:
parent
8b877d27d4
commit
a6de0f2725
35 changed files with 1005 additions and 31 deletions
|
@ -63,6 +63,7 @@ export async function getDataFileData<T>(
|
|||
try {
|
||||
const contentString = await fs.readFile(filePath, {encoding: 'utf8'});
|
||||
const unsafeContent = Yaml.load(contentString);
|
||||
// TODO we shouldn't validate here: it makes validation harder to test
|
||||
return validate(unsafeContent);
|
||||
} catch (err) {
|
||||
logger.error`The ${params.fileType} file at path=${filePath} looks invalid.`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue