diff --git a/packages/docs/docs/config/README.md b/packages/docs/docs/config/README.md index 57a120399b..9f87f42b67 100644 --- a/packages/docs/docs/config/README.md +++ b/packages/docs/docs/config/README.md @@ -187,6 +187,10 @@ VuePress provides a convenient way to add extra styles. You can create a `.vuepr - [Why can’t `palette.styl` and `index.styl` merge into one API?](../faq/README.md#why-can-t-palette-styl-and-index-styl-merge-into-one-api) +::: warning +In both `palette.styl` and `index.styl`, the normal `.css` style sheets are not allowed to be imported by `@import` / `@require`. However, you’re still able to import styles from other Stylus style sheets. +::: + ## Theming ### theme @@ -321,7 +325,7 @@ This option is also included in [Plugin API](../plugin/option-api.md#extendmarkd - Default: `['h2', 'h3']` While preparing the page, headers are extracted from the Markdown file and stored in `this.$page.headers`. By default, VuePress will extract `h2` and `h3` elements for you. You can override the headers it pulls out in your `markdown` options. - + ``` js module.exports = { markdown: { diff --git a/packages/docs/docs/zh/config/README.md b/packages/docs/docs/zh/config/README.md index a7a14db401..9430f5ac49 100644 --- a/packages/docs/docs/zh/config/README.md +++ b/packages/docs/docs/zh/config/README.md @@ -179,6 +179,10 @@ VuePress 提供了一种添加额外样式的简便方法。你可以创建一 } ``` +::: warning +不论是在 `palette.styl` 或是 `index.styl` ,正常的 `.css` 样式表都不能被透过 `@import` / `@require` 引用。不过你仍然可以透过其他 Stylus 样式表引入样式。 +::: + ## 主题 ### theme @@ -313,7 +317,7 @@ module.exports = { - 默认值: `['h2', 'h3']` Markdown 文件的 headers (标题 & 小标题) 会在准备阶段被提取出来,并存储在 `this.$page.headers` 中。默认情况下,VuePress 会提取 `h2` 和 `h3` 标题。你可以通过这个选项来修改提取出的标题级别。 - + ``` js module.exports = { markdown: {