fix: vitepress styles reset moved to examples

This commit is contained in:
victor
2022-12-18 14:46:09 +04:00
parent 458cece0c3
commit e3fb92cb56
5 changed files with 12 additions and 24 deletions

View File

@@ -11,23 +11,17 @@ function buildSidebar() {
{
text: 'Components',
collapsible: true,
items: [
...getComponents(),
],
items: [...getComponents()],
},
{
text: 'Form',
collapsible: true,
items: [
...getFormComponents(),
],
items: [...getFormComponents()],
},
{
text: 'Utils',
collapsible: true,
items: [
...getUtils(),
],
items: [...getUtils()],
},
]
}
@@ -59,20 +53,17 @@ function getComponents() {
{ text: '- Pagination', link: 'components/pagination' },
{ text: '- Sidebar', link: 'components/sidebar' },
{ text: '- Table', link: 'components/table' },
{ text: 'Timeline', link: 'components/timeline' },
]
}
function getFormComponents() {
return [
{ text: 'Input', link: 'components/input' },
]
return [{ text: 'Input', link: 'components/input' }]
}
function getUtils() {
return [
{ text: 'Flowbite Themable', link: '/components/flowbiteThemable/flowbiteThemable.md' },
{ text: 'Toast Provider', link: '/components/toastProvider/toastProvider.md' }
{ text: 'Toast Provider', link: '/components/toastProvider/toastProvider.md' },
]
}
@@ -83,21 +74,18 @@ function getUtils() {
export default defineConfig({
title: 'Flowbite Vue 3',
cleanUrls: 'without-subfolders',
head: [
['link', { rel: "icon", type: "image/svg", href: "/assets/logo.svg"}],
],
head: [['link', { rel: 'icon', type: 'image/svg', href: '/assets/logo.svg' }]],
themeConfig: {
sidebar: buildSidebar(),
logo: '/assets/logo.svg',
socialLinks: [
{ icon: 'github', link: 'https://github.com/themesberg/flowbite-vue' },
{ icon: 'discord', link: 'https://discord.gg/4eeurUVvTy' }
{ icon: 'discord', link: 'https://discord.gg/4eeurUVvTy' },
],
footer: {
message: 'Released under the MIT License.',
copyright: 'Copyright © 2022 Flowbite™'
copyright: 'Copyright © 2022 Flowbite™',
},
},
})