diff --git a/.vscode/settings.json b/.vscode/settings.json index c53688b..ed0cc91 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,5 +5,15 @@ "vue.complete.casing.tags": "pascal", "typescript.preferences.importModuleSpecifier": "non-relative", "typescript.tsdk": "node_modules/typescript/lib", - "cSpell.words": ["composables", "Pinia", "Tinybase", "todos", "wildcarded"] + "cSpell.words": [ + "composables", + "Moraru", + "Pinia", + "pkgroll", + "Tinybase", + "todos", + "vitepress", + "vueuse", + "wildcarded" + ] } diff --git a/packages/private/docs/.vitepress/config.mts b/packages/private/docs/.vitepress/config.mts index 83f4410..a541b4d 100644 --- a/packages/private/docs/.vitepress/config.mts +++ b/packages/private/docs/.vitepress/config.mts @@ -37,6 +37,13 @@ export default defineConfig({ { text: 'Writable References', link: '/api/store/references' }, ], }, + { + text: 'Checkpoints', + items: [ + { text: 'Composables', link: '/api/checkpoints/composables' }, + { text: 'Context', link: '/api/checkpoints/context' }, + ], + }, { text: 'Common', items: [ diff --git a/packages/private/docs/.vitepress/theme/components/MyLayout.vue b/packages/private/docs/.vitepress/theme/components/MyLayout.vue index 2b10b9f..6ab1bdb 100644 --- a/packages/private/docs/.vitepress/theme/components/MyLayout.vue +++ b/packages/private/docs/.vitepress/theme/components/MyLayout.vue @@ -3,19 +3,27 @@ import { useRoute } from 'vitepress' import DefaultTheme from 'vitepress/theme' import VPSwitchStoreStyle from './VPSwitchStoreStyle.vue' import { computed } from 'vue' +import { useBodyClass } from '../composables/useBodyClass.mjs' +import { useLocalStorage } from '@vueuse/core' const { Layout } = DefaultTheme const route = useRoute() const isApiPage = computed(() => route.path.startsWith('/api')) + +const isDefaultStore = useLocalStorage('isDefaultStoreSelected', true) +useBodyClass(isDefaultStore, { + trueClass: 'default-store', + falseClass: 'custom-store', +})