From 2b4c22ea9211b069c2e54891e1aaa9de66812aa2 Mon Sep 17 00:00:00 2001 From: Adrian Czerwiec Date: Tue, 9 Jun 2026 13:40:29 +0200 Subject: [PATCH 1/2] adjust moq titles --- docs/explanation/moq-streaming.mdx | 2 +- docs/tutorials/moq.mdx | 2 +- versioned_docs/version-0.27.0/explanation/moq-streaming.mdx | 2 +- versioned_docs/version-0.27.0/tutorials/moq.mdx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/explanation/moq-streaming.mdx b/docs/explanation/moq-streaming.mdx index 8dd8160..18133b8 100644 --- a/docs/explanation/moq-streaming.mdx +++ b/docs/explanation/moq-streaming.mdx @@ -1,7 +1,7 @@ --- type: explanation sidebar_position: 6 -title: MoQ Streaming with Fishjam +title: Media over QUIC (MoQ) description: Understand how Media over QUIC (MoQ) works in Fishjam — the relay model, publish/subscribe architecture, paths, and token-based access control. --- diff --git a/docs/tutorials/moq.mdx b/docs/tutorials/moq.mdx index a44d2fe..fa3742e 100644 --- a/docs/tutorials/moq.mdx +++ b/docs/tutorials/moq.mdx @@ -1,7 +1,7 @@ --- type: tutorial sidebar_position: 5 -title: How to stream Media over QUIC +title: MoQ Livestreaming description: Stream live video and audio over Media over QUIC (MoQ) with Fishjam, from sandbox prototyping to production deployment. --- diff --git a/versioned_docs/version-0.27.0/explanation/moq-streaming.mdx b/versioned_docs/version-0.27.0/explanation/moq-streaming.mdx index 8dd8160..18133b8 100644 --- a/versioned_docs/version-0.27.0/explanation/moq-streaming.mdx +++ b/versioned_docs/version-0.27.0/explanation/moq-streaming.mdx @@ -1,7 +1,7 @@ --- type: explanation sidebar_position: 6 -title: MoQ Streaming with Fishjam +title: Media over QUIC (MoQ) description: Understand how Media over QUIC (MoQ) works in Fishjam — the relay model, publish/subscribe architecture, paths, and token-based access control. --- diff --git a/versioned_docs/version-0.27.0/tutorials/moq.mdx b/versioned_docs/version-0.27.0/tutorials/moq.mdx index a44d2fe..fa3742e 100644 --- a/versioned_docs/version-0.27.0/tutorials/moq.mdx +++ b/versioned_docs/version-0.27.0/tutorials/moq.mdx @@ -1,7 +1,7 @@ --- type: tutorial sidebar_position: 5 -title: How to stream Media over QUIC +title: MoQ Livestreaming description: Stream live video and audio over Media over QUIC (MoQ) with Fishjam, from sandbox prototyping to production deployment. --- From c7a1fdb139cddda99f3cd7f5f6376bb0ec2299e3 Mon Sep 17 00:00:00 2001 From: Adrian Czerwiec Date: Tue, 9 Jun 2026 13:53:56 +0200 Subject: [PATCH 2/2] add better titles --- src/theme/DocItem/Metadata/index.tsx | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/theme/DocItem/Metadata/index.tsx diff --git a/src/theme/DocItem/Metadata/index.tsx b/src/theme/DocItem/Metadata/index.tsx new file mode 100644 index 0000000..08882be --- /dev/null +++ b/src/theme/DocItem/Metadata/index.tsx @@ -0,0 +1,38 @@ +import type { ReactNode } from "react"; +import Head from "@docusaurus/Head"; +import { PageMetadata } from "@docusaurus/theme-common"; +import { + useDoc, + useSidebarBreadcrumbs, +} from "@docusaurus/plugin-content-docs/client"; +import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; + +// Browser tab title pattern: +// - Docs under a top-level category: "Page Title | Fishjam " +// (the category label comes from the sidebar, i.e. each _category_.json) +// - Root-level docs (e.g. the landing page): just "Page Title" +export default function DocItemMetadata(): ReactNode { + const { metadata, frontMatter, assets } = useDoc(); + const breadcrumbs = useSidebarBreadcrumbs(); + const { siteConfig } = useDocusaurusContext(); + + const topCategory = breadcrumbs?.find((item) => item.type === "category"); + + const formattedTitle = topCategory + ? `${metadata.title} ${siteConfig.titleDelimiter} Fishjam ${topCategory.label}` + : metadata.title; + + return ( + <> + + {formattedTitle} + + + + + ); +}