From: Eduardo San Martin Morote Date: Thu, 3 Jul 2025 18:04:16 +0000 (+0200) Subject: docs: add links X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=inline;p=thirdparty%2Fvuejs%2Frouter.git docs: add links --- diff --git a/packages/docs/.vitepress/theme/styles/home-links.css b/packages/docs/.vitepress/theme/styles/home-links.css index 87cdb063..de0ef475 100644 --- a/packages/docs/.vitepress/theme/styles/home-links.css +++ b/packages/docs/.vitepress/theme/styles/home-links.css @@ -52,6 +52,28 @@ a.cta.vueschool::after { border-left: 7px solid currentColor; } +a.cta.rulekit { + font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; +} + +a.cta.rulekit::before { + content: ''; + display: inline-block; + width: 16px; + height: 16px; + background-image: url('/rulekit-logo.svg'); + background-size: 16px; + background-repeat: no-repeat; + background-position: center; + margin-right: 0.5em; + vertical-align: middle; + filter: brightness(0); /* Make it black by default */ +} + +html.dark a.cta.rulekit::before { + filter: brightness(0) invert(1); /* Make it white in dark mode */ +} + @media (max-width: 420px) { a.cta.cta.vue-mastery { max-width: 320px; diff --git a/packages/docs/guide/advanced/composition-api.md b/packages/docs/guide/advanced/composition-api.md index 26e84d1d..44e25251 100644 --- a/packages/docs/guide/advanced/composition-api.md +++ b/packages/docs/guide/advanced/composition-api.md @@ -32,6 +32,8 @@ function pushWithQuery(query) { The `route` object is a reactive object. In most scenarios, you should **avoid watching the whole `route`** object. Instead, you can directly watch the properties you are expecting to change: + + ```vue