mirror of https://github.com/vuejs/vitepress
parent
24735dbcde
commit
da1691d77e
@ -1,34 +1,4 @@
|
|||||||
import './styles/fonts.css'
|
import './styles/fonts.css'
|
||||||
import './styles/vars.css'
|
|
||||||
import './styles/base.css'
|
|
||||||
import './styles/utils.css'
|
|
||||||
import './styles/components/custom-block.css'
|
|
||||||
import './styles/components/vp-code.css'
|
|
||||||
import './styles/components/vp-code-group.css'
|
|
||||||
import './styles/components/vp-doc.css'
|
|
||||||
import './styles/components/vp-sponsor.css'
|
|
||||||
|
|
||||||
import type { Theme } from 'vitepress'
|
|
||||||
import VPBadge from './components/VPBadge.vue'
|
|
||||||
import Layout from './Layout.vue'
|
|
||||||
|
|
||||||
// Note: if we add more optional components here, i.e. components that are not
|
|
||||||
// used in the theme by default unless the user imports them, make sure to update
|
|
||||||
// the `lazyDefaultThemeComponentsRE` regex in src/node/build/bundle.ts.
|
|
||||||
export { default as VPHomeHero } from './components/VPHomeHero.vue'
|
|
||||||
export { default as VPHomeFeatures } from './components/VPHomeFeatures.vue'
|
|
||||||
export { default as VPHomeSponsors } from './components/VPHomeSponsors.vue'
|
|
||||||
export { default as VPDocAsideSponsors } from './components/VPDocAsideSponsors.vue'
|
|
||||||
export { default as VPTeamPage } from './components/VPTeamPage.vue'
|
|
||||||
export { default as VPTeamPageTitle } from './components/VPTeamPageTitle.vue'
|
|
||||||
export { default as VPTeamPageSection } from './components/VPTeamPageSection.vue'
|
|
||||||
export { default as VPTeamMembers } from './components/VPTeamMembers.vue'
|
|
||||||
|
|
||||||
const theme: Theme = {
|
|
||||||
Layout,
|
|
||||||
enhanceApp: ({ app }) => {
|
|
||||||
app.component('Badge', VPBadge)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
import theme from './without-fonts.js'
|
||||||
export default theme
|
export default theme
|
||||||
|
@ -0,0 +1,33 @@
|
|||||||
|
import './styles/vars.css'
|
||||||
|
import './styles/base.css'
|
||||||
|
import './styles/utils.css'
|
||||||
|
import './styles/components/custom-block.css'
|
||||||
|
import './styles/components/vp-code.css'
|
||||||
|
import './styles/components/vp-code-group.css'
|
||||||
|
import './styles/components/vp-doc.css'
|
||||||
|
import './styles/components/vp-sponsor.css'
|
||||||
|
|
||||||
|
import type { Theme } from 'vitepress'
|
||||||
|
import VPBadge from './components/VPBadge.vue'
|
||||||
|
import Layout from './Layout.vue'
|
||||||
|
|
||||||
|
// Note: if we add more optional components here, i.e. components that are not
|
||||||
|
// used in the theme by default unless the user imports them, make sure to update
|
||||||
|
// the `lazyDefaultThemeComponentsRE` regex in src/node/build/bundle.ts.
|
||||||
|
export { default as VPHomeHero } from './components/VPHomeHero.vue'
|
||||||
|
export { default as VPHomeFeatures } from './components/VPHomeFeatures.vue'
|
||||||
|
export { default as VPHomeSponsors } from './components/VPHomeSponsors.vue'
|
||||||
|
export { default as VPDocAsideSponsors } from './components/VPDocAsideSponsors.vue'
|
||||||
|
export { default as VPTeamPage } from './components/VPTeamPage.vue'
|
||||||
|
export { default as VPTeamPageTitle } from './components/VPTeamPageTitle.vue'
|
||||||
|
export { default as VPTeamPageSection } from './components/VPTeamPageSection.vue'
|
||||||
|
export { default as VPTeamMembers } from './components/VPTeamMembers.vue'
|
||||||
|
|
||||||
|
const theme: Theme = {
|
||||||
|
Layout,
|
||||||
|
enhanceApp: ({ app }) => {
|
||||||
|
app.component('Badge', VPBadge)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default theme
|
Loading…
Reference in new issue