From 9b777bd06eb246eaa6ada8a2c260e19403d77741 Mon Sep 17 00:00:00 2001 From: Viren070 Date: Sat, 12 Oct 2024 13:22:06 +0100 Subject: [PATCH] feat(docusaurus.config): add footer links, throw on broken anchors, and remove redundant options --- docusaurus.config.ts | 39 ++++++++++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index eaddcbf..3bef298 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -13,14 +13,10 @@ const config: Config = { // For GitHub pages deployment, it is often '//' baseUrl: '/', - // GitHub pages deployment config. - // If you aren't using GitHub pages, you don't need these. - organizationName: 'Viren070', // Usually your GitHub org/user name. - projectName: 'guides', // Usually your repo name. - deploymentBranch: 'gh-pages', trailingSlash: false, onBrokenLinks: 'throw', - onBrokenMarkdownLinks: 'warn', + onBrokenMarkdownLinks: 'throw', + onBrokenAnchors: 'throw', // Even if you don't use internationalization, you can use this field to set // useful metadata like html lang. For example, if your site is Chinese, you @@ -85,14 +81,35 @@ const config: Config = { style: 'dark', links: [ { - title: 'Docs', + title: 'Categories', items: [ { - label: 'Guides', - to: '/', + label: 'Gaming', + to: 'category/gaming', }, + { + label: 'Streaming', + to: 'category/streaming', + }, + { + label: 'Reading', + to: 'category/reading', + } ], }, + { + title: 'Popular', + items: [ + { + label: 'Stremio', + to: 'stremio', + }, + { + label: 'Plutonium', + to: 'plutonium', + }, + ] + }, { title: 'More', items: [ @@ -100,6 +117,10 @@ const config: Config = { label: 'GitHub', href: 'https://github.com/Viren070/guides', }, + { + label: 'Ko-fi', + href: 'https://ko-fi.com/viren070', + }, ], }, ],