diff --git a/README.md b/README.md index 5825a07e..6cf29f0d 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,12 @@ +

+ Vite Press +

+ # (WIP) VitePress 📝💨 > [VuePress](http://vuepress.vuejs.org/)' little brother, built on top of [vite](https://github.com/vuejs/vite) -``` bash +```bash npm install -D vitepress echo '# Hello VitePress' > index.md @@ -26,7 +30,7 @@ You can develop your custom theme by adding the following files: ```vue ``` @@ -63,11 +67,13 @@ Now, with `vite` and Vue 3, it is time to rethink what a "Vue-powered static sit ## Improvements over VuePress - Uses Vue 3. - - Leverages Vue 3's improved template static analysis to stringify static content as much as possible. Static content is sent as string literals instead of JavaScript render function code - the JS payload is therefore *much* cheaper to parse, and hydration also becomes faster. + + - Leverages Vue 3's improved template static analysis to stringify static content as much as possible. Static content is sent as string literals instead of JavaScript render function code - the JS payload is therefore _much_ cheaper to parse, and hydration also becomes faster. Note the optimization is applied while still allowing the user to freely mix Vue components inside markdown content - the compiler does the static/dynamic separation for you automatically and you never need to think about it. - Uses `vite` under the hood: + - Faster dev server start - Faster hot updates - Faster build (uses Rollup internally) diff --git a/lib/theme-default/Layout.vue b/lib/theme-default/Layout.vue index 2afccade..e4eddcbc 100644 --- a/lib/theme-default/Layout.vue +++ b/lib/theme-default/Layout.vue @@ -1,14 +1,34 @@ diff --git a/lib/theme-default/vitepress.png b/lib/theme-default/vitepress.png new file mode 100644 index 00000000..8cd6835f Binary files /dev/null and b/lib/theme-default/vitepress.png differ