Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.
/ docgraph Public archive

Generate rich documentation data for TypeScript and MDX codebases.

Notifications You must be signed in to change notification settings

souporserious/docgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ Currently under development, not ready for use yet

This library is currently unstable and the API is in flux. It is being worked on in the open for better exposure, please feel free to add to the discussion if you have any questions or suggestions. As of right now, packages aren't published yet and documentation may be lacking or stale.

DocGraph

A topological documentation generator for JavaScript with first-class support for React.

Built with ts-morph, graphology swc, and mdx.

Features

🕸 Directed documentation graph

🪶 Minimal DSL for building rich documentation

📝 MDX for mixing Markdown and JSX

🖼 Compile code examples

📰 Compile MDX to Markdown

🐇 Quick links to source code for development and production

Install

yarn add @docgraph/bundle
npm install @docgraph/bundle

Usage

import { bundle } from "@docgraph/bundle"

const tsxString = `
export const HelloWorld = ({ name = 'World' }) => <div>Hello {name}</div>
`

const mdxString = `# Hello World`

const json = bundle({
  "hello-world.tsx": tsxString,
  "hello-world.mdx": mdxString,
})

About

Generate rich documentation data for TypeScript and MDX codebases.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published