Skip to content

Commit 4351715

Browse files
committed
docs: warn of styling config restriction
1 parent 4bdca1c commit 4351715

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/docs/docs/config/README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,13 @@ VuePress provides a convenient way to add extra styles. You can create a `.vuepr
187187

188188
- [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)
189189

190+
::: warning
191+
During the process, both `palette.styl` and `index.styl` will be imported by temp files in temporary directory for client. Therefore, the the normal `.css` style sheets cannot be resolve with relative path.
192+
193+
However, you’re able to import/require other Stylus style sheets. They’re not under the restriction.
194+
195+
:::
196+
190197
## Theming
191198

192199
### theme
@@ -321,7 +328,7 @@ This option is also included in [Plugin API](../plugin/option-api.md#extendmarkd
321328
- Default: `['h2', 'h3']`
322329

323330
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.
324-
331+
325332
``` js
326333
module.exports = {
327334
markdown: {

0 commit comments

Comments
 (0)