MCPcopy Create free account
hub / github.com/OffchainLabs/arbitrum-docs / readFilesInDirectory

Function readFilesInDirectory

scripts/build-glossary.ts:68–93  ·  view source on GitHub ↗

* Reads and parses all Markdown/MDX files in a directory * * This function: * 1. Reads all files in the specified directory * 2. Filters for only .md and .mdx files * 3. Parses frontmatter and content using gray-matter * 4. Sorts the terms alphabetically by the titleforSort frontmatter propert

(directory: string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected