From: Eduardo San Martin Morote Date: Thu, 3 Jul 2025 17:11:44 +0000 (+0200) Subject: docs: rulekit link X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dab31d4eb4b1e886e83fa25459d2fe42b12e9d4c;p=thirdparty%2Fvuejs%2Frouter.git docs: rulekit link --- diff --git a/packages/docs/.vitepress/theme/components/RuleKitLink.vue b/packages/docs/.vitepress/theme/components/RuleKitLink.vue new file mode 100644 index 00000000..dde1ac98 --- /dev/null +++ b/packages/docs/.vitepress/theme/components/RuleKitLink.vue @@ -0,0 +1,204 @@ + + + + + diff --git a/packages/docs/.vitepress/theme/index.ts b/packages/docs/.vitepress/theme/index.ts index 25da9d00..c2797c6b 100644 --- a/packages/docs/.vitepress/theme/index.ts +++ b/packages/docs/.vitepress/theme/index.ts @@ -8,6 +8,7 @@ import './styles/vars.css' import VueSchoolLink from './components/VueSchoolLink.vue' import VueMasteryLogoLink from './components/VueMasteryLogoLink.vue' import status from '../translation-status.json' +import RuleKitLink from './components/RuleKitLink.vue' const i18nLabels = { zh: '该翻译已同步到了 ${date} 的版本,其对应的 commit hash 是 ${hash}。', @@ -25,6 +26,7 @@ const theme: Theme = { enhanceApp({ app }) { app.component('VueSchoolLink', VueSchoolLink) + app.component('RuleKitLink', RuleKitLink) app.component('VueMasteryLogoLink', VueMasteryLogoLink) }, diff --git a/packages/docs/guide/index.md b/packages/docs/guide/index.md index 813ff64c..4399da53 100644 --- a/packages/docs/guide/index.md +++ b/packages/docs/guide/index.md @@ -14,6 +14,8 @@ Vue Router is built on Vue's component system. You configure **routes** to tell This guide will assume that you are already familiar with Vue itself. You don't need to be a Vue expert, but you may occasionally need to refer back to [the core Vue documentation](https://vuejs.org/) for more information about certain features. ::: + + ## An example To introduce some of the main ideas, we're going to consider this example: @@ -27,9 +29,7 @@ Let's start by looking at the root component, `App.vue`. ```vue