diff --git a/site/components/DocsPagination.tsx b/site/components/DocsPagination.tsx
new file mode 100644
index 00000000..d6db19c4
--- /dev/null
+++ b/site/components/DocsPagination.tsx
@@ -0,0 +1,44 @@
+export default function DocsPagination({ prev = '', next = '' }) {
+ return (
+
+ );
+}
diff --git a/site/components/Layout.tsx b/site/components/Layout.tsx
index 300fa2a5..002c59f9 100644
--- a/site/components/Layout.tsx
+++ b/site/components/Layout.tsx
@@ -55,13 +55,13 @@ export default function Layout({
title,
tableOfContents = [],
urlPath,
- siteMap = []
+ sidebarTree = []
}: {
children;
title?: string;
tableOfContents?;
urlPath?: string;
- siteMap?: [];
+ sidebarTree?: [];
}) {
// const { toc } = children.props;
const { theme, setTheme } = useTheme();
@@ -134,7 +134,7 @@ export default function Layout({
href={`#${subSection.id}`}
className={
isActive(subSection)
- ? 'text-sky-500'
+ ? 'text-secondary'
: 'hover:text-slate-600 dark:hover:text-slate-300'
}
>
@@ -153,7 +153,7 @@ export default function Layout({
{/* LHS NAVIGATION */}
{/* {showSidebar && ( */}
-
+
{/* )} */}
>
diff --git a/site/components/MDXPage.tsx b/site/components/MDXPage.tsx
index e4cd130b..d9ae1566 100644
--- a/site/components/MDXPage.tsx
+++ b/site/components/MDXPage.tsx
@@ -1,5 +1,6 @@
-import { MDXRemote } from "next-mdx-remote";
-import layouts from "layouts";
+import { MDXRemote } from 'next-mdx-remote';
+import layouts from 'layouts';
+import DocsPagination from './DocsPagination';
export default function MDXPage({ source, frontMatter }) {
const Layout = ({ children }) => {
@@ -32,7 +33,7 @@ export default function MDXPage({ source, frontMatter }) {
-
+
diff --git a/site/components/SiteToc.tsx b/site/components/SiteToc.tsx
index 9d58c3b3..908f5c6d 100644
--- a/site/components/SiteToc.tsx
+++ b/site/components/SiteToc.tsx
@@ -1,6 +1,6 @@
-import Link from "next/link.js";
-import clsx from "clsx";
-import { Disclosure, Transition } from "@headlessui/react";
+import Link from 'next/link.js';
+import clsx from 'clsx';
+import { Disclosure, Transition } from '@headlessui/react';
export interface NavItem {
name: string;
@@ -40,15 +40,11 @@ function sortNavGroupChildren(items: Array) {
}
export const SiteToc: React.FC = ({ currentPath, nav }) => {
- function isActiveItem(item: NavItem) {
- return item.href === currentPath;
- }
-
return (
);
@@ -56,30 +52,34 @@ export const SiteToc: React.FC = ({ currentPath, nav }) => {
const NavComponent: React.FC<{
item: NavItem | NavGroup;
- isActive: boolean;
-}> = ({ item, isActive }) => {
+ currentPath: string;
+}> = ({ item, currentPath }) => {
+ function isActiveItem(item: NavItem) {
+ return item.href === "/" + currentPath;
+ }
+
return !isNavGroup(item) ? (
{item.name}
) : (
-
+
{({ open }) => (