Add new Starlight-GhostCMS plugin #66

Merged
Adammatthiesen merged 14 commits from starlight-ghostcms into main 2024-02-20 12:37:24 +00:00
2 changed files with 3 additions and 8 deletions
Showing only changes of commit 8be237e3cc - Show all commits

View File

@ -15,9 +15,9 @@ export default function starlightGhostCMS(userConfig?: StarlightGhostConfig): St
updateStarlightConfig({
components: {
...starlightConfig.components,
//...overrideStarlightComponent(starlightConfig.components, logger, 'MarkdownContent'),
//...overrideStarlightComponent(starlightConfig.components, logger, 'Sidebar'),
//...overrideStarlightComponent(starlightConfig.components, logger, "SiteTitle"),
...overrideStarlightComponent(starlightConfig.components, logger, 'MarkdownContent'),
...overrideStarlightComponent(starlightConfig.components, logger, 'Sidebar'),
...overrideStarlightComponent(starlightConfig.components, logger, "SiteTitle"),
}
})

View File

@ -8,11 +8,6 @@ export default defineConfig({
starlight({
title: 'My Docs',
plugins: [starlightGhostCMS()],
components: {
Sidebar: '@matthiesenxyz/starlight-ghostcms/overrides/Sidebar.astro',
MarkdownContent: '@matthiesenxyz/starlight-ghostcms/overrides/MarkdownContent.astro',
SiteTitle: '@matthiesenxyz/starlight-ghostcms/overrides/SiteTitle.astro'
},
social: {
github: 'https://github.com/withastro/starlight',
},