From f61798b27dac43f1ee9f5620ee088711afe4e896 Mon Sep 17 00:00:00 2001 From: AlexNg Date: Sun, 17 Mar 2024 23:01:17 +0800 Subject: [PATCH 1/2] chore: Increment to v1.1.1 --- src/pages/_meta.json | 2 +- src/pages/docs/_meta.json | 2 +- src/pages/docs/latest/index.mdx | 4 ++-- src/pages/index.mdx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/_meta.json b/src/pages/_meta.json index 61698aa..0d5aefa 100644 --- a/src/pages/_meta.json +++ b/src/pages/_meta.json @@ -20,7 +20,7 @@ "newWindow": true }, "latest-release": { - "title": "1.1.0 Latest Release", + "title": "1.1.1 Latest Release", "href": "/docs/latest" }, "all-releases": { diff --git a/src/pages/docs/_meta.json b/src/pages/docs/_meta.json index ac20048..bf021e2 100644 --- a/src/pages/docs/_meta.json +++ b/src/pages/docs/_meta.json @@ -10,5 +10,5 @@ "timestamp": false } }, - "latest": "v1.1.0 Latest" + "latest": "v1.1.1 Latest" } diff --git a/src/pages/docs/latest/index.mdx b/src/pages/docs/latest/index.mdx index e5d0f0a..63b7a0d 100644 --- a/src/pages/docs/latest/index.mdx +++ b/src/pages/docs/latest/index.mdx @@ -9,9 +9,9 @@ This is `thread`, a Python library which extends Python's built-in `threading` l -## Thread v1.1.0 +## Thread v1.1.1 -You are viewing the documentation for the `v1.1.0` release.
+You are viewing the documentation for the `v1.1.1` release.
This is the most recent stable release of `thread`. diff --git a/src/pages/index.mdx b/src/pages/index.mdx index a0d2a14..e3a9289 100644 --- a/src/pages/index.mdx +++ b/src/pages/index.mdx @@ -36,7 +36,7 @@ export function Feature({ title, description, version = false, href = false, ... {/* Section 1 */}
-

Thread - v1.1.0

+

Thread - v1.1.1

Date: Sun, 17 Mar 2024 23:28:05 +0800 Subject: [PATCH 2/2] feat: Update SEO title --- src/pages/docs/index.mdx | 2 +- src/pages/index.mdx | 4 ++++ theme.config.tsx | 12 +++++++++--- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/pages/docs/index.mdx b/src/pages/docs/index.mdx index 2ce7797..f4c52b4 100644 --- a/src/pages/docs/index.mdx +++ b/src/pages/docs/index.mdx @@ -51,7 +51,7 @@ export function Text({ children, className }) {return

- Latest 1.1.0 + Latest 1.1.1
This is the latest ***stable*** release.
diff --git a/src/pages/index.mdx b/src/pages/index.mdx index e3a9289..3a9c478 100644 --- a/src/pages/index.mdx +++ b/src/pages/index.mdx @@ -1,3 +1,7 @@ +--- +title: Thread v1.1.1 +--- + import Link from 'next/link' import { ChevronDownIcon, ArrowRightIcon } from '@radix-ui/react-icons' diff --git a/theme.config.tsx b/theme.config.tsx index 59ea180..3cfed4d 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -26,6 +26,9 @@ const Footer = ( ) const Head = () => { const { title } = useConfig() + const { route } = useRouter() + + const pageTitle = route === '/' || !title ? 'Thread v1.1.1' : `${title} | Thread v1.1.1` const socialImage = 'https://thread.ngjx.org/socialcard-white.jpg' return ( @@ -50,7 +53,7 @@ const Head = () => { {/* OpenGraph */} - + {/* Twitter */} @@ -78,8 +81,11 @@ const config: DocsThemeConfig = { link: 'https://discord.gg/WTAvycRmqP' }, useNextSeoProps() { - return { - titleTemplate: '%s – thread' + const { asPath } = useRouter() + if (asPath !== '/') { + return { + titleTemplate: '%s | Thread v1.1.1', + } } }, sidebar: {