-
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Zoey <[email protected]>
- Loading branch information
1 parent
f29d677
commit 8d6538d
Showing
33 changed files
with
9,125 additions
and
7,267 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
shamefully-hoist=true | ||
strict-peer-dependencies=false | ||
ignore-workspace-root-check=true | ||
link-workspace-packages=true |
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 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,103 +1,123 @@ | ||
import type { DefaultTheme } from 'vitepress' | ||
|
||
const guideSidebar: DefaultTheme.SidebarItem[] = [ | ||
{ | ||
text: 'Getting started', | ||
base: '/guide/getting-started', | ||
items: [ | ||
{ | ||
text: 'Introduction', | ||
link: '/introduction', | ||
}, | ||
{ | ||
text: 'Installation', | ||
link: '/installation', | ||
}, | ||
{ | ||
text: 'Choosing the provider', | ||
link: '/choose-provider', | ||
}, | ||
], | ||
}, | ||
{ | ||
text: 'Application side', | ||
base: '/guide/application-side', | ||
items: [ | ||
{ | ||
text: 'Configuration', | ||
link: '/configuration', | ||
}, | ||
{ | ||
text: 'Session access', | ||
link: '/session-access', | ||
}, | ||
{ | ||
text: 'Protecting pages', | ||
link: '/protecting-pages', | ||
}, | ||
], | ||
}, | ||
{ | ||
text: 'AuthJS Provider', | ||
base: '/guide/authjs', | ||
items: [ | ||
{ | ||
text: 'Quick Start', | ||
link: '/quick-start', | ||
}, | ||
{ | ||
text: 'NuxtAuthHandler', | ||
link: '/nuxt-auth-handler', | ||
}, | ||
{ | ||
text: 'Custom pages', | ||
link: '/custom-pages', | ||
}, | ||
{ | ||
text: 'Session data', | ||
link: '/session-data', | ||
}, | ||
{ | ||
text: 'Server side', | ||
collapsed: true, | ||
items: [ | ||
{ text: 'Session access', link: '/server-side/session-access' }, | ||
{ text: 'JWT access', link: '/server-side/jwt-access' }, | ||
{ text: 'Rest API', link: '/server-side/rest-api' }, | ||
], | ||
}, | ||
], | ||
}, | ||
{ | ||
text: 'Local / Refresh Provider', | ||
base: '/guide/local', | ||
items: [ | ||
{ | ||
text: 'Quick Start', | ||
link: '/quick-start', | ||
}, | ||
{ | ||
text: 'Session data', | ||
link: '/session-data', | ||
} | ||
], | ||
}, | ||
{ | ||
text: 'Advanced', | ||
base: '/guide/advanced', | ||
items: [ | ||
{ | ||
text: 'Deployment', | ||
collapsed: true, | ||
items: [ | ||
{ text: 'Self-hosted', link: '/deployment/self-hosted' }, | ||
{ text: 'Vercel', link: '/deployment/vercel' }, | ||
{ text: 'Netlify', link: '/deployment/netlify' }, | ||
], | ||
}, | ||
{ text: 'Caching', link: '/caching' }, | ||
], | ||
}, | ||
] | ||
|
||
const migrationsSidebar: DefaultTheme.SidebarItem[] = [ | ||
{ | ||
text: 'Migrations', | ||
base: '/resources/migrations', | ||
items: [ | ||
{ | ||
text: 'Upgrading to v1.0.0', | ||
link: '/1.0.0', | ||
}, | ||
{ | ||
text: 'Upgrading to v0.8.0', | ||
link: '/0.8.0', | ||
}, | ||
], | ||
}, | ||
] | ||
|
||
export const routes: DefaultTheme.Config['sidebar'] = { | ||
'/guide': [ | ||
{ | ||
text: 'Getting started', | ||
base: '/guide/getting-started', | ||
items: [ | ||
{ | ||
text: 'Introduction', | ||
link: '/introduction', | ||
}, | ||
{ | ||
text: 'Installation', | ||
link: '/installation', | ||
}, | ||
{ | ||
text: 'Choosing the provider', | ||
link: '/choose-provider', | ||
}, | ||
], | ||
}, | ||
{ | ||
text: 'Application side', | ||
base: '/guide/application-side', | ||
items: [ | ||
{ | ||
text: 'Configuration', | ||
link: '/configuration', | ||
}, | ||
{ | ||
text: 'Session access', | ||
link: '/session-access', | ||
}, | ||
{ | ||
text: 'Protecting pages', | ||
link: '/protecting-pages', | ||
}, | ||
], | ||
}, | ||
{ | ||
text: 'AuthJS Provider', | ||
base: '/guide/authjs', | ||
items: [ | ||
{ | ||
text: 'Quick Start', | ||
link: '/quick-start', | ||
}, | ||
{ | ||
text: 'NuxtAuthHandler', | ||
link: '/nuxt-auth-handler', | ||
}, | ||
{ | ||
text: 'Custom pages', | ||
link: '/custom-pages', | ||
}, | ||
{ | ||
text: 'Session data', | ||
link: '/session-data', | ||
}, | ||
{ | ||
text: 'Server side', | ||
collapsed: true, | ||
items: [ | ||
{ text: 'Session access', link: '/server-side/session-access' }, | ||
{ text: 'JWT access', link: '/server-side/jwt-access' }, | ||
{ text: 'Rest API', link: '/server-side/rest-api' }, | ||
], | ||
}, | ||
], | ||
}, | ||
{ | ||
text: 'Local / Refresh Provider', | ||
base: '/guide/local', | ||
items: [ | ||
{ | ||
text: 'Quick Start', | ||
link: '/quick-start', | ||
}, | ||
{ | ||
text: 'Session data', | ||
link: '/session-data', | ||
} | ||
], | ||
}, | ||
{ | ||
text: 'Advanced', | ||
base: '/guide/advanced', | ||
items: [ | ||
{ | ||
text: 'Deployment', | ||
collapsed: true, | ||
items: [ | ||
{ text: 'Self-hosted', link: '/deployment/self-hosted' }, | ||
{ text: 'Vercel', link: '/deployment/vercel' }, | ||
{ text: 'Netlify', link: '/deployment/netlify' }, | ||
], | ||
}, | ||
{ text: 'Caching', link: '/caching' }, | ||
], | ||
}, | ||
], | ||
'/guide': guideSidebar, | ||
'/resources/migrations': migrationsSidebar | ||
} |
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.