mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-18 19:46:57 +02:00
chore(v2): fix code style (revert previous changes)
This commit is contained in:
parent
1480a7eb80
commit
1f00d15c74
143 changed files with 457 additions and 458 deletions
|
@ -69,7 +69,7 @@ export async function generateBlogFeed(
|
|||
copyright: feedOptions.copyright,
|
||||
});
|
||||
|
||||
blogPosts.forEach(post => {
|
||||
blogPosts.forEach((post) => {
|
||||
const {
|
||||
id,
|
||||
metadata: {title, permalink, date, description},
|
||||
|
@ -184,7 +184,7 @@ export function linkify(
|
|||
blogPosts: BlogPost[],
|
||||
) {
|
||||
let fencedBlock = false;
|
||||
const lines = fileContent.split('\n').map(line => {
|
||||
const lines = fileContent.split('\n').map((line) => {
|
||||
if (line.trim().startsWith('```')) {
|
||||
fencedBlock = !fencedBlock;
|
||||
}
|
||||
|
@ -203,7 +203,7 @@ export function linkify(
|
|||
)}`;
|
||||
let blogPostPermalink = null;
|
||||
|
||||
blogPosts.forEach(blogPost => {
|
||||
blogPosts.forEach((blogPost) => {
|
||||
if (blogPost.metadata.source === aliasedPostSource) {
|
||||
blogPostPermalink = blogPost.metadata.permalink;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue