Skip to content
Merged
Show file tree
Hide file tree
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
16 changes: 13 additions & 3 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,19 @@ const config: Config = {
{
docs: {
sidebarPath: "./sidebars.ts",
// Please change this to your repo.
showLastUpdateAuthor: false,
showLastUpdateTime: true,
},
blog: false, // Disabled until blog posts are added
blog: false,
theme: {
customCss: "./src/css/custom.css",
},
sitemap: {
changefreq: "weekly",
priority: 0.5,
ignorePatterns: ["/tags/**"],
filename: "sitemap.xml",
},
} satisfies Preset.Options,
],
],
Expand All @@ -78,7 +85,10 @@ const config: Config = {
],

themeConfig: {
// Replace with your project's social card
metadata: [
{ name: "keywords", content: "Cardano, developer experience, blockchain, smart contracts, DeFi, Intersect MBO" },
{ name: "author", content: "Intersect MBO Developer Experience Working Group" },
],
image: "img/docusaurus-social-card.jpg",
navbar: {
title: "Developer Experience",
Expand Down
16 changes: 14 additions & 2 deletions website/src/theme/Root.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import React, { useEffect } from "react";
import Head from "@docusaurus/Head";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import MeetupReminderButton from "@site/src/components/MeetupReminderButton";

// Default implementation, that you can customize
export default function Root({ children }) {
const { siteConfig } = useDocusaurusContext();
const siteUrl = siteConfig.url;

useEffect(() => {
// Minimal MutationObserver to fix any black text in search dropdown that CSS might miss
const observer = new MutationObserver(() => {
Expand Down Expand Up @@ -36,8 +40,16 @@ export default function Root({ children }) {

return (
<>
<Head>
<meta property="og:type" content="website" />
<meta property="og:site_name" content={siteConfig.title} />
<meta property="og:locale" content="en_US" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@IntersectMBO" />
<link rel="canonical" href={siteUrl} />
</Head>
{children}
<MeetupReminderButton />
</>
);
}
}