mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 09:15:58 +02:00
feat: Implement mdx
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@ import pipe from "ramda/es/pipe"
|
||||
import sort from "ramda/es/sort"
|
||||
|
||||
import { IFile, IFileOrFolder, IFolder, ITocItem } from "../types"
|
||||
import { MarkdownRemark } from "../../generated/graphql"
|
||||
import { Mdx } from "../../generated/graphql"
|
||||
|
||||
const slugger = new GithubSlugger()
|
||||
|
||||
@@ -141,7 +141,7 @@ export function join([head, ...tail]: IFileOrFolder[]): IFileOrFolder[] {
|
||||
return [current, ...join(remaining)]
|
||||
}
|
||||
|
||||
export function buildToc(headings: MarkdownRemark["headings"]): ITocItem[] {
|
||||
export function buildToc(headings: Mdx["headings"]): ITocItem[] {
|
||||
if (!headings) {
|
||||
return []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user