Skip to content

Commit

Permalink
Add hideable sidebar and broken anchor checker to documentation (bage…
Browse files Browse the repository at this point in the history
…tter#75)

* throw exception on broken links during CI

* enable hideable sidebar
  • Loading branch information
FroggieFrog authored Feb 15, 2024
1 parent 2002cec commit 3b980e8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ const config: Config = {
trailingSlash: false,

onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
onBrokenMarkdownLinks: 'throw',
onBrokenAnchors: 'throw',

// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
Expand Down Expand Up @@ -51,6 +52,11 @@ const config: Config = {
],

themeConfig: {
docs: {
sidebar: {
hideable: true,
}
},
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
Expand Down

0 comments on commit 3b980e8

Please sign in to comment.