Add version/release link to docs site (#24410)

* add version/release link to docs

* link to full releases page
This commit is contained in:
Josh Hawkins
2026-09-20 07:40:09 -06:00
committed by GitHub
parent 26e6adee88
commit 93aa6c4174
+30 -22
View File
@@ -3,6 +3,9 @@ import * as path from "node:path";
import type { Config, PluginConfig } from "@docusaurus/types"; import type { Config, PluginConfig } from "@docusaurus/types";
import type * as OpenApiPlugin from "docusaurus-plugin-openapi-docs"; import type * as OpenApiPlugin from "docusaurus-plugin-openapi-docs";
// Bump when a new stable release ships
const STABLE_VERSION = "0.18";
const config: Config = { const config: Config = {
title: "Frigate", title: "Frigate",
tagline: "NVR With Realtime Object Detection for IP Cameras", tagline: "NVR With Realtime Object Detection for IP Cameras",
@@ -23,17 +26,17 @@ const config: Config = {
mermaid: true, mermaid: true,
}, },
i18n: { i18n: {
defaultLocale: 'en', defaultLocale: "en",
locales: ['en'], locales: ["en"],
localeConfigs: { localeConfigs: {
en: { en: {
label: 'English', label: "English",
} },
}, },
}, },
themeConfig: { themeConfig: {
announcementBar: { announcementBar: {
id: 'frigate_plus', id: "frigate_plus",
content: ` content: `
<span style="margin-right: 8px; display: inline-block; animation: pulse 2s infinite;">🚀</span> <span style="margin-right: 8px; display: inline-block; animation: pulse 2s infinite;">🚀</span>
Get more relevant and accurate detections with Frigate+ models. Get more relevant and accurate detections with Frigate+ models.
@@ -45,8 +48,8 @@ const config: Config = {
50% { transform: scale(1.1); } 50% { transform: scale(1.1); }
} }
</style>`, </style>`,
backgroundColor: '#005f73', backgroundColor: "#005f73",
textColor: '#e0fbfc', textColor: "#e0fbfc",
isCloseable: false, isCloseable: false,
}, },
docs: { docs: {
@@ -83,15 +86,15 @@ const config: Config = {
}, },
}, },
prism: { prism: {
magicComments:[ magicComments: [
{ {
className: 'theme-code-block-highlighted-line', className: "theme-code-block-highlighted-line",
line: 'highlight-next-line', line: "highlight-next-line",
block: {start: 'highlight-start', end: 'highlight-end'}, block: { start: "highlight-start", end: "highlight-end" },
}, },
{ {
className: 'code-block-error-line', className: "code-block-error-line",
line: 'highlight-error-line', line: "highlight-error-line",
}, },
], ],
additionalLanguages: ["bash", "json"], additionalLanguages: ["bash", "json"],
@@ -131,6 +134,11 @@ const config: Config = {
srcDark: "img/branding/logo-dark.svg", srcDark: "img/branding/logo-dark.svg",
}, },
items: [ items: [
{
href: "https://github.com/blakeblackshear/frigate/releases",
label: `${STABLE_VERSION}`,
position: "left",
},
{ {
to: "/", to: "/",
activeBasePath: "docs", activeBasePath: "docs",
@@ -148,19 +156,19 @@ const config: Config = {
position: "right", position: "right",
}, },
{ {
type: 'localeDropdown', type: "localeDropdown",
position: 'right', position: "right",
dropdownItemsAfter: [ dropdownItemsAfter: [
{ {
label: '简体中文(社区翻译)', label: "简体中文(社区翻译)",
href: 'https://docs.frigate-cn.video', href: "https://docs.frigate-cn.video",
} },
] ],
}, },
{ {
href: 'https://github.com/blakeblackshear/frigate', href: "https://github.com/blakeblackshear/frigate",
label: 'GitHub', label: "GitHub",
position: 'right', position: "right",
}, },
], ],
}, },