Merge branch 'v2'
This commit is contained in:
commit
4ff3967e18
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"releases": [
|
"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",
|
"date": "2023-04-25T14:28:00.000Z",
|
||||||
"version": "v2.1.0",
|
"version": "v2.1.0",
|
||||||
|
@ -10,6 +10,7 @@ import Toolbar from '@mui/material/Toolbar';
|
|||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import { useCallback, useMemo, useState } from 'react';
|
import { useCallback, useMemo, useState } from 'react';
|
||||||
|
|
||||||
|
import releases from '../../lib/releases';
|
||||||
import Logo from './Logo';
|
import Logo from './Logo';
|
||||||
import NavigationDrawer from './mobile-drawer/NavigationDrawer';
|
import NavigationDrawer from './mobile-drawer/NavigationDrawer';
|
||||||
import Search from './search/Search';
|
import Search from './search/Search';
|
||||||
@ -121,7 +122,7 @@ const Header = ({ mode, docsGroups, searchablePages, toggleColorMode }: HeaderPr
|
|||||||
const items: MenuItem[] = useMemo(
|
const items: MenuItem[] = useMemo(
|
||||||
() => [
|
() => [
|
||||||
{
|
{
|
||||||
title: 'v2.0.0',
|
title: releases[0].version,
|
||||||
url: '/releases',
|
url: '/releases',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user