Skip to content

Commit

Permalink
removed config option & show warning by default
Browse files Browse the repository at this point in the history
  • Loading branch information
gianlucadonato committed Nov 23, 2018
1 parent 815f634 commit a6d6e8c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions docs/api-site-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,6 @@ An option to enable the docs showing the author who last updated the doc. Set to

An option to enable the docs showing last update time. Set to `true` to show a line at the bottom right corner of each doc page as `Last updated on <date>`.

#### `enableBrokenLinkWarning` [boolean]
An option to enable a warning message in console when an in internal link is not resolved. Default to `false`.

#### `facebookAppId` [string]

If you want Facebook Like/Share buttons in the footer and at the bottom of your blog posts, provide a [Facebook application id](https://www.facebook.com/help/audiencenetwork/804209223039296).
Expand Down
2 changes: 1 addition & 1 deletion v1/lib/server/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function mdToHtmlify(oldContent, mdToHtml, metadata) {
}
});

if (siteConfig.enableBrokenLinkWarning && mdBrokenLinks.length) {
if (mdBrokenLinks.length) {
console.log(
`[WARN] unresolved links in file '${metadata.source}' >`,
mdBrokenLinks,
Expand Down

0 comments on commit a6d6e8c

Please sign in to comment.