chore: update docs links in init template

pull/2044/head
Evan You 2 years ago
parent fe07329bf9
commit 97de63562f

@ -1,11 +1,11 @@
import { defineConfig } from 'vitepress'
// https://vitepress.vuejs.org/config/app-config
// https://vitepress.vuejs.org/reference/site-config
export default defineConfig({
title: <%= title %>,
description: <%= description %><% if (defaultTheme) { %>,
themeConfig: {
// https://vitepress.vuejs.org/config/default-theme-config
// https://vitepress.vuejs.org/reference/default-theme-config
nav: [
{ text: 'Home', link: '/' },
{ text: 'Examples', link: '/markdown-examples' }

@ -1,7 +1,7 @@
<script setup<%= useTs ? ' lang="ts"' : '' %>>
import { useData } from 'vitepress'
// https://vitepress.vuejs.org/api/
// https://vitepress.vuejs.org/reference/runtime-api#usedata
const { site, frontmatter } = useData()
</script>

@ -1,10 +1,11 @@
// https://vitepress.vuejs.org/guide/custom-theme
<% if (!defaultTheme) { %>import Layout from './Layout.vue'
import './style.css'
export default {
Layout,
enhanceApp({ app, router, siteData }) {
// TODO link to app level customizatin
// ...
}
}
<% } else { %>import { h } from 'vue'
@ -15,10 +16,10 @@ export default {
...Theme,
Layout: () => {
return h(Theme.Layout, null, {
// TODO link to layout slots
// https://vitepress.vuejs.org/guide/extending-default-theme#layout-slots
})
},
enhanceApp({ app, router, siteData }) {
// TODO link to app level customizatin
// ...
}
}<% } %>

@ -52,4 +52,4 @@ const { site, theme, page, frontmatter } = useData()
## More
Check out the documentation for the [full list of runtime APIs](https://vitepress.vuejs.org/api/).
Check out the documentation for the [full list of runtime APIs](https://vitepress.vuejs.org/reference/runtime-api#usedata).

@ -1,4 +1,5 @@
<% if (defaultTheme) { %>---
# https://vitepress.vuejs.org/reference/default-theme-home-page
layout: home
hero:

Loading…
Cancel
Save