Skip to content

Commit

Permalink
docs: fix index.md to avoid horizontal scrolling in code (#2129)
Browse files Browse the repository at this point in the history
* Fix: index.md - split comment to avoid horizontal scrolling

* docs: fix index.md to avoid horizontal scrolling
  • Loading branch information
leoelz committed Feb 13, 2024
1 parent 531313e commit 2e1ad5d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/docs/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ Creating a Single-page Application with Vue + Vue Router feels natural: with Vue
<p>
<!-- use the router-link component for navigation. -->
<!-- specify the link by passing the `to` prop. -->
<!-- `<router-link>` will render an `<a>` tag with the correct `href` attribute -->
<!-- `<router-link>` will render an `<a>` tag with -->
<!-- the correct `href` attribute -->
<router-link to="/">Go to Home</router-link>
<router-link to="/about">Go to About</router-link>
</p>
Expand Down Expand Up @@ -57,7 +58,8 @@ const routes = [
// You can pass in additional options here, but let's
// keep it simple for now.
const router = VueRouter.createRouter({
// 4. Provide the history implementation to use. We are using the hash history for simplicity here.
// 4. Provide the history implementation to use. We
// are using the hash history for simplicity here.
history: VueRouter.createWebHashHistory(),
routes, // short for `routes: routes`
})
Expand Down

0 comments on commit 2e1ad5d

Please sign in to comment.