From 55f0109751574b6c3a095289c017d84aa16ecc71 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 15 Oct 2024 19:30:12 +0300 Subject: [PATCH] website: updates --- .../2023-08-17-bison-v3-8-2-1-released.mdx | 11 ++++--- ...18-web-site.md => 2024-09-18-web-site.mdx} | 4 ++- .../blog-post-release-part-1-liquid.mdx | 15 +++++----- website/src/components/HeadTitle/index.tsx | 29 +++++++++++++++++++ 4 files changed, 45 insertions(+), 14 deletions(-) rename website/blog/{2024-09-18-web-site.md => 2024-09-18-web-site.mdx} (89%) create mode 100644 website/src/components/HeadTitle/index.tsx diff --git a/website/blog/2023-08-17-bison-v3-8-2-1-released.mdx b/website/blog/2023-08-17-bison-v3-8-2-1-released.mdx index 91d6580..1cda7ce 100644 --- a/website/blog/2023-08-17-bison-v3-8-2-1-released.mdx +++ b/website/blog/2023-08-17-bison-v3-8-2-1-released.mdx @@ -1,5 +1,6 @@ --- title: xPack GNU bison v3.8.2-1 released +seo_title: Version 3.8.2-1 released description: Version 3.8.2-1 is the first release of xPack GNU bison. keywords: - xpack @@ -26,17 +27,15 @@ download_url: https://github.com/xpack-dev-tools/bison-xpack/releases/tag/v3.8.2 --- - - {frontMatter.title} - - +import {PageMetadata} from '@docusaurus/theme-common'; +import Image from '@theme/IdealImage'; +import CodeBlock from '@theme/CodeBlock'; Version **3.8.2-1** is the first release of GNU bison. -import Image from '@theme/IdealImage'; -import CodeBlock from '@theme/CodeBlock'; + The [xPack GNU bison](https://xpack-dev-tools.github.io/bison-xpack/) is a standalone cross-platform binary distribution of diff --git a/website/blog/2024-09-18-web-site.md b/website/blog/2024-09-18-web-site.mdx similarity index 89% rename from website/blog/2024-09-18-web-site.md rename to website/blog/2024-09-18-web-site.mdx index 8203585..1d022ec 100644 --- a/website/blog/2024-09-18-web-site.md +++ b/website/blog/2024-09-18-web-site.mdx @@ -15,13 +15,15 @@ tags: --- -{frontMatter.title} +import {PageMetadata} from '@docusaurus/theme-common'; After some experimentation with modern site generators, the **xPack GNU bison** project has a new web site. + + ## MDX The _new kid on the block_ is [MDX](https://mdxjs.com), that is a solution diff --git a/website/blog/_templates/blog-post-release-part-1-liquid.mdx b/website/blog/_templates/blog-post-release-part-1-liquid.mdx index 3cf3c01..b0bd9b5 100644 --- a/website/blog/_templates/blog-post-release-part-1-liquid.mdx +++ b/website/blog/_templates/blog-post-release-part-1-liquid.mdx @@ -26,7 +26,13 @@ download_url: https://github.com/xpack-dev-tools/bison-xpack/releases/tag/v{{rel --- -{frontMatter.title} +import {PageMetadata} from '@docusaurus/theme-common'; +import Image from '@theme/IdealImage'; +import CodeBlock from '@theme/CodeBlock'; + +import Prerequisites from './_common/_prerequisites-glib-2.27.mdx' +import DeprecationNotices from './_common/_deprecation-notices-glib-2.27.mdx' +import DownloadAnalytics from './_common/_download-analytics.mdx' TODO: select one summary @@ -36,12 +42,7 @@ Version **{{releaseVersion}}** is a new release; it follows the upstream release -import Image from '@theme/IdealImage'; -import CodeBlock from '@theme/CodeBlock'; - -import Prerequisites from './_common/_prerequisites-glib-2.27.mdx' -import DeprecationNotices from './_common/_deprecation-notices-glib-2.27.mdx' -import DownloadAnalytics from './_common/_download-analytics.mdx' + The [xPack GNU bison](https://xpack-dev-tools.github.io/bison-xpack/) is a standalone cross-platform binary distribution of diff --git a/website/src/components/HeadTitle/index.tsx b/website/src/components/HeadTitle/index.tsx new file mode 100644 index 0000000..b157048 --- /dev/null +++ b/website/src/components/HeadTitle/index.tsx @@ -0,0 +1,29 @@ +/* + * DO NOT EDIT! + * Automatically generated from xbb-helper/templates/docusaurus/common. + * + * This file is part of the xPack project (http://xpack.github.io). + * Copyright (c) 2024 Liviu Ionescu. All rights reserved. + * + * Permission to use, copy, modify, and/or distribute this software + * for any purpose is hereby granted, under the terms of the MIT license. + * + * If a copy of the license was not distributed with this file, it can + * be obtained from https://opensource.org/licenses/MIT/. + */ + +// import React from 'react'; +import Head from '@docusaurus/Head'; + +/* + * Use this component for plain titles, without the site title appended. + */ + +export default function HeadTitle({title}): JSX.Element { + return ( + + {title} + + + ); +}