-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(website): migrate sidebars.js -> sidebars.ts
- Loading branch information
Showing
2 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
docusaurus/website/sidebars.js → docusaurus/website/sidebars.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
import type { SidebarsConfig } from '@docusaurus/plugin-content-docs'; | ||
|
||
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...) | ||
|
||
/** | ||
* Creating a sidebar enables you to: | ||
- create an ordered group of docs | ||
- render a sidebar for each doc of that group | ||
- provide next/previous navigation | ||
The sidebars can be generated from the filesystem, or explicitly defined here. | ||
Create as many sidebars as you want. | ||
*/ | ||
|
||
// @ts-check | ||
|
||
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */ | ||
const sidebars = { | ||
const sidebars: SidebarsConfig = { | ||
// By default, Docusaurus generates a sidebar from the docs folder structure | ||
// tutorialSidebar: [{ type: 'autogenerated', dirName: '.' }], | ||
|
||
docs: [{type: 'autogenerated', dirName: '.'}], | ||
docs: [{ type: 'autogenerated', dirName: '.' }], | ||
}; | ||
|
||
module.exports = sidebars; | ||
export default sidebars; |