@x-wave/blog 1.0.29 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/consts/navigation.ts +3 -5
- package/index.js +972 -928
- package/package.json +1 -1
- package/types/index.ts +14 -1
package/consts/navigation.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { NavigationEntry } from 'types'
|
|
2
2
|
|
|
3
|
-
// Navigation structure
|
|
4
|
-
//
|
|
3
|
+
// Navigation structure
|
|
4
|
+
// - Individual item titles are loaded from their MDX frontmatter
|
|
5
|
+
// - Section titles are i18n keys (e.g., 'nav.helpResources') and will be translated
|
|
5
6
|
// Optional properties:
|
|
6
7
|
// - hasAdvanced: boolean - indicates if the page has an advanced version
|
|
7
8
|
// - showTableOfContents: boolean - set to false to hide "On this page" section (default: true)
|
|
8
9
|
// - defaultOpen: boolean - for sections, set to true to have them open by default
|
|
9
10
|
export const NAVIGATION_DATA: NavigationEntry[] = [
|
|
10
11
|
{
|
|
11
|
-
title: 'docs.helloWorld',
|
|
12
12
|
slug: 'welcome',
|
|
13
13
|
},
|
|
14
14
|
{
|
|
@@ -16,12 +16,10 @@ export const NAVIGATION_DATA: NavigationEntry[] = [
|
|
|
16
16
|
defaultOpen: true,
|
|
17
17
|
items: [
|
|
18
18
|
{
|
|
19
|
-
title: 'docs.glossary',
|
|
20
19
|
slug: 'glossary',
|
|
21
20
|
showTableOfContents: true,
|
|
22
21
|
},
|
|
23
22
|
{
|
|
24
|
-
title: 'docs.faq',
|
|
25
23
|
slug: 'faq',
|
|
26
24
|
},
|
|
27
25
|
],
|