docusaurus/website/sidebars.js

141 lines
3.6 KiB
JavaScript
Raw Normal View History

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
module.exports = {
docs: [
'introduction',
{
type: 'category',
label: 'Getting Started',
collapsed: false,
items: [
'installation',
'configuration',
'playground',
'typescript-support',
],
},
{
type: 'category',
label: 'Guides',
items: [
feat(v2): warn user when there are conflicting routes (#3083) * feat(v2): add warning for path override * feat(v2): check all routes recursively * docs(v2): add docs for conflicting routes * style(v2): improve comments in code * refactor(v2): remove unused lifecycle method from docs plugin * Revert "refactor(v2): remove unused lifecycle method from docs plugin" This reverts commit 8b2caaa0917f00b4706c6a135a7311db50991304. * feat(v2): add option for changing duplicate path behavior * feat(v2): decouple logging from logic and detect duplicate routes in one pass * test(v2): fix failing tests * test(v2): add tests for duplicateRoutes * test(v2): add test for handleDuplicateRoutes * style(v2): add else statement * docs(v2): modify documentation for duplicate routes * docs(v2): move doc into guides folder * fix(v2): fix broken links * docs(v2): move docs for docusaurus config into api folder * style(v2): add comments * refactor(v2): extract getFinalRoutes * refactor(v2): scope getFinalRoutes to docusaurus package * test(v2): remove obsolete snapshots * docs(v2): remove some docs * fix(v2): rerun github actions * docs(v2): change slug of docs in api folder * refactor(v2): extract out a reportMessage method * refactor(v2): extract getAllFinalRoutes * test(v2): replace snapshots with actual value * style(v2): remove unnecessary comment and change type * chore(v2): remove unused dependency * style(v2): remove unused code * Update packages/docusaurus/src/server/utils.ts * Update website/docs/guides/creating-pages.md Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-07-31 15:14:49 -04:00
'guides/creating-pages',
{
Docs: [
'guides/docs/introduction',
'guides/docs/create-doc',
'guides/docs/sidebar',
'guides/docs/versioning',
'guides/docs/markdown-features',
'guides/docs/multi-instance',
],
},
'blog',
{
type: 'category',
label: 'Markdown Features',
items: [
'guides/markdown-features/introduction',
'guides/markdown-features/react',
'guides/markdown-features/tabs',
'guides/markdown-features/code-blocks',
'guides/markdown-features/admonitions',
'guides/markdown-features/headings',
'guides/markdown-features/inline-toc',
'guides/markdown-features/assets',
'guides/markdown-features/plugins',
'guides/markdown-features/math-equations',
'guides/markdown-features/head-metadatas',
],
},
'styling-layout',
'static-assets',
'search',
'browser-support',
'deployment',
{
type: 'category',
label: 'Internationalization',
items: [
{
type: 'doc',
id: 'i18n/introduction',
label: 'Introduction',
},
{
type: 'doc',
id: 'i18n/tutorial',
label: 'Tutorial',
},
{
type: 'doc',
id: 'i18n/git',
label: 'Using Git',
},
{
type: 'doc',
id: 'i18n/crowdin',
label: 'Using Crowdin',
},
],
},
],
},
{
type: 'category',
label: 'Advanced Guides',
items: ['using-plugins', 'using-themes', 'presets'],
},
{
type: 'category',
label: 'Migrating from v1 to v2',
items: [
'migration/migration-overview',
'migration/migration-automated',
'migration/migration-manual',
'migration/migration-versioned-sites',
'migration/migration-translated-sites',
],
},
],
api: [
'cli',
'docusaurus-core',
'api/docusaurus.config.js',
'lifecycle-apis',
{
type: 'category',
label: 'Plugins',
items: [
'api/plugins/plugins-overview',
'api/plugins/plugin-content-docs',
'api/plugins/plugin-content-blog',
'api/plugins/plugin-content-pages',
'api/plugins/plugin-client-redirects',
'api/plugins/plugin-debug',
'api/plugins/plugin-google-analytics',
'api/plugins/plugin-google-gtag',
'api/plugins/plugin-ideal-image',
'api/plugins/plugin-pwa',
'api/plugins/plugin-sitemap',
],
},
{
type: 'category',
label: 'Themes',
items: [
'api/themes/themes-overview',
'api/themes/theme-configuration',
'api/themes/theme-classic',
'api/themes/theme-bootstrap',
'api/themes/theme-live-codeblock',
'api/themes/theme-search-algolia',
],
},
],
};