Skip to content

Commit

Permalink
up to 1.0.0-rc.25
Browse files Browse the repository at this point in the history
  • Loading branch information
vanchKong committed Nov 15, 2023
1 parent d3cc9d8 commit 1e0105d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
4 changes: 4 additions & 0 deletions docs/guide/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,3 +286,7 @@ Cache-Control: max-age=31536000,immutable
### Edgio

请参阅[创建并部署 VitePress 应用程序到 Edgio](https://docs.edg.io/guides/vitepress)。

### Kinsta 静态站点托管 {#kinsta-static-site-hosting}

你可以按照这些 [说明](https://kinsta.com/docs/vitepress-static-site-example/) 在 [Kinsta](https://kinsta.com/static-site-hosting/) 上部署你的 Vitepress 网站。
10 changes: 5 additions & 5 deletions docs/guide/extending-default-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ import DefaultTheme from 'vitepress/theme'
/** @type {import('vitepress').Theme} */
export default {
extends: DefaultTheme,
enhanceApp(ctx) {
enhanceApp({ app }) {
// register your custom global components
ctx.app.component('MyGlobalComponent' /* ... */)
app.component('MyGlobalComponent' /* ... */)
},
}
```
Expand All @@ -119,7 +119,7 @@ export default {
extends: DefaultTheme,
async enhanceApp({ app }) {
// register your custom global components
ctx.app.component('MyGlobalComponent' /* ... */)
app.component('MyGlobalComponent' /* ... */)
},
} satisfies Theme
```
Expand All @@ -136,7 +136,7 @@ import DefaultTheme from 'vitepress/theme'
import MyLayout from './MyLayout.vue'

export default {
...DefaultTheme,
extends: DefaultTheme,
// override the Layout with a wrapper component that
// injects the slots
Layout: MyLayout,
Expand Down Expand Up @@ -167,7 +167,7 @@ import DefaultTheme from 'vitepress/theme'
import MyComponent from './MyComponent.vue'

export default {
...DefaultTheme,
extends: DefaultTheme,
Layout() {
return h(DefaultTheme.Layout, null, {
'aside-outline-before': () => h(MyComponent),
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/i18n.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ docs/
import DefaultTheme from 'vitepress/theme'

export default {
...DefaultTheme,
extends: DefaultTheme,
setup() {
const { lang } = useData()
watchEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/default-theme-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default defineConfig({
})
```

[MiniSearch docs](https://lucaong.github.io/minisearch/classes/_minisearch_.minisearch.html)了解更多信息。
[MiniSearch docs](https://lucaong.github.io/minisearch/classes/MiniSearch.MiniSearch.html)了解更多信息。

### 自定义渲染内容 {#custom-content-renderer}

Expand Down
8 changes: 4 additions & 4 deletions docs/reference/site-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ interface MarkdownOptions extends MarkdownIt.Options {

// Add support for your own languages.
// https://github.com/shikijs/shiki/blob/main/docs/languages.md#supporting-your-own-languages-with-shiki
languages?: Shiki.ILanguageRegistration
languages?: Shiki.ILanguageRegistration[]

// markdown-it-anchor plugin options.
// See: https://github.com/valeriangalliat/markdown-it-anchor#usage
Expand All @@ -498,7 +498,7 @@ interface MarkdownOptions extends MarkdownIt.Options {
attrs?: {
leftDelimiter?: string
rightDelimiter?: string
allowedAttributes?: string[]
allowedAttributes?: Array<string | RegExp>
disable?: boolean
}

Expand All @@ -511,7 +511,7 @@ interface MarkdownOptions extends MarkdownIt.Options {

// @mdit-vue/plugin-headers plugin options.
// See: https://github.com/mdit-vue/mdit-vue/tree/main/packages/plugin-headers#options
headers?: HeadersPluginOptions
headers?: HeadersPluginOptions | boolean

// @mdit-vue/plugin-sfc plugin options.
// See: https://github.com/mdit-vue/mdit-vue/tree/main/packages/plugin-sfc#options
Expand All @@ -538,7 +538,7 @@ interface MarkdownOptions extends MarkdownIt.Options {
// You need to install `markdown-it-mathjax3` and set `math` to `true` to enable it.
// You can also pass options to `markdown-it-mathjax3` here.
// See: https://github.com/tani/markdown-it-mathjax3#customization
math?: any
math?: boolean | any

// Global custom container titles
container?: {
Expand Down

0 comments on commit 1e0105d

Please sign in to comment.