diff --git a/src/theme/TOC/index.js b/src/theme/TOC/index.js new file mode 100644 index 00000000..bc8db27f --- /dev/null +++ b/src/theme/TOC/index.js @@ -0,0 +1,20 @@ +/* eslint-disable */ +import React from 'react'; +import clsx from 'clsx'; +import TOCItems from '@theme/TOCItems'; +import styles from './styles.module.css'; +// Using a custom className +// This prevents TOCInline/TOCCollapsible getting highlighted by mistake +const LINK_CLASS_NAME = 'table-of-contents__link toc-highlight'; +const LINK_ACTIVE_CLASS_NAME = 'table-of-contents__link--active'; +export default function TOC({ className, ...props }) { + return ( +