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
2 changes: 1 addition & 1 deletion docs/explanation/moq-streaming.mdx
Original file line number Diff line number Diff line change
@@ -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.
---

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/moq.mdx
Original file line number Diff line number Diff line change
@@ -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.
---

Expand Down
38 changes: 38 additions & 0 deletions src/theme/DocItem/Metadata/index.tsx
Original file line number Diff line number Diff line change
@@ -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 <Category>"
// (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 (
<>
<Head>
<title>{formattedTitle}</title>
<meta property="og:title" content={formattedTitle} />
</Head>
<PageMetadata
description={metadata.description}
keywords={frontMatter.keywords}
image={assets.image ?? frontMatter.image}
/>
</>
);
}
Original file line number Diff line number Diff line change
@@ -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.
---

Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.27.0/tutorials/moq.mdx
Original file line number Diff line number Diff line change
@@ -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.
---

Expand Down
Loading