mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-11 15:22:29 +02:00
chore(v2): upgrade devDependencies (#2538)
* chore(v2): upgrade devDependencies * chore(v2): upgrade devDependencies * chore: prettier
This commit is contained in:
parent
ea8c916528
commit
b07507c9cc
148 changed files with 2385 additions and 1975 deletions
|
@ -24,7 +24,7 @@ const sourceToPermalink: SourceToPermalink = {
|
|||
'/docs/1.0.0/subdir/doc1',
|
||||
};
|
||||
|
||||
const transform = filepath => {
|
||||
const transform = (filepath) => {
|
||||
const content = fs.readFileSync(filepath, 'utf-8');
|
||||
const transformedContent = linkify(
|
||||
content,
|
||||
|
|
|
@ -9,7 +9,7 @@ import {getOptions} from 'loader-utils';
|
|||
import {loader} from 'webpack';
|
||||
import linkify from './linkify';
|
||||
|
||||
export = function(fileString: string) {
|
||||
export = function (fileString: string) {
|
||||
const callback = this.async();
|
||||
const {docsDir, siteDir, versionedDir, sourceToPermalink} = getOptions(this);
|
||||
return (
|
||||
|
|
|
@ -10,7 +10,7 @@ import {resolve} from 'url';
|
|||
import {getSubFolder} from '@docusaurus/utils';
|
||||
import {SourceToPermalink} from '../types';
|
||||
|
||||
export default function(
|
||||
export default function (
|
||||
fileString: string,
|
||||
filePath: string,
|
||||
docsDir: string,
|
||||
|
@ -36,7 +36,7 @@ export default function(
|
|||
// Replace internal markdown linking (except in fenced blocks).
|
||||
if (sourceDir) {
|
||||
let fencedBlock = false;
|
||||
const lines = content.split('\n').map(line => {
|
||||
const lines = content.split('\n').map((line) => {
|
||||
if (line.trim().startsWith('```')) {
|
||||
fencedBlock = !fencedBlock;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue