diff --git a/redirects.json b/redirects.json index 999d445e..e5a21cf9 100644 --- a/redirects.json +++ b/redirects.json @@ -1,14 +1,47 @@ [ - { "source": "/docs/what-is-javaistic", "destination": "/", "permanent": false }, + { + "source": "/blog", + "destination": "https://blog-javaistic.vercel.app/", + "permanent": false + }, + { + "source": "/changelog", + "destination": "https://changelog-javaistic.vercel.app/", + "permanent": false + }, + { + "source": "/community", + "destination": "https://discord.gg/RkHJqvK9r8", + "permanent": false + }, + { + "source": "/discord", + "destination": "https://discord.gg/RkHJqvK9r8", + "permanent": false + }, + { + "source": "/docs/what-is-javaistic", + "destination": "/", + "permanent": false + }, { "source": "/forum", "destination": "https://github.com/javaistic/javaistic/discussions", "permanent": false }, - { "source": "/community", "destination": "https://discord.gg/RkHJqvK9r8", "permanent": false }, - { "source": "/changelog", "destination": "https://javaistic-changelog.vercel.app/", "permanent": false }, - { "source": "/license", "destination": "https://raw.githubusercontent.com/javaistic/javaistic/main/LICENSE", "permanent": false }, - { "source": "/discord", "destination": "https://discord.gg/RkHJqvK9r8", "permanent": false }, - { "source": "/status", "destination": "https://javaistic.betteruptime.com/", "permanent": false }, - { "source": "/stats", "destination": "https://javaistic.betteruptime.com/", "permanent": false } -] + { + "source": "/license", + "destination": "https://raw.githubusercontent.com/javaistic/javaistic/main/LICENSE", + "permanent": false + }, + { + "source": "/stats", + "destination": "https://javaistic.betteruptime.com/", + "permanent": false + }, + { + "source": "/status", + "destination": "https://javaistic.betteruptime.com/", + "permanent": false + } +] \ No newline at end of file diff --git a/src/components/Header.js b/src/components/Header.js index e4999531..b2841b11 100644 --- a/src/components/Header.js +++ b/src/components/Header.js @@ -3,8 +3,8 @@ import { Search } from '@/components/Search' import clsx from 'clsx' import Link from 'next/link' import Router from 'next/router' -import ThemeChanger from './ThemeChanger' import MenuButton from './home/Menu' +import ThemeChanger from './ThemeChanger' export function Header({ navIsOpen, onNavToggle }) { return ( @@ -29,7 +29,6 @@ export function Header({ navIsOpen, onNavToggle }) {
diff --git a/src/components/home/Hero.js b/src/components/home/Hero.js index 5fd1ea22..bd9a10b9 100644 --- a/src/components/home/Hero.js +++ b/src/components/home/Hero.js @@ -37,7 +37,8 @@ const { lines } = tokenizeWithLines.java(`class BinarySearch { else System.out.println("Element found at index " + result); } -}`) +} +`) function CompletionDemo() { const { ref } = useInView({ threshold: 0.5, triggerOnce: true }) diff --git a/src/layouts/ContentsLayout.js b/src/layouts/ContentsLayout.js index 44a5b3e0..885442d6 100644 --- a/src/layouts/ContentsLayout.js +++ b/src/layouts/ContentsLayout.js @@ -2,6 +2,7 @@ import { ClassTable } from '@/components/ClassTable' import { PageHeader } from '@/components/PageHeader' import { usePrevNext } from '@/hooks/usePrevNext' import { SidebarContext, SidebarLayout } from '@/layouts/SidebarLayout' +import { ArrowLeftIcon, ArrowRightIcon } from '@heroicons/react/outline' import clsx from 'clsx' import Link from 'next/link' import { useRouter } from 'next/router' @@ -191,21 +192,17 @@ export function ContentsLayout({ children, meta, classes, tableOfContents }) {