aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/contribute.astro
blob: 347499671001e94d3a7d8c948ca5f78346e9bae5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
import Breadcrumbs from '@/components/Breadcrumbs.astro'
import PageHead from '@/components/PageHead.astro'
import TOCHeader from '@/components/TOCHeader.astro'
import TOCSidebar from '@/components/TOCSidebar.astro'
import Layout from '@/layouts/Layout.astro'

import { Content, getHeadings } from './_contribute.mdx'
const headings = getHeadings()

const sections = [
  {
    type: 'parent' as const,
    title: 'Contribution Guide',
    headings: headings,
  },
]
---

<Layout>
  <PageHead slot="head" title="Contribution Guide" />
  {
    headings.length > 0 && (
      <TOCHeader slot="table-of-contents" headings={headings} />
    )
  }

  <section
    class="mt-8 grid grid-cols-[minmax(0px,1fr)_min(calc(var(--breakpoint-md)-2rem),100%)_minmax(0px,1fr)] gap-y-6"
  >
    <div class="col-start-2">
      <Breadcrumbs
        items={[{ label: 'Contribute', icon: 'lucide:git-pull-request' }]}
      />
    </div>

    <TOCSidebar sections={sections} currentPostId="contribute" />

    <article class="prose dark:prose-invert col-start-2 max-w-none">
      <Content />
    </article>
  </section>
</Layout>