diff --git a/docusaurus.config.js b/docusaurus.config.js index 3c4ce755..fd9625cc 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -4,14 +4,14 @@ const lightCodeTheme = require("prism-react-renderer/themes/github"); const darkCodeTheme = require("prism-react-renderer/themes/dracula"); -const baseUrl = process.env.BASE_URL || "/"; +const BASE_URL = process.env.BASE_URL || "/"; /** @type {import('@docusaurus/types').Config} */ const config = { title: "Fastify", tagline: "Fast and low overhead web framework, for Node.js", url: "https://fastify.io", - baseUrl: baseUrl, + baseUrl: BASE_URL, onBrokenLinks: "throw", onBrokenMarkdownLinks: "warn", favicon: "img/favicon.ico", @@ -43,11 +43,6 @@ const config = { }, }, }, - blog: { - showReadingTime: true, - // Please change this to your repo. - editUrl: "https://github.com/fastify/website-next/edit/main/blog/", - }, theme: { customCss: require.resolve("./src/css/custom.css"), }, diff --git a/src/pages/index.tsx b/src/pages/index.tsx index fc3fccef..91734d08 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -6,25 +6,6 @@ import Layout from "@theme/Layout"; import React from "react"; import GitHubButton from "react-github-btn"; -// function HomepageHeader() { -// const {siteConfig} = useDocusaurusContext(); -// return ( -// -// -// {siteConfig.title} -// {siteConfig.tagline} -// -// -// Docusaurus Tutorial - 5min ⏱️ -// -// -// -// -// ); -// } - const svgicons = { twitter: ( @@ -181,7 +162,7 @@ export default function Home(): JSX.Element { rel="noopener nofollow" >
{siteConfig.tagline}