diff --git a/README.md b/README.md index c6e70c2..ca19563 100644 --- a/README.md +++ b/README.md @@ -18,25 +18,19 @@ You can currently find the design mockups at [InVision](https://projects.invisio We must create several components following the architecture described at [New Docs Deployment](https://github.com/vuejs/team-discussions/discussions/22) discussion. The basic idea of the architecture at the moment is as follows. -- `Vue Theme` – Vue Design System. It also contains the default theme for the VitePress. -- `Vue Website` – The central repo (the "theme") in [New Docs Deployment](https://github.com/vuejs/team-discussions/discussions/22) discussion. At discussion it's called `vue-docs-theme`. It uses `Vue Theme` and `Vitepress` to create Vue website theme, such as Home, Team, Partners page. These code should be moved to [vuejs/website](https://github.com/vuejs/website) in the future. -- `Docs` – The content (markdown). It uses `Vue Web Theme` to build final Vue website. This is the "source repo" mentioned in [New Docs Deployment](https://github.com/vuejs/team-discussions/discussions/22) discussion. +- `@vue/theme` (this repo) – Vue Design System. It contains both the base components and a theme for VitePress. -In the end, each component should live in their dedicated repo, but while we are in the early stage of development, we're directly building everything in this single repo. Here is the corresponding directory structure. +- [`@vue/website`](https://github.com/vuejs/website) – The central repo (the "theme") in [New Docs Deployment](https://github.com/vuejs/team-discussions/discussions/22) discussion. It extends `@vue/theme` with `vuejs.org` specific components and pages, such as Home, Team, Sponsors and Partners page. -- `src-theme` – Code for `Vue Theme`. Add sharable global stuff here. Accessible via `vue-theme` alias. - - `src-theme/core` – Contains global Vue Design System codes, such as global styles, color scheme, common components, etc. All components are exposed to public to be used in any app require to use Vue Design System. - - `src-theme/vitepress` – Contains VitePress theme. Only `VPApp` (the root layout) is exposed. This component will be used as default theme for the VitePress. -- `src-web` – Code for "Vue Website". Add any Vue website related code here. Accessible via `vue-website` alias. -- `docs` – Contents for `Docs`. Currently, we're placing `.vitepress` folder to boot up VitePress, by importing code from `src-web` (see `docs/.vitepress` and you'll see what we mean). +- `vuejs/docs` – The actual docs content (markdown). It uses `@vue/website` to build the final Vue website. This is the "source repo" mentioned in [New Docs Deployment](https://github.com/vuejs/team-discussions/discussions/22) discussion. ### Booting The Local Dev Server -Just install NPM packages and boot the server with `yarn docs`. +This repo can be developed on its own since it is a self-contained VitePress theme. A demo app is available in `/demo` and can be run with `yarn dev`. Just install NPM packages and boot the server with `yarn dev`. ```bash $ yarn install -$ yarn docs +$ yarn dev ``` ### Available Scripts @@ -45,23 +39,17 @@ Here is the list of available scripts that can be used during the development. ```bash # Boot local dev server. -$ yarn docs +$ yarn dev -# Build docs, then serve locally. This is for testing +# Build demo, then serve locally. This is for testing # production build in the local environment. -$ yarn docs-serve +$ yarn demo-serve # Run lint via Prettier. $ yarn lint # Run type check via tsc. $ yarn type - -# Run unit test via Jest. -$ yarn jest - -# Run lint, type check, and jest. -$ yarn test ``` ## License diff --git a/__tests__/example.spec.ts b/__tests__/example.spec.ts deleted file mode 100644 index 061fe5b..0000000 --- a/__tests__/example.spec.ts +++ /dev/null @@ -1,5 +0,0 @@ -describe('example', () => { - it('should pass', () => { - expect(true).toBe(true) - }) -}) diff --git a/docs/.vitepress/config.js b/demo/.vitepress/config.js similarity index 67% rename from docs/.vitepress/config.js rename to demo/.vitepress/config.js index c1b64a0..5279f0a 100644 --- a/docs/.vitepress/config.js +++ b/demo/.vitepress/config.js @@ -4,9 +4,15 @@ const path = require('path') module.exports = { - alias: { - 'vue-theme': path.join(__dirname, '../../src-theme'), - 'vue-website': path.join(__dirname, '../../src-web') + vite: { + resolve: { + alias: { + '@vue/theme': path.join(__dirname, '../../src') + } + }, + optimizeDeps: { + include: ['@vueuse/core', 'body-scroll-lock'] + } }, lang: 'en-US', @@ -15,7 +21,13 @@ module.exports = { head: [ ['link', { rel: 'preconnect', href: 'https://fonts.gstatic.com' }], - ['link', { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Noto+Sans+JP:wght@400;500;700&family=Source+Code+Pro:wght@400;700&display=swap' }] + [ + 'link', + { + rel: 'stylesheet', + href: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Noto+Sans+JP:wght@400;500;700&family=Source+Code+Pro:wght@400;700&display=swap' + } + ] ], markdown: { @@ -56,7 +68,10 @@ module.exports = { { items: [ { text: 'Contribute', link: '/guide/contributing/writing-guide' }, - { text: 'Migration from Vue 2', link: '/guide/migration/introduction' } + { + text: 'Migration from Vue 2', + link: '/guide/migration/introduction' + } ] } ] @@ -77,15 +92,19 @@ module.exports = { { text: 'Vue Router', link: 'https://next.router.vuejs.org/' }, { text: 'Vuex', link: 'https://next.vuex.vuejs.org/' }, { text: 'Vue CLI', link: 'https://cli.vuejs.org/' }, - { text: 'Vue Test Utils', link: 'https://next.vue-test-utils.vuejs.org/v2/guide/introduction.html' }, - { text: 'Devtools', link: 'https://github.com/vuejs/vue-devtools' } + { + text: 'Vue Test Utils', + link: 'https://next.vue-test-utils.vuejs.org/v2/guide/introduction.html' + }, + { + text: 'Devtools', + link: 'https://github.com/vuejs/vue-devtools' + } ] }, { text: 'Templates', - items: [ - { text: 'Themes', link: '/community/themes/' } - ] + items: [{ text: 'Themes', link: '/community/themes/' }] } ] }, @@ -96,7 +115,7 @@ module.exports = { items: [ { text: 'Team', link: '/community/team/' }, { text: 'Partners', link: '/community/partners' }, - { text: 'Join', link: '/community/join/' }, + { text: 'Join', link: '/community/join/' } ] }, { @@ -130,11 +149,23 @@ module.exports = { items: [ { text: 'Introduction', link: '/guide/introduction' }, { text: 'Installation', link: '/guide/installation' }, - { text: 'Application & Component Instances', link: '/guide/instance' }, + { + text: 'Application & Component Instances', + link: '/guide/instance' + }, { text: 'Template Syntax', link: '/guide/template-syntax' }, - { text: 'Data Properties and Methods', link: '/guide/data-methods' }, - { text: 'Computed Properties and Watchers', link: '/guide/computed' }, - { text: 'Class and Style Bindings', link: '/guide/class-and-style' }, + { + text: 'Data Properties and Methods', + link: '/guide/data-methods' + }, + { + text: 'Computed Properties and Watchers', + link: '/guide/computed' + }, + { + text: 'Class and Style Bindings', + link: '/guide/class-and-style' + }, { text: 'Conditional Rendering', link: '/guide/conditional' }, { text: 'List Rendering', link: '/guide/list' }, { text: 'Event Handling', link: '/guide/events' }, @@ -145,13 +176,22 @@ module.exports = { { text: 'Components In-Depth', items: [ - { text: 'Component Registration', link: '/guide/component-registration' }, + { + text: 'Component Registration', + link: '/guide/component-registration' + }, { text: 'Props', link: '/guide/component-props' }, { text: 'Non-Prop Attributes', link: '/guide/component-attrs' }, { text: 'Custom Events', link: '/guide/component-custom-events' }, { text: 'Slots', link: '/guide/component-slots' }, - { text: 'Provide / inject', link: '/guide/component-provide-inject' }, - { text: 'Dynamic & Async Components', link: '/guide/component-dynamic-async' }, + { + text: 'Provide / inject', + link: '/guide/component-provide-inject' + }, + { + text: 'Dynamic & Async Components', + link: '/guide/component-dynamic-async' + }, { text: 'Template refs', link: '/guide/component-template-refs' }, { text: 'Handling Edge Cases', link: '/guide/component-edge-cases' } ] @@ -160,7 +200,10 @@ module.exports = { text: 'Transitions & Animation', items: [ { text: 'Overview', link: '/guide/transitions-overview' }, - { text: 'Enter & Leave Transitions', link: '/guide/transitions-enterleave' }, + { + text: 'Enter & Leave Transitions', + link: '/guide/transitions-enterleave' + }, { text: 'List Transitions', link: '/guide/transitions-list' }, { text: 'State Transitions', link: '/guide/transitions-state' } ] @@ -175,11 +218,23 @@ module.exports = { { text: 'Composition API', items: [ - { text: 'Introduction', link: '/guide/composition-api-introduction' }, + { + text: 'Introduction', + link: '/guide/composition-api-introduction' + }, { text: 'Setup', link: '/guide/composition-api-setup' }, - { text: 'Lifecycle Hooks', link: '/guide/composition-api-lifecycle-hooks' }, - { text: 'Provide / Inject', link: '/guide/composition-api-provide-inject' }, - { text: 'Template Refs', link: '/guide/composition-api-template-refs' } + { + text: 'Lifecycle Hooks', + link: '/guide/composition-api-lifecycle-hooks' + }, + { + text: 'Provide / Inject', + link: '/guide/composition-api-provide-inject' + }, + { + text: 'Template Refs', + link: '/guide/composition-api-template-refs' + } ] }, { @@ -187,22 +242,34 @@ module.exports = { items: [ { text: 'Teleport', link: '/guide/teleport' }, { text: 'Render Functions', link: '/guide/render-function' }, - { text: 'Plugins', link: '/guide/plugins' }, + { text: 'Plugins', link: '/guide/plugins' } ] }, { text: 'Digging Deeper', items: [ { text: 'Reactivity in Depth', link: '/guide/reactivity' }, - { text: 'Reactivity Fundamentals', link: '/guide/reactivity-fundamentals' }, - { text: 'Reactivity in Computed and Watch', link: '/guide/reactivity-computed-watchers' }, - { text: 'Rendering Mechanisms and Optimizations', link: '/guide/optimizations' } + { + text: 'Reactivity Fundamentals', + link: '/guide/reactivity-fundamentals' + }, + { + text: 'Reactivity in Computed and Watch', + link: '/guide/reactivity-computed-watchers' + }, + { + text: 'Rendering Mechanisms and Optimizations', + link: '/guide/optimizations' + } ] }, { text: 'Tooling', items: [ - { text: 'Single File Components', link: '/guide/single-file-component' }, + { + text: 'Single File Components', + link: '/guide/single-file-component' + }, { text: 'Testing', link: '/guide/testing' }, { text: 'TypeScript Support', link: '/guide/typescript-support' }, { text: 'Mobile', link: '/guide/mobile' }, diff --git a/docs/.vitepress/theme/index.ts b/demo/.vitepress/theme/index.ts similarity index 71% rename from docs/.vitepress/theme/index.ts rename to demo/.vitepress/theme/index.ts index c257dd3..1e62739 100644 --- a/docs/.vitepress/theme/index.ts +++ b/demo/.vitepress/theme/index.ts @@ -1,6 +1,6 @@ // this file is here temporary during the development. it should become the // default VitePress theme, so we shouldn't have to import it like this. -import { VWTheme } from 'vue-website' +import { VPTheme } from '@vue/theme' -export default VWTheme +export default VPTheme diff --git a/docs/guide/introduction.md b/demo/guide/introduction.md similarity index 100% rename from docs/guide/introduction.md rename to demo/guide/introduction.md diff --git a/docs/index.md b/demo/index.md similarity index 100% rename from docs/index.md rename to demo/index.md diff --git a/docs/public/img/logo-vue-dark.svg b/demo/public/img/logo-vue-dark.svg similarity index 100% rename from docs/public/img/logo-vue-dark.svg rename to demo/public/img/logo-vue-dark.svg diff --git a/docs/public/img/logo-vue.svg b/demo/public/img/logo-vue.svg similarity index 100% rename from docs/public/img/logo-vue.svg rename to demo/public/img/logo-vue.svg diff --git a/jest.config.js b/jest.config.js deleted file mode 100644 index 4800543..0000000 --- a/jest.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - preset: 'ts-jest', - rootDir: __dirname, - testMatch: ['/__tests__/**/*.spec.ts'], - testPathIgnorePatterns: ['/node_modules/'] -} diff --git a/package.json b/package.json index a9336b9..d05032c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,8 @@ { - "name": "vue-theme", + "name": "@vue/theme", "version": "0.1.0", "description": "The design system for Vue.js.", + "main": "src/index.ts", "repository": { "type": "git", "url": "git+https://github.com/vuejs/vue-theme.git" @@ -19,14 +20,10 @@ "scripts": { "lint": "prettier --check --write --parser typescript \"{__tests__,docs,src-theme,src-vp,src-web,types}/**/*.ts\"", "type": "tsc --noEmit", - "jest": "jest", - "test": "yarn lint && yarn type && yarn jest", - "docs": "vitepress dev docs", - "docs-build": "vitepress build docs", - "docs-serve": "yarn docs-build && vitepress serve docs" - }, - "peerDependencies": { - "vue": "^3.0.0" + "test": "yarn lint && yarn type", + "dev": "vitepress dev demo", + "demo-build": "vitepress build demo", + "demo-serve": "yarn demo-build && vitepress serve demo" }, "dependencies": { "@vueuse/core": "^5.0.2", @@ -35,9 +32,8 @@ }, "devDependencies": { "@types/body-scroll-lock": "^2.6.1", - "jest": "^26.6.3", + "@types/estree": "^0.0.48", "prettier": "^2.3.1", - "ts-jest": "^26.5.1", "typescript": "^4.3.2", "vitepress": "^0.15.0", "vue": "^3.1.1" diff --git a/src-web/index.ts b/src-web/index.ts deleted file mode 100644 index bce8a41..0000000 --- a/src-web/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { VPTheme } from 'vue-theme' - -const VWTheme = { - ...VPTheme -} - -export { VWTheme } diff --git a/src-theme/core/components/VTBackdrop.vue b/src/core/components/VTBackdrop.vue similarity index 100% rename from src-theme/core/components/VTBackdrop.vue rename to src/core/components/VTBackdrop.vue diff --git a/src-theme/core/components/VTFlyout.vue b/src/core/components/VTFlyout.vue similarity index 100% rename from src-theme/core/components/VTFlyout.vue rename to src/core/components/VTFlyout.vue diff --git a/src-theme/core/components/VTHamburger.vue b/src/core/components/VTHamburger.vue similarity index 100% rename from src-theme/core/components/VTHamburger.vue rename to src/core/components/VTHamburger.vue diff --git a/src-theme/core/components/VTLink.vue b/src/core/components/VTLink.vue similarity index 100% rename from src-theme/core/components/VTLink.vue rename to src/core/components/VTLink.vue diff --git a/src-theme/core/components/VTMenu.vue b/src/core/components/VTMenu.vue similarity index 100% rename from src-theme/core/components/VTMenu.vue rename to src/core/components/VTMenu.vue diff --git a/src-theme/core/components/VTMenuGroup.vue b/src/core/components/VTMenuGroup.vue similarity index 100% rename from src-theme/core/components/VTMenuGroup.vue rename to src/core/components/VTMenuGroup.vue diff --git a/src-theme/core/components/VTMenuLink.vue b/src/core/components/VTMenuLink.vue similarity index 100% rename from src-theme/core/components/VTMenuLink.vue rename to src/core/components/VTMenuLink.vue diff --git a/src-theme/core/components/VTSocialLink.vue b/src/core/components/VTSocialLink.vue similarity index 100% rename from src-theme/core/components/VTSocialLink.vue rename to src/core/components/VTSocialLink.vue diff --git a/src-theme/core/components/VTSocialLinks.vue b/src/core/components/VTSocialLinks.vue similarity index 100% rename from src-theme/core/components/VTSocialLinks.vue rename to src/core/components/VTSocialLinks.vue diff --git a/src-theme/core/components/VTSwitchAppearance.vue b/src/core/components/VTSwitchAppearance.vue similarity index 100% rename from src-theme/core/components/VTSwitchAppearance.vue rename to src/core/components/VTSwitchAppearance.vue diff --git a/src-theme/core/components/icons/VTIconAlignJustify.vue b/src/core/components/icons/VTIconAlignJustify.vue similarity index 100% rename from src-theme/core/components/icons/VTIconAlignJustify.vue rename to src/core/components/icons/VTIconAlignJustify.vue diff --git a/src-theme/core/components/icons/VTIconAlignLeft.vue b/src/core/components/icons/VTIconAlignLeft.vue similarity index 100% rename from src-theme/core/components/icons/VTIconAlignLeft.vue rename to src/core/components/icons/VTIconAlignLeft.vue diff --git a/src-theme/core/components/icons/VTIconAlignRight.vue b/src/core/components/icons/VTIconAlignRight.vue similarity index 100% rename from src-theme/core/components/icons/VTIconAlignRight.vue rename to src/core/components/icons/VTIconAlignRight.vue diff --git a/src-theme/core/components/icons/VTIconChevronDown.vue b/src/core/components/icons/VTIconChevronDown.vue similarity index 100% rename from src-theme/core/components/icons/VTIconChevronDown.vue rename to src/core/components/icons/VTIconChevronDown.vue diff --git a/src-theme/core/components/icons/VTIconChevronLeft.vue b/src/core/components/icons/VTIconChevronLeft.vue similarity index 100% rename from src-theme/core/components/icons/VTIconChevronLeft.vue rename to src/core/components/icons/VTIconChevronLeft.vue diff --git a/src-theme/core/components/icons/VTIconChevronRight.vue b/src/core/components/icons/VTIconChevronRight.vue similarity index 100% rename from src-theme/core/components/icons/VTIconChevronRight.vue rename to src/core/components/icons/VTIconChevronRight.vue diff --git a/src-theme/core/components/icons/VTIconChevronUp.vue b/src/core/components/icons/VTIconChevronUp.vue similarity index 100% rename from src-theme/core/components/icons/VTIconChevronUp.vue rename to src/core/components/icons/VTIconChevronUp.vue diff --git a/src-theme/core/components/icons/VTIconCommand.vue b/src/core/components/icons/VTIconCommand.vue similarity index 100% rename from src-theme/core/components/icons/VTIconCommand.vue rename to src/core/components/icons/VTIconCommand.vue diff --git a/src-theme/core/components/icons/VTIconDiscord.vue b/src/core/components/icons/VTIconDiscord.vue similarity index 100% rename from src-theme/core/components/icons/VTIconDiscord.vue rename to src/core/components/icons/VTIconDiscord.vue diff --git a/src-theme/core/components/icons/VTIconExternalLink.vue b/src/core/components/icons/VTIconExternalLink.vue similarity index 100% rename from src-theme/core/components/icons/VTIconExternalLink.vue rename to src/core/components/icons/VTIconExternalLink.vue diff --git a/src-theme/core/components/icons/VTIconFacebook.vue b/src/core/components/icons/VTIconFacebook.vue similarity index 100% rename from src-theme/core/components/icons/VTIconFacebook.vue rename to src/core/components/icons/VTIconFacebook.vue diff --git a/src-theme/core/components/icons/VTIconGitHub.vue b/src/core/components/icons/VTIconGitHub.vue similarity index 100% rename from src-theme/core/components/icons/VTIconGitHub.vue rename to src/core/components/icons/VTIconGitHub.vue diff --git a/src-theme/core/components/icons/VTIconLinkedIn.vue b/src/core/components/icons/VTIconLinkedIn.vue similarity index 100% rename from src-theme/core/components/icons/VTIconLinkedIn.vue rename to src/core/components/icons/VTIconLinkedIn.vue diff --git a/src-theme/core/components/icons/VTIconMoon.vue b/src/core/components/icons/VTIconMoon.vue similarity index 100% rename from src-theme/core/components/icons/VTIconMoon.vue rename to src/core/components/icons/VTIconMoon.vue diff --git a/src-theme/core/components/icons/VTIconMoreHorizontal.vue b/src/core/components/icons/VTIconMoreHorizontal.vue similarity index 100% rename from src-theme/core/components/icons/VTIconMoreHorizontal.vue rename to src/core/components/icons/VTIconMoreHorizontal.vue diff --git a/src-theme/core/components/icons/VTIconPlus.vue b/src/core/components/icons/VTIconPlus.vue similarity index 100% rename from src-theme/core/components/icons/VTIconPlus.vue rename to src/core/components/icons/VTIconPlus.vue diff --git a/src-theme/core/components/icons/VTIconSearch.vue b/src/core/components/icons/VTIconSearch.vue similarity index 100% rename from src-theme/core/components/icons/VTIconSearch.vue rename to src/core/components/icons/VTIconSearch.vue diff --git a/src-theme/core/components/icons/VTIconSlack.vue b/src/core/components/icons/VTIconSlack.vue similarity index 100% rename from src-theme/core/components/icons/VTIconSlack.vue rename to src/core/components/icons/VTIconSlack.vue diff --git a/src-theme/core/components/icons/VTIconSun.vue b/src/core/components/icons/VTIconSun.vue similarity index 100% rename from src-theme/core/components/icons/VTIconSun.vue rename to src/core/components/icons/VTIconSun.vue diff --git a/src-theme/core/components/icons/VTIconTwitter.vue b/src/core/components/icons/VTIconTwitter.vue similarity index 100% rename from src-theme/core/components/icons/VTIconTwitter.vue rename to src/core/components/icons/VTIconTwitter.vue diff --git a/src-theme/core/composables/appearance.ts b/src/core/composables/appearance.ts similarity index 100% rename from src-theme/core/composables/appearance.ts rename to src/core/composables/appearance.ts diff --git a/src-theme/core/composables/menu.ts b/src/core/composables/menu.ts similarity index 100% rename from src-theme/core/composables/menu.ts rename to src/core/composables/menu.ts diff --git a/src-theme/core/composables/socialLink.ts b/src/core/composables/socialLink.ts similarity index 100% rename from src-theme/core/composables/socialLink.ts rename to src/core/composables/socialLink.ts diff --git a/src-theme/core/index.ts b/src/core/index.ts similarity index 100% rename from src-theme/core/index.ts rename to src/core/index.ts diff --git a/src-theme/core/styles/base.css b/src/core/styles/base.css similarity index 100% rename from src-theme/core/styles/base.css rename to src/core/styles/base.css diff --git a/src-theme/core/styles/variables.css b/src/core/styles/variables.css similarity index 100% rename from src-theme/core/styles/variables.css rename to src/core/styles/variables.css diff --git a/src-theme/core/styles/vt-backdrop.css b/src/core/styles/vt-backdrop.css similarity index 100% rename from src-theme/core/styles/vt-backdrop.css rename to src/core/styles/vt-backdrop.css diff --git a/src-theme/core/styles/vt-doc-base.css b/src/core/styles/vt-doc-base.css similarity index 100% rename from src-theme/core/styles/vt-doc-base.css rename to src/core/styles/vt-doc-base.css diff --git a/src-theme/core/styles/vt-doc-code.css b/src/core/styles/vt-doc-code.css similarity index 100% rename from src-theme/core/styles/vt-doc-code.css rename to src/core/styles/vt-doc-code.css diff --git a/src-theme/core/styles/vt-flyout.css b/src/core/styles/vt-flyout.css similarity index 100% rename from src-theme/core/styles/vt-flyout.css rename to src/core/styles/vt-flyout.css diff --git a/src-theme/core/styles/vt-hamburger.css b/src/core/styles/vt-hamburger.css similarity index 100% rename from src-theme/core/styles/vt-hamburger.css rename to src/core/styles/vt-hamburger.css diff --git a/src-theme/core/styles/vt-link.css b/src/core/styles/vt-link.css similarity index 100% rename from src-theme/core/styles/vt-link.css rename to src/core/styles/vt-link.css diff --git a/src-theme/core/styles/vt-menu-group.css b/src/core/styles/vt-menu-group.css similarity index 100% rename from src-theme/core/styles/vt-menu-group.css rename to src/core/styles/vt-menu-group.css diff --git a/src-theme/core/styles/vt-menu-link.css b/src/core/styles/vt-menu-link.css similarity index 100% rename from src-theme/core/styles/vt-menu-link.css rename to src/core/styles/vt-menu-link.css diff --git a/src-theme/core/styles/vt-menu.css b/src/core/styles/vt-menu.css similarity index 100% rename from src-theme/core/styles/vt-menu.css rename to src/core/styles/vt-menu.css diff --git a/src-theme/core/styles/vt-social-link.css b/src/core/styles/vt-social-link.css similarity index 100% rename from src-theme/core/styles/vt-social-link.css rename to src/core/styles/vt-social-link.css diff --git a/src-theme/core/styles/vt-social-links.css b/src/core/styles/vt-social-links.css similarity index 100% rename from src-theme/core/styles/vt-social-links.css rename to src/core/styles/vt-social-links.css diff --git a/src-theme/core/styles/vt-switch-appearance.css b/src/core/styles/vt-switch-appearance.css similarity index 100% rename from src-theme/core/styles/vt-switch-appearance.css rename to src/core/styles/vt-switch-appearance.css diff --git a/src-theme/index.ts b/src/index.ts similarity index 100% rename from src-theme/index.ts rename to src/index.ts diff --git a/src-theme/vitepress/components/VPApp.vue b/src/vitepress/components/VPApp.vue similarity index 100% rename from src-theme/vitepress/components/VPApp.vue rename to src/vitepress/components/VPApp.vue diff --git a/src-theme/vitepress/components/VPContent.vue b/src/vitepress/components/VPContent.vue similarity index 100% rename from src-theme/vitepress/components/VPContent.vue rename to src/vitepress/components/VPContent.vue diff --git a/src-theme/vitepress/components/VPContentDoc.vue b/src/vitepress/components/VPContentDoc.vue similarity index 100% rename from src-theme/vitepress/components/VPContentDoc.vue rename to src/vitepress/components/VPContentDoc.vue diff --git a/src-theme/vitepress/components/VPContentDocAside.vue b/src/vitepress/components/VPContentDocAside.vue similarity index 100% rename from src-theme/vitepress/components/VPContentDocAside.vue rename to src/vitepress/components/VPContentDocAside.vue diff --git a/src-theme/vitepress/components/VPContentPage.vue b/src/vitepress/components/VPContentPage.vue similarity index 100% rename from src-theme/vitepress/components/VPContentPage.vue rename to src/vitepress/components/VPContentPage.vue diff --git a/src-theme/vitepress/components/VPLocalNav.vue b/src/vitepress/components/VPLocalNav.vue similarity index 100% rename from src-theme/vitepress/components/VPLocalNav.vue rename to src/vitepress/components/VPLocalNav.vue diff --git a/src-theme/vitepress/components/VPNav.vue b/src/vitepress/components/VPNav.vue similarity index 100% rename from src-theme/vitepress/components/VPNav.vue rename to src/vitepress/components/VPNav.vue diff --git a/src-theme/vitepress/components/VPNavBar.vue b/src/vitepress/components/VPNavBar.vue similarity index 100% rename from src-theme/vitepress/components/VPNavBar.vue rename to src/vitepress/components/VPNavBar.vue diff --git a/src-theme/vitepress/components/VPNavBarAppearance.vue b/src/vitepress/components/VPNavBarAppearance.vue similarity index 100% rename from src-theme/vitepress/components/VPNavBarAppearance.vue rename to src/vitepress/components/VPNavBarAppearance.vue diff --git a/src-theme/vitepress/components/VPNavBarExtra.vue b/src/vitepress/components/VPNavBarExtra.vue similarity index 100% rename from src-theme/vitepress/components/VPNavBarExtra.vue rename to src/vitepress/components/VPNavBarExtra.vue diff --git a/src-theme/vitepress/components/VPNavBarHamburger.vue b/src/vitepress/components/VPNavBarHamburger.vue similarity index 100% rename from src-theme/vitepress/components/VPNavBarHamburger.vue rename to src/vitepress/components/VPNavBarHamburger.vue diff --git a/src-theme/vitepress/components/VPNavBarMenu.vue b/src/vitepress/components/VPNavBarMenu.vue similarity index 100% rename from src-theme/vitepress/components/VPNavBarMenu.vue rename to src/vitepress/components/VPNavBarMenu.vue diff --git a/src-theme/vitepress/components/VPNavBarMenuGroup.vue b/src/vitepress/components/VPNavBarMenuGroup.vue similarity index 100% rename from src-theme/vitepress/components/VPNavBarMenuGroup.vue rename to src/vitepress/components/VPNavBarMenuGroup.vue diff --git a/src-theme/vitepress/components/VPNavBarMenuLink.vue b/src/vitepress/components/VPNavBarMenuLink.vue similarity index 100% rename from src-theme/vitepress/components/VPNavBarMenuLink.vue rename to src/vitepress/components/VPNavBarMenuLink.vue diff --git a/src-theme/vitepress/components/VPNavBarSearch.vue b/src/vitepress/components/VPNavBarSearch.vue similarity index 100% rename from src-theme/vitepress/components/VPNavBarSearch.vue rename to src/vitepress/components/VPNavBarSearch.vue diff --git a/src-theme/vitepress/components/VPNavBarSocialLinks.vue b/src/vitepress/components/VPNavBarSocialLinks.vue similarity index 100% rename from src-theme/vitepress/components/VPNavBarSocialLinks.vue rename to src/vitepress/components/VPNavBarSocialLinks.vue diff --git a/src-theme/vitepress/components/VPNavBarTitle.vue b/src/vitepress/components/VPNavBarTitle.vue similarity index 100% rename from src-theme/vitepress/components/VPNavBarTitle.vue rename to src/vitepress/components/VPNavBarTitle.vue diff --git a/src-theme/vitepress/components/VPNavScreen.vue b/src/vitepress/components/VPNavScreen.vue similarity index 100% rename from src-theme/vitepress/components/VPNavScreen.vue rename to src/vitepress/components/VPNavScreen.vue diff --git a/src-theme/vitepress/components/VPNavScreenAppearance.vue b/src/vitepress/components/VPNavScreenAppearance.vue similarity index 93% rename from src-theme/vitepress/components/VPNavScreenAppearance.vue rename to src/vitepress/components/VPNavScreenAppearance.vue index 5901bb8..5171407 100644 --- a/src-theme/vitepress/components/VPNavScreenAppearance.vue +++ b/src/vitepress/components/VPNavScreenAppearance.vue @@ -1,5 +1,5 @@ diff --git a/src-theme/vitepress/components/VPNavScreenMenuLink.vue b/src/vitepress/components/VPNavScreenMenuLink.vue similarity index 94% rename from src-theme/vitepress/components/VPNavScreenMenuLink.vue rename to src/vitepress/components/VPNavScreenMenuLink.vue index 72c1838..43ded67 100644 --- a/src-theme/vitepress/components/VPNavScreenMenuLink.vue +++ b/src/vitepress/components/VPNavScreenMenuLink.vue @@ -1,6 +1,6 @@