Skip to content

Commit

Permalink
fix: blog config
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Mar 29, 2024
1 parent 8e6de09 commit 6e1406e
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import type {Config} from '@docusaurus/types'
import type {Options as BlogOptions} from '@docusaurus/plugin-content-blog'
import type * as Preset from '@docusaurus/preset-classic'

export default async function createConfigAsync() {
return {
Expand All @@ -19,28 +21,12 @@ export default async function createConfigAsync() {
myOtherFont: ['-apple-system', 'system-ui'],
},
repoUrl: 'https://github.com/oclif/oclif',
presets: [
[
'@docusaurus/preset-classic',
{
blog: {
feedOptions: {
type: 'all',
title: 'oclif.io Blog',
description: 'The oclif.io Blog Feed',
copyright: 'Copyright © 2023 Salesforce',
},
},
},
],
],
blogSidebarCount: 'ALL',
},
onBrokenLinks: 'log',
onBrokenMarkdownLinks: 'log',
presets: [
[
'@docusaurus/preset-classic',
'classic',
{
docs: {
showLastUpdateAuthor: true,
Expand All @@ -51,11 +37,21 @@ export default async function createConfigAsync() {
},
blog: {
path: 'blog',
},
blogSidebarCount: 'ALL',
blogTitle: 'oclif blog',
blogDescription: 'Read blog posts about oclif from the team',
blogSidebarTitle: 'All our posts',
feedOptions: {
type: 'all',
title: 'oclif.io Blog',
description: 'The oclif.io Blog Feed',
copyright: 'Copyright © 2023 Salesforce',
},
} satisfies BlogOptions,
theme: {
customCss: '../website/src/css/custom.css',
},
},
} satisfies Preset.Options,
],
],
plugins: [],
Expand Down Expand Up @@ -113,6 +109,6 @@ export default async function createConfigAsync() {
appId: 'Q04FC8Q6OZ',
contextualSearch: true,
},
},
} satisfies Preset.ThemeConfig,
} satisfies Config
}

0 comments on commit 6e1406e

Please sign in to comment.