From 1bfd41a20708fe701538607f16b5758fa17c6ad5 Mon Sep 17 00:00:00 2001 From: Daniel Lautzenheiser Date: Sun, 7 May 2023 09:28:44 -0400 Subject: [PATCH] Add 2.2.0 release and make header version automatic to latest --- packages/docs/content/releases.json | 5 +++++ packages/docs/src/components/layout/Header.tsx | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/docs/content/releases.json b/packages/docs/content/releases.json index ddf3cc4b..3ffe1df4 100644 --- a/packages/docs/content/releases.json +++ b/packages/docs/content/releases.json @@ -1,5 +1,10 @@ { "releases": [ + { + "date": "2023-05-05T23:00:00.000Z", + "version": "v2.2.0", + "description": "Multi image support and markdown toolbar customization" + }, { "date": "2023-04-25T14:28:00.000Z", "version": "v2.1.0", diff --git a/packages/docs/src/components/layout/Header.tsx b/packages/docs/src/components/layout/Header.tsx index 50b995e5..2368246a 100644 --- a/packages/docs/src/components/layout/Header.tsx +++ b/packages/docs/src/components/layout/Header.tsx @@ -10,6 +10,7 @@ import Toolbar from '@mui/material/Toolbar'; import Link from 'next/link'; import { useCallback, useMemo, useState } from 'react'; +import releases from '../../lib/releases'; import Logo from './Logo'; import NavigationDrawer from './mobile-drawer/NavigationDrawer'; import Search from './search/Search'; @@ -121,7 +122,7 @@ const Header = ({ mode, docsGroups, searchablePages, toggleColorMode }: HeaderPr const items: MenuItem[] = useMemo( () => [ { - title: 'v2.0.0', + title: releases[0].version, url: '/releases', }, {