2023-04-09 12:52:32 -05:00
|
|
|
import { versionTwo } from '@/docs/version_002/docsStructure';
|
|
|
|
|
import Section from './components/Section';
|
2023-04-09 14:50:50 -05:00
|
|
|
import { loadSections } from './lib/markdoc';
|
2023-04-07 23:18:45 -05:00
|
|
|
import styles from './page.module.css';
|
2023-04-07 21:33:32 -05:00
|
|
|
|
|
|
|
|
export default function Home() {
|
2023-04-09 14:50:50 -05:00
|
|
|
const versionTwoSections = loadSections(
|
|
|
|
|
versionTwo.version,
|
|
|
|
|
versionTwo.docs
|
|
|
|
|
);
|
|
|
|
|
|
2023-04-07 21:33:32 -05:00
|
|
|
return (
|
2023-04-09 00:24:42 -05:00
|
|
|
<main className={styles.container}>
|
2023-04-09 14:50:50 -05:00
|
|
|
{versionTwoSections.map(section => (
|
|
|
|
|
<Section key={section.title}>
|
|
|
|
|
{section.copy}
|
|
|
|
|
{section.example}
|
|
|
|
|
</Section>
|
2023-04-09 12:52:32 -05:00
|
|
|
))}
|
2023-04-09 00:24:42 -05:00
|
|
|
</main>
|
2023-04-07 23:18:45 -05:00
|
|
|
);
|
2023-04-07 21:33:32 -05:00
|
|
|
}
|