Skip to content

Commit 1dc80d3

Browse files
committed
docs: update examples
1 parent f6b3831 commit 1dc80d3

File tree

4 files changed

+340
-25
lines changed

4 files changed

+340
-25
lines changed

packages/docs/.vuepress/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
cilContrast,
2222
cilHandshake,
2323
cilInfo,
24+
cilLayers,
2425
cilMenu,
2526
cilMoon,
2627
cilOptions,
@@ -49,6 +50,7 @@ export const icons = {
4950
cilContrast,
5051
cilHandshake,
5152
cilInfo,
53+
cilLayers,
5254
cilMenu,
5355
cilMoon,
5456
cilOptions,

packages/docs/.vuepress/config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@ export default defineUserConfig({
6666
}
6767
},
6868
}),
69+
containerPlugin({
70+
type: 'demo-bg-secondary',
71+
render: function (tokens, idx) {
72+
if (tokens[idx].nesting === 1) {
73+
return '<div class="docs-example rounded-top p-0 bg-body-secondary overflow-hidden">\n'
74+
} else {
75+
return '</div>\n'
76+
}
77+
},
78+
}),
6979
tocPlugin({}),
7080
registerComponentsPlugin({
7181
components: {

packages/docs/.vuepress/theme-coreui/src/client/styles/_component-examples.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,16 @@
110110
margin-bottom: 0;
111111
}
112112

113+
// Sidebar
114+
.sidebar-narrow,
115+
.sidebar-narrow-unfoldable {
116+
position: static;
117+
}
118+
119+
.sidebar-narrow-unfoldable {
120+
min-height: 550px;
121+
}
122+
113123
// Spinners
114124
> .spinner-grow + .spinner-border,
115125
> .spinner-border + .spinner-grow,

0 commit comments

Comments
 (0)