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: docs/content/en/2.concepts/5.customization.md
+58-6Lines changed: 58 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ You can customize different parts of the header by overriding the following comp
18
18
19
19
To replace the default logo in the header, create the `components/AppHeaderLogo.vue` file. Your component will replace the default one provided by Docus theme.
20
20
21
-
{.rounded-lg.border.border-accented}
21
+
{.rounded-lg.border.border-accented.w-full}
22
22
23
23
::u-button
24
24
---
@@ -34,7 +34,7 @@ Default component code
34
34
35
35
To customize the call-to-action area in the header (for example, adding a “Get Started” button or external link), override the `components/AppHeaderCTA.vue` component.
@@ -47,7 +47,7 @@ By default this components is empty but you can have a look at how we're overrid
47
47
48
48
To customize the center area in the header, override the `components/AppHeaderCenter.vue` component. Your component will replace the search bar provided by Docus theme.
49
49
50
-
{.rounded-lg.border.border-accented}
50
+
{.rounded-lg.border.border-accented.w-full}
51
51
52
52
::u-button
53
53
---
@@ -75,6 +75,42 @@ variant: link
75
75
Default component code
76
76
::
77
77
78
+
## App Footer
79
+
80
+
You can customize different parts of the footer by overriding the following components:
81
+
82
+
### `AppFooterLeft`
83
+
84
+
To replace the left side of the header, create the `components/AppFooterLeft.vue` file. Your component will replace the default one provided by Docus theme.
85
+
86
+
{.rounded-lg.border.border-accented.w-full}
87
+
88
+
::u-button
89
+
---
90
+
color: neutral
91
+
icon: i-lucide-code-xml
92
+
to: https://github.com/nuxtlabs/docus/blob/main/layer/app/components/app/AppFooterLeft.vue
93
+
variant: link
94
+
---
95
+
Default component code
96
+
::
97
+
98
+
### `AppFooterRight`
99
+
100
+
To replace the right side of the footer, create the `components/AppFooterRight.vue` file. Your component will replace the default one provided by Docus theme.
101
+
102
+
{.rounded-lg.border.border-accented.w-full}
103
+
104
+
::u-button
105
+
---
106
+
color: neutral
107
+
icon: i-lucide-code-xml
108
+
to: https://github.com/nuxtlabs/docus/blob/main/layer/app/components/app/AppFooterRight.vue
109
+
variant: link
110
+
---
111
+
Default component code
112
+
::
113
+
78
114
## Docs
79
115
80
116
You can also customize header and both asides of the documentation pages.
@@ -89,7 +125,7 @@ In the header right side of your documentation page, Docus default behaviour is
89
125
90
126
These actions are especially useful for contributors, readers, or AI-assisted workflows but you can create your own `components/DocsPageHeaderLinks.vue` component to override it.
To customize bottom part of the right aside of the documentation pages. You can create the`components/DocsAsideRightBottom.vue` component. Your component will replace the default bottom table of content provided by Docus theme.
107
143
108
-
{.rounded-lg.border.border-accented}
144
+
{.rounded-lg.border.border-accented.w-full}
109
145
110
146
::u-button
111
147
---
@@ -121,11 +157,27 @@ Default component code
121
157
122
158
To customize top part of the left aside of the documentation pages. You can create the`components/DocsAsideLeftTop.vue` component.
123
159
124
-
{.rounded-lg.border.border-accented}
160
+
{.rounded-lg.border.border-accented.w-full}
125
161
126
162
::prose-note
127
163
---
128
164
to: https://github.com/nuxt/image/blob/main/docs/app/components/DocsAsideLeftTop.vue
129
165
---
130
166
By default this components is empty but you can have a look at how we're overriding it on Nuxt Image documentation itself.
131
167
::
168
+
169
+
### `DocsAsideLeftBody`
170
+
171
+
To customize main part of the left aside of the documentation pages. You can create the`components/DocsAsideLeftTop.vue` component. Your component will replace the default file navigation provided by Docus theme.
172
+
173
+
{.rounded-lg.border.border-accented.w-full}
174
+
175
+
::u-button
176
+
---
177
+
color: neutral
178
+
icon: i-lucide-code-xml
179
+
to: https://github.com/nuxtlabs/docus/blob/main/layer/app/components/docs/DocsAsideLeftBody.vue
0 commit comments