diff --git a/web/components/Docs.tsx b/web/components/Docs.tsx index 3033e2d1..d7b7be6f 100644 --- a/web/components/Docs.tsx +++ b/web/components/Docs.tsx @@ -12,8 +12,9 @@ export interface DocsProps { export default function Docs({ docs, braces, assign }: DocsProps) { const router = useRouter() return ( -
-
+
+
+
{docs.values.map((doc) => { const target = router.asPath.endsWith(`#${doc.name}`) @@ -22,7 +23,7 @@ export default function Docs({ docs, braces, assign }: DocsProps) { id={doc.name} key={doc.name} className={ - 'pt-4 scroll-mt-16 ' + + 'pt-4 scroll-mt-16 overflow-auto ' + (target ? 'bg-rose-300 dark:bg-rose-900' : 'bg-slate-200 dark:bg-slate-800 target:bg-rose-300 target:dark:bg-rose-900') + @@ -30,12 +31,12 @@ export default function Docs({ docs, braces, assign }: DocsProps) { } >
-
+
-
+
{braces && ${} diff --git a/web/components/Doggy.tsx b/web/components/Doggy.tsx index d1dc13b6..2bedc5e7 100644 --- a/web/components/Doggy.tsx +++ b/web/components/Doggy.tsx @@ -3,7 +3,7 @@ import * as React from 'react' const Doggy: React.FunctionComponent = () => { return ( // from https://undraw.co/ - + { const { publicRuntimeConfig } = getConfig() const { modifiedDate, modifiedYear } = publicRuntimeConfig return ( -
-
+
+
-
+

- {modifiedYear} Conky developers, updated {modifiedDate} + {modifiedYear} Conky developers, updated {new Date(modifiedDate).toLocaleString()}

diff --git a/web/components/Header.tsx b/web/components/Header.tsx index 6d586467..fe7dbb07 100644 --- a/web/components/Header.tsx +++ b/web/components/Header.tsx @@ -36,14 +36,14 @@ export default function Header({ name, setDarkMode }: HeaderProps) { return (
-
-

+
+

{name}

{router.asPath != '/' && ( -
+
@@ -52,16 +52,23 @@ export default function Header({ name, setDarkMode }: HeaderProps) {
-
+ -
+
+ {router.asPath != '/' && ( +
+ + + +
+ )}

) } diff --git a/web/components/Layout.tsx b/web/components/Layout.tsx index 55025f35..2ffc4048 100644 --- a/web/components/Layout.tsx +++ b/web/components/Layout.tsx @@ -45,10 +45,10 @@ export default function Layout({ children }: LayoutProps) { return (
-
+
-
+
{children}
diff --git a/web/components/Search.tsx b/web/components/Search.tsx index 478c3cd4..60ae84ee 100644 --- a/web/components/Search.tsx +++ b/web/components/Search.tsx @@ -38,6 +38,7 @@ const SearchResult: React.FunctionComponent = (props) => { return (
+
@@ -49,7 +50,7 @@ const SearchResult: React.FunctionComponent = (props) => {
-

{excerpt(props.result.item.desc)}

+

{excerpt(props.result.item.desc)}

) diff --git a/web/pages/404.tsx b/web/pages/404.tsx index 520b7d74..0a3d8a83 100644 --- a/web/pages/404.tsx +++ b/web/pages/404.tsx @@ -8,9 +8,9 @@ export default function FourOhFour() {
-

404: Not found 😢

+

404: Not found 😢

-

Here’s a doggy 😀

+

Here’s a doggy 😀

diff --git a/web/pages/config_settings.tsx b/web/pages/config_settings.tsx index 48567a54..34d1ac55 100644 --- a/web/pages/config_settings.tsx +++ b/web/pages/config_settings.tsx @@ -18,9 +18,9 @@ export default function ConfigSettings(props: ConfigSettingsProps) { title="Conky – Config settings" description="Conky configuration settings" /> -
+
-

+

Configuration settings

diff --git a/web/pages/documents/[slug].tsx b/web/pages/documents/[slug].tsx index 569dbbc6..60a0d762 100644 --- a/web/pages/documents/[slug].tsx +++ b/web/pages/documents/[slug].tsx @@ -54,7 +54,7 @@ export default function DocumentPage({ title={`${frontMatter.title}`} description={frontMatter.description} /> -
+

{frontMatter.title} diff --git a/web/pages/lua.tsx b/web/pages/lua.tsx index 2f83c2d6..756eb4ac 100644 --- a/web/pages/lua.tsx +++ b/web/pages/lua.tsx @@ -11,9 +11,9 @@ export default function Lua(props: LuaProps) { return ( -
+
-

+

Lua API

diff --git a/web/pages/variables.tsx b/web/pages/variables.tsx index b2f77f88..c7346546 100644 --- a/web/pages/variables.tsx +++ b/web/pages/variables.tsx @@ -14,8 +14,8 @@ export default function Variables(props: VariablesProps) { title="Conky – Variables" description="Conky object variables documentation" /> -
-

+
+

Variables