You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/docs/docs/theme/option-api.md
+23-1
Original file line number
Diff line number
Diff line change
@@ -9,4 +9,26 @@ seoTitle: Option API | Theme
9
9
- Type: `Array|Object`
10
10
- Default: undefined
11
11
12
-
See: [Plugin > Using a plugin](../plugin/using-a-plugin.md).
12
+
**Also see:**
13
+
14
+
-[Plugin > Using a plugin](../plugin/using-a-plugin.md).
15
+
16
+
## extend
17
+
18
+
- Type: `String`
19
+
- Default: undefined
20
+
21
+
```js
22
+
module.exports= {
23
+
extend:'@vuepress/theme-default'
24
+
}
25
+
```
26
+
27
+
VuePress supports a theme to be inherited from another theme. VuePress will follow the principle of `override` to automatically help you resolve the priorities of various theme attributes, such as styles, layout components.
28
+
29
+
Note that in the child theme, VuePress will apply a `@parent-theme`[alias](../plugin/option-api.md#alias) pointing to the package directory of parent theme.
0 commit comments