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:
Sébastien Lorber 2020-07-21 19:13:34 +02:00 committed by GitHub
parent f4434b2e42
commit 8ff28e3fe4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 421 additions and 30 deletions

View file

@ -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>[];
}