Add 2.2.0 release and make header version automatic to latest
This commit is contained in:
parent
c30e726fb1
commit
1bfd41a207
@ -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",
|
||||
|
@ -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',
|
||||
},
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user