website: tweak doc layout and font sizes

This commit is contained in:
Yangshun
2022-03-18 08:12:15 +08:00
parent d2fd4f6d84
commit f159684c00
6 changed files with 28 additions and 7 deletions

View File

@ -3,6 +3,7 @@ import clsx from 'clsx';
import TOCItems from '@theme/TOCItems';
import styles from './styles.module.css'; // Using a custom className
import SidebarAd from '../../components/SidebarAd';
import CarbonAd from '../../components/CarbonAd';
// This prevents TOC highlighting to highlight TOCInline/TOCCollapsible by mistake
const LINK_CLASS_NAME = 'table-of-contents__link toc-highlight';
@ -19,6 +20,9 @@ function TOC({className, ...props}) {
linkClassName={LINK_CLASS_NAME}
linkActiveClassName={LINK_ACTIVE_CLASS_NAME}
/>
<div className="padding-horiz--md">
<CarbonAd />
</div>
<div className="margin--md">
<div className={clsx('padding--md', styles.socialLinksContainer)}>
<div className={styles.socialLinks}>