From d827614ce2c204774264646b5cfa09c43c551099 Mon Sep 17 00:00:00 2001 From: Animenosekai <40539549+Animenosekai@users.noreply.github.com> Date: Mon, 27 Jun 2022 15:47:27 +0200 Subject: [PATCH] [update] update TOC styling a bit --- website/pages/documentation/[...path].tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/website/pages/documentation/[...path].tsx b/website/pages/documentation/[...path].tsx index d87ae9d..5a44e8a 100644 --- a/website/pages/documentation/[...path].tsx +++ b/website/pages/documentation/[...path].tsx @@ -8,13 +8,14 @@ import type { NextPage } from 'next' import ReactMarkdown from 'react-markdown' import { SEO } from 'components/common/seo' import { TableOfContent } from 'components/common/toc' +import classNames from 'classnames' import rehypeRaw from 'rehype-raw' // import rehypeSanitize from 'rehype-sanitize' import remarkGfm from 'remark-gfm' import { useLanguage } from 'contexts/language' import { useRouter } from 'next/router' -export const TOC = ({ ...props }: HTMLAttributes) => { +export const TOC = ({ className, ...props }: HTMLAttributes) => { const { strings } = useLanguage(); const { query } = useRouter(); const [path, setPath] = useState((query.path as string[]) || []); @@ -23,7 +24,7 @@ export const TOC = ({ ...props }: HTMLAttributes) => { setPath((query.path as string[]) || []) }, [query]) - return
+ return
{ strings.documentation ? strings.documentation.map((value, i) => { @@ -74,13 +75,16 @@ const Documentation: NextPage = () => { return
-
+
translatepy {} - +
+ + {/*
*/} +
{content}