Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update docusaurus.config.js #974

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
156 changes: 12 additions & 144 deletions blog-website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ const config = {
tags: 'tags.yml',
onInlineAuthors: 'ignore',
onInlineTags: 'throw',
onUntruncatedBlogPosts: 'ignore',
postsPerPage: 20,
path: './blog',
routeBasePath: '/', // Set this value to '/'.
Expand Down Expand Up @@ -613,6 +614,16 @@ const config = {
href: '/azure-container-apps-easy-auth-and-dotnet-authentication',
label: 'Azure Container Apps: Easy Auth and .NET',
},
{
href: '/introducing-azdo-npm-auth',
label:
'Introducing azdo-npm-auth (Azure DevOps npm auth)',
},
{
href: '/npx-and-azure-artifacts-the-secret-cli-delivery-mechanism',
label:
'npx and Azure Artifacts: the secret CLI delivery mechanism',
},
{
href: '/azure-static-web-apps-dynamic-redirects-azure-functions',
label:
Expand All @@ -628,147 +639,4 @@ const config = {
},
links: [
{
href: '/eslint-your-csharp-in-vs-code-with-roslyn-analyzers',
label: 'ESLint your C# with Roslyn Analyzers',
},
{
href: '/aspnet-serilog-and-application-insights',
label: 'ASP.NET, Serilog and Application Insights',
},
],
}),
makeFooterColumnWithMultipleTitles({
title: {
label: 'React',
href: '/tags/react',
icon: '/img/react-logo.svg',
},
links: [
{
href: '/structured-data-seo-and-react',
label: 'Structured data and React',
},
{
href: '/react-usesearchparamsstate',
label:
'React: storing state in URL with URLSearchParams',
},
],
}),
].join(''),
},
],
},
{
items: [
{
html: [
makeFooterColumnWithMultipleTitles({
title: { label: 'Notable articles', href: '' },
links: [
{
href: '/definitely-typed-the-movie',
label: 'The history of Definitely Typed',
icon: '/img/definitely-typed-logo.png',
},
{
href: '/typescript-documentary',
label: 'TypeScript: the documentary',
icon: '/img/ts-logo-128.svg',
},
{
href: '/definitive-guide-to-migrating-from-blogger-to-docusaurus',
label:
'The definitive guide to migrating from Blogger to Docusaurus',
icon: '/img/docusaurus-logo.svg',
},
{
href: '/how-we-fixed-my-seo',
label: 'How we fixed my SEO',
},
],
}),

makeFooterColumnWithMultipleTitles({
title: { label: 'Popular articles', href: '' },
links: [
{
href: '/aspnet-serilog-and-application-insights',
label: 'ASP.NET, Serilog and Application Insights',
},
{
href: '/eslint-your-csharp-in-vs-code-with-roslyn-analyzers',
label: 'ESLint your C# with Roslyn Analyzers',
},
{
href: '/prettier-your-csharp-with-dotnet-format-and-lint-staged',
label:
'dotnet-format: Prettier your C# with lint-staged & husky',
},
],
}),

makeFooterColumnWithMultipleTitles({
title: { label: 'Recently updated', href: '' },
links: recentlyUpdatedPostsJson.map((post) => ({
href: post.link,
label: post.title,
})),
}),
].join(''),
},
],
},
{
title: 'Learn more / support me',
items: [
{
label: 'Blog source code on GitHub',
href: 'https://github.com/johnnyreilly/blog.johnnyreilly.com',
},
{
label: 'Blog categories',
href: '/tags',
},
{
label: 'RSS feed',
href: 'https://johnnyreilly.com/rss.xml',
},
{
label: 'Atom feed',
href: 'https://johnnyreilly.com/atom.xml',
},
{
label: 'Privacy Policy',
href: '/privacy-policy',
},
{
html: `<iframe src="https://github.com/sponsors/johnnyreilly/card" title="Sponsor johnnyreilly" style="margin-top: 20px; border: 0; border-radius: 10px; background-color: white; min-height: 400px;"></iframe>`,
},
{
html: `<a href="https://www.buymeacoffee.com/qUBm0Wh" rel="noopener" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" loading="lazy" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>`,
},
],
},
],
copyright: `Copyright © 2012 - ${new Date().getFullYear()} John Reilly. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.shadesOfPurple,
darkTheme: prismThemes.nightOwl,
additionalLanguages: [
'powershell',
'csharp',
'docker',
'bicep',
'diff',
'bash',
'json',
'yaml',
'go',
],
},
}),
};

export default config;
href: '/eslint-your-csharp-in-vs-code-wi
Loading