-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
1,023 additions
and
276 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import type { DefaultTheme, LocaleSpecificConfig } from 'vitepress' | ||
import { version } from '../../../package.json' | ||
|
||
export const en: LocaleSpecificConfig<DefaultTheme.Config> = { | ||
description: 'Configurable persistence of Pinia stores.', | ||
themeConfig: { | ||
editLink: { | ||
text: 'Suggest changes to this page', | ||
pattern: 'https://github.com/prazdevs/pinia-plugin-persistedstate/edit/main/docs/:path', | ||
}, | ||
nav: [ | ||
{ text: 'Guide', link: '/guide' }, | ||
{ | ||
text: 'Frameworks', | ||
items: [ | ||
{ text: 'Nuxt', link: '/frameworks/nuxt' }, | ||
{ text: 'Others', link: '/frameworks/others' }, | ||
], | ||
}, | ||
{ | ||
text: `v${version}`, | ||
items: [ | ||
{ | ||
items: [{ | ||
text: 'Release Notes', | ||
link: 'https://github.com/prazdevs/pinia-plugin-persistedstate/releases', | ||
}], | ||
}, | ||
{ | ||
text: 'Versions', | ||
items: [ | ||
{ | ||
text: `${version} (Current)`, | ||
activeMatch: '/', | ||
link: '#', | ||
}, | ||
{ | ||
text: '3.2.2', | ||
link: 'https://github.com/prazdevs/pinia-plugin-persistedstate/tree/v3', | ||
}, | ||
{ | ||
text: '2.4.0', | ||
link: 'https://github.com/prazdevs/pinia-plugin-persistedstate/tree/v2', | ||
}, | ||
{ | ||
text: '1.6.3', | ||
link: 'https://github.com/prazdevs/pinia-plugin-persistedstate/tree/v2', | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
sidebar: [ | ||
{ | ||
text: 'Examples', | ||
items: [ | ||
{ text: 'Markdown Examples', link: '/markdown-examples' }, | ||
{ text: 'Runtime API Examples', link: '/api-examples' }, | ||
], | ||
}, | ||
], | ||
footer: { | ||
message: 'Released under the MIT License.', | ||
copyright: 'Copyright © 2021-present Sacha Bouillez', | ||
}, | ||
|
||
}, | ||
} |
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,44 @@ | ||
import { defineConfig } from 'vitepress' | ||
import { transformerTwoslash } from '@shikijs/vitepress-twoslash' | ||
import { en } from './en' | ||
|
||
// https://vitepress.dev/reference/site-config | ||
export default defineConfig({ | ||
title: 'Pinia Plugin Persistedstate', | ||
head: [['link', { rel: 'icon', href: '/favicon.ico' }]], | ||
lastUpdated: true, | ||
markdown: { | ||
codeTransformers: [ | ||
transformerTwoslash(), | ||
], | ||
theme: { | ||
dark: 'catppuccin-mocha', | ||
light: 'catppuccin-latte', | ||
}, | ||
}, | ||
themeConfig: { | ||
logo: { | ||
light: '/logo-light.svg', | ||
dark: '/logo-dark.svg', | ||
}, | ||
search: { | ||
provider: 'algolia', | ||
options: { | ||
appId: '90OL5Y5T3K', | ||
apiKey: '20f9f00e8b98bae16d443559f1879aa9', | ||
indexName: 'pinia-plugin-persistedstate', | ||
}, | ||
}, | ||
socialLinks: [ | ||
{ icon: 'github', link: 'https://github.com/prazdevs/pinia-plugin-persistedstate' }, | ||
], | ||
externalLinkIcon: true, | ||
}, | ||
locales: { | ||
root: { | ||
label: 'English', | ||
lang: 'en', | ||
...en, | ||
}, | ||
}, | ||
}) |
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.