Skip to content

Commit b4fd231

Browse files
committed
feat(content): use current meta file
1 parent 4d71500 commit b4fd231

File tree

1 file changed

+27
-31
lines changed

1 file changed

+27
-31
lines changed

content/docs/navigation.mdx

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -160,62 +160,58 @@ export default {
160160

161161
```typescript
162162
// app/_meta.global.tsx
163-
import { MetaRecord } from "nextra";
163+
import {MetaRecord} from "nextra";
164164

165-
// Sidebar items
166165
const DOCS_ITEMS: MetaRecord = {
167-
'getting-started': 'Getting Started',
168-
'installation': 'Installation',
169-
'---concepts': {
170-
type: 'separator',
171-
title: 'Core Concepts'
172-
},
173-
'configuration': 'Configuration',
174-
'built-ins': 'Built-in Components'
166+
index: '',
167+
navigation: '',
168+
tips: '',
175169
}
176170

171+
177172
export default {
178-
// Navbar: Home page with full width
179173
index: {
180174
type: 'page',
181-
title: 'Home',
182175
theme: {
183-
layout: 'full'
176+
layout: 'full',
177+
toc: false,
178+
timestamp: false,
184179
}
185180
},
186-
187-
// Navbar: Documentation entry with sidebar items
188181
docs: {
189182
type: 'page',
190183
title: 'Documentation',
191184
items: DOCS_ITEMS
192185
},
193-
194-
// Navbar: Standalone pages
195-
about: {
186+
article: {
196187
type: 'page',
197-
title: 'About'
188+
theme: {
189+
toc: false,
190+
typesetting: 'article',
191+
}
198192
},
199193
contact: {
200194
type: 'page',
201-
title: 'Contact'
195+
theme: {
196+
layout: 'full',
197+
toc: false,
198+
timestamp: false,
199+
}
202200
},
203-
204-
// Navbar: Dropdown menu
205-
resources: {
201+
nextraStarter: {
202+
title: 'Starter Templates',
206203
type: 'menu',
207-
title: 'Resources',
208204
items: {
209-
github: {
210-
title: 'GitHub',
211-
href: 'https://github.com/your-repo'
212-
},
213205
docs: {
214-
title: 'Nextra Docs',
215-
href: 'https://nextra.site'
206+
title: 'Docs Starter repo',
207+
href: 'https://github.com/phucbm/nextra-docs-starter',
208+
},
209+
blog: {
210+
title: 'Blog Starter repo',
211+
href: 'https://github.com/phucbm/nextra-blog-starter'
216212
}
217213
}
218-
}
214+
},
219215
}
220216
```
221217

0 commit comments

Comments
 (0)