Skip to content

Commit

Permalink
docs: remove old components
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed May 31, 2021
1 parent 401f5d4 commit 68eed2a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 275 deletions.
6 changes: 2 additions & 4 deletions docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ const config = {
},
{
text: 'Changelog',
link:
'https://github.com/vuejs/vue-router-next/blob/master/CHANGELOG.md',
link: 'https://github.com/vuejs/vue-router-next/blob/master/CHANGELOG.md',
},
],

Expand Down Expand Up @@ -199,8 +198,7 @@ const config = {
},
{
text: '更新日志',
link:
'https://github.com/vuejs/vue-router-next/blob/master/CHANGELOG.md',
link: 'https://github.com/vuejs/vue-router-next/blob/master/CHANGELOG.md',
},
],

Expand Down
25 changes: 4 additions & 21 deletions docs/.vitepress/theme/Layout.vue
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
<template>
<ParentLayout>
<template #page-top-ads><span /></template>
<template #page-top>
<CarbonAds
v-if="$site.themeConfig.carbonAds"
:key="'carbon' + $page.relativePath"
:code="$site.themeConfig.carbonAds.carbon"
:placement="$site.themeConfig.carbonAds.placement"
/>
</template>
<template #page-bottom>
<BuySellAds
v-if="$site.themeConfig.carbonAds"
:key="'custom' + $page.relativePath"
:code="$site.themeConfig.carbonAds.custom"
:placement="$site.themeConfig.carbonAds.placement"
/>
</template>
<template #sidebar-bottom>
<div class="sponsors">
<a
Expand All @@ -42,17 +25,13 @@

<script>
import DefaultTheme from 'vitepress/dist/client/theme-default'
import CarbonAds from './components/CarbonAds.vue'
import BuySellAds from './components/BuySellAds.vue'
import sponsors from '../components/sponsors.json'
export default {
name: 'Layout',
components: {
ParentLayout: DefaultTheme.Layout,
CarbonAds,
BuySellAds,
},
setup() {
Expand All @@ -62,6 +41,10 @@ export default {
</script>

<style>
td code {
white-space: nowrap;
}
form {
margin-block-end: 0;
}
Expand Down
124 changes: 0 additions & 124 deletions docs/.vitepress/theme/components/BuySellAds.vue

This file was deleted.

122 changes: 0 additions & 122 deletions docs/.vitepress/theme/components/CarbonAds.vue

This file was deleted.

10 changes: 6 additions & 4 deletions docs/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,10 @@ addRoute(parentName: string | symbol, route: RouteRecordRaw): () => void

_Parameters_

| Parameter | Type | Description |
| ---------- | ----------------------------------- | ------------------- |
| parentName | `string | symbol` | Parent Route Record where `route` should be appended at |
| route | [`RouteRecordRaw`](#routerecordraw) | Route Record to add |
| Parameter | Type | Description |
| ---------- | ----------------------------------- | ------------------------------------------------------- |
| parentName | `string \| symbol` | Parent Route Record where `route` should be appended at |
| route | [`RouteRecordRaw`](#routerecordraw) | Route Record to add |

### addRoute

Expand Down Expand Up @@ -861,12 +861,14 @@ Route record that can be provided by the user when adding routes via the [`route
If you want to use a functional component, make sure to add a `displayName` to it.

For example:

```js
const HomeView = () => h('div', 'HomePage')
// in TypeScript, you will need to use the FunctionalComponent type
HomeView.displayName = 'HomeView'
const routes = [{ path: '/', component: HomeView }]
```

:::

## RouteRecordNormalized
Expand Down

0 comments on commit 68eed2a

Please sign in to comment.