Files
onspring-api-docs/src/app/page.tsx
T

26 lines
639 B
TypeScript
Raw Normal View History

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 (
<main className={styles.container}>
2023-04-09 14:50:50 -05:00
{versionTwoSections.map(section => (
2023-04-09 23:13:02 -05:00
<>
<Section key={section.title}>
{section.copy}
{section.example}
</Section>
<div className={styles.divider}>&nbsp;</div>
</>
2023-04-09 12:52:32 -05:00
))}
</main>
2023-04-07 23:18:45 -05:00
);
2023-04-07 21:33:32 -05:00
}