File tree Expand file tree Collapse file tree 3 files changed +28
-31
lines changed
components/learn-aggregator Expand file tree Collapse file tree 3 files changed +28
-31
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 11export 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}
Original file line number Diff line number Diff line change 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 } />
You can’t perform that action at this time.
0 commit comments