@@ -20,10 +20,13 @@ The essential file for configuring a VuePress site is `.vuepress/config.js`, whi
20
20
21
21
``` js
22
22
module .exports = {
23
+ // site config
23
24
lang: ' en-US' ,
24
25
title: ' Hello, VuePress!' ,
25
26
description: ' This is my first VuePress site' ,
26
27
28
+ // theme and its config
29
+ theme: ' @vuepress/theme-default' ,
27
30
themeConfig: {
28
31
logo: ' https://vuejs.org/images/logo.png' ,
29
32
},
@@ -39,10 +42,13 @@ import { defineUserConfig } from 'vuepress'
39
42
import type { DefaultThemeOptions } from ' vuepress'
40
43
41
44
export default defineUserConfig <DefaultThemeOptions >({
45
+ // site config
42
46
lang: ' en-US' ,
43
47
title: ' Hello VuePress' ,
44
48
description: ' Just playing around' ,
45
49
50
+ // theme and its config
51
+ theme: ' @vuepress/theme-default' ,
46
52
themeConfig: {
47
53
logo: ' https://vuejs.org/images/logo.png' ,
48
54
},
@@ -53,12 +59,12 @@ export default defineUserConfig<DefaultThemeOptions>({
53
59
</CodeGroup >
54
60
55
61
::: tip
56
- We will refer the config object as ** VuePress Config ** .
62
+ Check out the [ Config Reference ] ( ../reference/ config.md ) for a full list of VuePress config .
57
63
:::
58
64
59
65
## Config Scopes
60
66
61
- You may have noticed that there is a ` themeConfig ` option in VuePress Config .
67
+ You may have noticed that there is a ` themeConfig ` option in VuePress config .
62
68
63
69
Options outside ` themeConfig ` are ** Site Config** , while options inside ` themeConfig ` are ** Theme Config** .
64
70
@@ -68,15 +74,11 @@ Site config means that, no matter what theme you are using, these configurations
68
74
69
75
As we know, every site should have its own ` lang ` , ` title ` , ` description ` , etc. Thus, VuePress has built-in support for those options.
70
76
71
- ::: tip
72
- Check out the [ Config Reference] ( ../reference/config.md ) for a full list of site config.
73
- :::
74
-
75
77
### Theme Config
76
78
77
79
Theme config will be processed by VuePress theme, so it depends on the theme you are using.
78
80
79
- If you don't specify the ` theme ` option of VuePress Config , the default theme will be used.
81
+ If you don't specify the ` theme ` option of VuePress config , the default theme will be used.
80
82
81
83
::: tip
82
84
Check out the [ Default Theme > Config Reference] ( ../reference/default-theme/config.md ) for theme config of default theme.
0 commit comments