MCPcopy Index your code
hub / github.com/ericclemmons/mdx-site

github.com/ericclemmons/mdx-site @v1.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.1.0 ↗ · + Follow
24 symbols 72 edges 21 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

mdx  S I T E

Static site generator powered by:

lighthouse score

Getting Started

If you're starting from scratch:

  1. mkdir my-site
  2. cd my-site
  3. yarn init -y

Picture of previous steps

Within your project, install mdx-site:

  • yarn add mdx-site

Picture of previous step

Now you're ready to run it:

  • yarn mdx-site

Picture of previous step

Picture of previous step

Authoring

  1. Add pages to content/:page/index.mdx

  2. export data via content/:page/index.tsx

  3. Customize HTML template: public/index.html

  4. Customize components: components/:tag.tsx

  5. 🚀 Publish to dist:

yarn mdx-site build

All changes are hot-reloaded. Refresh for changes!

Deployment

  1. yarn mdx-site build
  2. Publish dist as a static site using Netlify, Now, or whatever you'd like.

Author

Extension points exported contracts — how you extend this code

Variables (Interface)
(no doc)
src/utils/renderTemplate.ts
Props (Interface)
(no doc)
src/utils/resolvePageProps.ts
Page (Interface)
(no doc)
src/utils/renderPage.tsx
Components (Interface)
(no doc)
src/utils/getComponents.ts

Core symbols most depended-on inside this repo

relative
called by 6
src/build.tsx
getPage
called by 2
src/utils/getPage.tsx
renderPage
called by 2
src/utils/renderPage.tsx
findAllPages
called by 1
src/utils/findAllPages.ts
renderTemplate
called by 1
src/utils/renderTemplate.ts
resolve
called by 1
src/utils/resolvePageProps.ts
resolvePageProps
called by 1
src/utils/resolvePageProps.ts
getComponents
called by 1
src/utils/getComponents.ts

Shape

Function 20
Interface 4

Languages

TypeScript100%

Modules by API surface

src/utils/resolvePageProps.ts3 symbols
src/utils/getPage.tsx3 symbols
src/utils/renderTemplate.ts2 symbols
src/utils/renderPage.tsx2 symbols
src/utils/getComponents.ts2 symbols
template/content/index.tsx1 symbols
template/components/p.tsx1 symbols
template/components/ol.tsx1 symbols
template/components/li.tsx1 symbols
template/components/inlineCode.tsx1 symbols
template/components/h2.tsx1 symbols
template/components/h1.tsx1 symbols

For agents

$ claude mcp add mdx-site \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact