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

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

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

@ -52,4 +52,4 @@ const { site, theme, page, frontmatter } = useData()
## More ## 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) { %>--- <% if (defaultTheme) { %>---
# https://vitepress.vuejs.org/reference/default-theme-home-page
layout: home layout: home
hero: hero:

Loading…
Cancel
Save