-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v4] add root
_meta.global
file (#3709)
* aa * use posix * upd snapshots * rm legacy code * rm legacy code * aa * da * da * da * da * da * da * more * more * more * more * more * more * more * more * more * more * more * aa * getPageMap * more * more * more * more * more * more * more * more * more * more * more * more * more * more * more * more * more * more * more * more * more * more * more * more * more * more * more * more * more * more * more * more * _meta.global * _meta.global * _meta.global * _meta.global * _meta.global * _meta.global * _meta.global * _meta.global * _meta.global * changeset and prettier * rm * more * lint * fix cached compiler
- Loading branch information
1 parent
0d9f736
commit 8a0ae0f
Showing
128 changed files
with
1,512 additions
and
1,020 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
'nextra-theme-blog': major | ||
'nextra-theme-docs': major | ||
'nextra': major | ||
--- | ||
|
||
- add root `_meta.global.{js,jsx,ts,tsx}` file | ||
- `getPageMap` now receive only 1 argument `root?: string = '/'` instead of 2 `lang?: string, route?: string = '/'` | ||
- remove `createCatchAllMeta` from `nextra/catch-all` | ||
- remove `collectCatchAllRoutes` | ||
- remove `normalizePageRoute` | ||
- add `mergeMetaWithPageMap` to `nextra/page-map` | ||
- move adding `metadata.filePath`, `metadata.title` and `metadata.readingTime` in remark plugin | ||
- refactor recma rewrite plugin and add tests | ||
- remove `recmaRewriteJsx` | ||
- remove `recmaRewriteFunctionBody` | ||
- make `convertPageMapToJs` sync |
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 |
---|---|---|
@@ -0,0 +1,131 @@ | ||
export default { | ||
index: { | ||
type: 'page', | ||
display: 'hidden' | ||
}, | ||
docs: { | ||
type: 'page', | ||
title: 'Documentation', | ||
items: { | ||
index: '', | ||
guide: { | ||
items: { | ||
'organize-files': '', | ||
markdown: '', | ||
'syntax-highlighting': '', | ||
link: '', | ||
image: '', | ||
ssg: '', | ||
i18n: '', | ||
'custom-css': '', | ||
'static-exports': '', | ||
search: '', | ||
'github-alert-syntax': '', | ||
turbopack: '' | ||
} | ||
}, | ||
advanced: { | ||
items: { | ||
npm2yarn: '', | ||
mermaid: '', | ||
'tailwind-css': '', | ||
latex: '', | ||
table: '', | ||
typescript: '', | ||
remote: '', | ||
playground: { | ||
theme: { | ||
layout: 'full' | ||
} | ||
} | ||
} | ||
}, | ||
'built-ins': { | ||
items: { | ||
_: { | ||
type: 'separator', | ||
title: 'Layout Components' | ||
}, | ||
banner: '', | ||
head: '', | ||
search: '', | ||
__: { | ||
type: 'separator', | ||
title: 'Content Components' | ||
} | ||
} | ||
}, | ||
_: { | ||
type: 'separator', | ||
title: 'Themes' | ||
}, | ||
'docs-theme': { | ||
items: { | ||
start: '', | ||
'page-configuration': '', | ||
'built-ins': '' | ||
} | ||
}, | ||
'blog-theme': '', | ||
'custom-theme': '', | ||
__: { | ||
type: 'separator', | ||
title: 'More' | ||
}, | ||
'about-link': { | ||
title: 'About Nextra', | ||
href: '/about' | ||
}, | ||
'next.js-link': { | ||
title: 'Next.js Docs', | ||
href: 'https://nextjs.org?utm_source=nextra.site&utm_medium=referral&utm_campaign=sidebar' | ||
}, | ||
'migration-from-v3': { | ||
title: 'Migration from Nextra v3', | ||
href: 'https://the-guild.dev/blog/nextra-4?utm_source=nextra.site&utm_campaign=sidebar&utm_content=sidebar_link' | ||
} | ||
} | ||
}, | ||
versions: { | ||
type: 'menu', | ||
title: 'Versions', | ||
items: { | ||
_3: { | ||
title: 'Nextra v3 Docs', | ||
href: 'https://nextra-v2-pyibc76cq-shud.vercel.app' | ||
}, | ||
_2: { | ||
title: 'Nextra v2 Docs', | ||
href: 'https://nextra-v2-oe0zrpzjp-shud.vercel.app' | ||
} | ||
} | ||
}, | ||
blog: { | ||
type: 'page', | ||
theme: { | ||
typesetting: 'article' | ||
} | ||
}, | ||
about: { | ||
type: 'page', | ||
theme: { | ||
typesetting: 'article' | ||
} | ||
}, | ||
showcase: { | ||
type: 'page', | ||
theme: { | ||
typesetting: 'article', | ||
layout: 'full', | ||
timestamp: false | ||
} | ||
}, | ||
sponsors: { | ||
type: 'page', | ||
theme: { | ||
typesetting: 'article', | ||
layout: 'full', | ||
timestamp: false | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.