mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 08:49:51 +02:00
feat(v2): broken links detection (#3059)
* add broken links checker * polish * finalize broken links detection feature * note broken links is only for prod build * fix broken link on template * fix test snapshot * fix bad merge
This commit is contained in:
parent
f4434b2e42
commit
8ff28e3fe4
23 changed files with 421 additions and 30 deletions
4
packages/docusaurus-types/src/index.d.ts
vendored
4
packages/docusaurus-types/src/index.d.ts
vendored
|
@ -10,12 +10,15 @@ import {Command} from 'commander';
|
|||
import {ParsedUrlQueryInput} from 'querystring';
|
||||
import {MergeStrategy} from 'webpack-merge';
|
||||
|
||||
export type OnBrokenLinks = 'ignore' | 'log' | 'error' | 'throw';
|
||||
|
||||
export interface DocusaurusConfig {
|
||||
baseUrl: string;
|
||||
favicon: string;
|
||||
tagline?: string;
|
||||
title: string;
|
||||
url: string;
|
||||
onBrokenLinks: OnBrokenLinks;
|
||||
organizationName?: string;
|
||||
projectName?: string;
|
||||
githubHost?: string;
|
||||
|
@ -111,6 +114,7 @@ export interface InjectedHtmlTags {
|
|||
export type HtmlTags = string | HtmlTagObject | (string | HtmlTagObject)[];
|
||||
|
||||
export interface Props extends LoadContext, InjectedHtmlTags {
|
||||
routes: RouteConfig[];
|
||||
routesPaths: string[];
|
||||
plugins: Plugin<any, unknown>[];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue