diff --git a/template/.vitepress/config.js b/template/.vitepress/config.js index 6708ddbf..1f00cccb 100644 --- a/template/.vitepress/config.js +++ b/template/.vitepress/config.js @@ -1,11 +1,7 @@ -<% if (useTs) { %>import { defineConfig } from 'vitepress' +import { defineConfig } from 'vitepress' // https://vitepress.vuejs.org/config/app-config -export default defineConfig(<% } else { %>/** - * @type {import('vitepress').UserConfig} - * https://vitepress.vuejs.org/config/app-config - */ -const config = <% } %>{ +export default defineConfig({ title: <%= title %>, description: <%= description %><% if (defaultTheme) { %>, themeConfig: { @@ -29,6 +25,4 @@ const config = <% } %>{ { icon: 'github', link: 'https://github.com/vuejs/vitepress' } ] }<% } %> -}<% if (useTs) { %>)<% } else { %> - -export default config<% } %> +}) diff --git a/template/.vitepress/config.ts b/template/.vitepress/config.ts deleted file mode 100644 index 1f00cccb..00000000 --- a/template/.vitepress/config.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defineConfig } from 'vitepress' - -// https://vitepress.vuejs.org/config/app-config -export default defineConfig({ - title: <%= title %>, - description: <%= description %><% if (defaultTheme) { %>, - themeConfig: { - // https://vitepress.vuejs.org/config/default-theme-config - nav: [ - { text: 'Home', link: '/' }, - { text: 'Examples', link: '/markdown-examples' } - ], - - sidebar: [ - { - text: 'Examples', - items: [ - { text: 'Markdown Examples', link: '/markdown-examples' }, - { text: 'Runtime API Examples', link: '/api-examples' } - ] - } - ], - - socialLinks: [ - { icon: 'github', link: 'https://github.com/vuejs/vitepress' } - ] - }<% } %> -})