Skip to content

Commit

Permalink
remove text ad (#1382)
Browse files Browse the repository at this point in the history
Co-authored-by: Evan You <[email protected]>
  • Loading branch information
jay-es and yyx990803 committed May 29, 2023
1 parent 0583d41 commit eacb785
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .vitepress/config.ts
Expand Up @@ -4,7 +4,7 @@ import { defineConfigWithTheme } from 'vitepress'
import type { Config as ThemeConfig } from '@vue/theme'
import baseConfig from '@vue/theme/config'
import { headerPlugin } from './headerMdPlugin'
import { textAdPlugin } from './textAdMdPlugin'
// import { textAdPlugin } from './textAdMdPlugin'

const nav: ThemeConfig['nav'] = [
{
Expand Down Expand Up @@ -712,7 +712,8 @@ export default defineConfigWithTheme<ThemeConfig>({

markdown: {
config(md) {
md.use(headerPlugin).use(textAdPlugin)
md.use(headerPlugin)
// .use(textAdPlugin)
}
},

Expand Down
4 changes: 2 additions & 2 deletions .vitepress/theme/index.ts
Expand Up @@ -10,7 +10,7 @@ import {
import SponsorsAside from './components/SponsorsAside.vue'
import VueSchoolLink from './components/VueSchoolLink.vue'
// import Banner from './components/Banner.vue'
import TextAd from './components/TextAd.vue'
// import TextAd from './components/TextAd.vue'

export default Object.assign({}, VPTheme, {
Layout: () => {
Expand All @@ -26,6 +26,6 @@ export default Object.assign({}, VPTheme, {
app.provide('prefer-sfc', preferSFC)
app.provide('filter-headers', filterHeadersByPreference)
app.component('VueSchoolLink', VueSchoolLink)
app.component('TextAd', TextAd)
// app.component('TextAd', TextAd)
}
})

1 comment on commit eacb785

@vercel
Copy link

@vercel vercel bot commented on eacb785 May 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.