Skip to content

Commit 19428aa

Browse files
committed
wip
1 parent 3f1be05 commit 19428aa

File tree

3 files changed

+28
-31
lines changed

3 files changed

+28
-31
lines changed

src/components/learn-aggregator/common-questions.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,16 @@ export function CommonQuestionsSection(
2525
<ul className="row-span-full mt-6 ![grid-column:2] *:border-b *:border-neu-200 dark:*:border-neu-100 lg:w-[380px] xl:w-[496px]">
2626
<CommonQuestionsItem
2727
title="Getting started"
28-
href="/learn/faq#getting-started"
28+
href="/faq#getting-started"
2929
/>
30-
<CommonQuestionsItem title="General" href="/learn/faq#general" />
30+
<CommonQuestionsItem title="General" href="/faq#general" />
3131
<CommonQuestionsItem
3232
title="Best practices"
33-
href="/learn/faq#best-practices"
33+
href="/faq#best-practices"
3434
/>
35-
<CommonQuestionsItem
36-
title="Specification"
37-
href="/learn/faq#specification"
38-
/>
39-
<CommonQuestionsItem title="Frontend" href="/learn/faq#frontend" />
40-
<CommonQuestionsItem title="Foundation" href="/learn/faq#foundation" />
35+
<CommonQuestionsItem title="Specification" href="/faq#specification" />
36+
<CommonQuestionsItem title="Frontend" href="/faq#frontend" />
37+
<CommonQuestionsItem title="Foundation" href="/faq#foundation" />
4138
</ul>
4239
</section>
4340
)

src/pages/faq/_meta.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
export default {
22
index: {
3-
title: "Overview",
4-
theme: {
5-
toc: false,
6-
},
3+
title: "FAQ",
74
},
8-
"getting-started": "",
9-
general: "",
10-
"best-practices": "",
11-
specification: "",
12-
frontend: "",
13-
foundation: "",
5+
"getting-started": { display: "hidden" },
6+
general: { display: "hidden" },
7+
"best-practices": { display: "hidden" },
8+
specification: { display: "hidden" },
9+
frontend: { display: "hidden" },
10+
foundation: { display: "hidden" },
1411
}

src/pages/faq/index.mdx

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
import { Cards } from 'nextra/components'
2-
import metaFile from './_meta'
1+
import { FaqAggregator, faqMdxComponents } from "@/components/faq-aggregator"
32

4-
# Frequently Asked Questions (FAQ)
3+
import GettingStarted from "./getting-started.mdx"
4+
import General from "./general.mdx"
5+
import BestPractices from "./best-practices.mdx"
6+
import Specification from "./specification.mdx"
7+
import Frontend from "./frontend.mdx"
8+
import Foundation from "./foundation.mdx"
59

6-
<Cards>
7-
{Object.entries(metaFile).slice(1).map(([key]) => (
8-
<Cards.Card
9-
key={key}
10-
title={key.split('-').map(word => word[0].toUpperCase() + word.slice(1)).join(' ')}
11-
href={`/faq/${key}`} arrow
12-
/>
13-
))}
14-
</Cards>
10+
<h1 className="typography-h1">Frequently Asked Questions</h1>
11+
12+
<GettingStarted components={faqMdxComponents} />
13+
<General components={faqMdxComponents} />
14+
<BestPractices components={faqMdxComponents} />
15+
<Specification components={faqMdxComponents} />
16+
<Frontend components={faqMdxComponents} />
17+
<Foundation components={faqMdxComponents} />

0 commit comments

Comments
 (0)