All Projects → jxnblk → Mdx Docs

jxnblk / Mdx Docs

Licence: mit
📝 Document and develop React components with MDX and Next.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Mdx Docs

X0
Document & develop React components without breaking a sweat
Stars: ✭ 1,706 (+314.08%)
Mutual labels:  documentation, docs, markdown, mdx
Docz
✍ It has never been so easy to document your things!
Stars: ✭ 22,020 (+5244.66%)
Mutual labels:  documentation, docs, mdx, design-system
Foliant
Comprehensive markdown-based documentation toolkit
Stars: ✭ 74 (-82.04%)
Mutual labels:  documentation, docs, markdown
Gatsby Documentation Starter
Automatically generate docs for React components using MDX, react-docgen, and GatsbyJS
Stars: ✭ 91 (-77.91%)
Mutual labels:  documentation, docs, mdx
Assemble
Community
Stars: ✭ 3,995 (+869.66%)
Mutual labels:  documentation, docs, markdown
Docsify Tabs
A docsify.js plugin for rendering tabbed content from markdown
Stars: ✭ 65 (-84.22%)
Mutual labels:  documentation, docs, markdown
Docnado
Rapid documentation tool that will blow you away...
Stars: ✭ 67 (-83.74%)
Mutual labels:  documentation, docs, markdown
Docma
A powerful tool to easily generate beautiful HTML documentation from JavaScript (JSDoc), Markdown and HTML files.
Stars: ✭ 287 (-30.34%)
Mutual labels:  documentation, docs, markdown
Bluedoc
An open-source document management tool for enterprise self host.
Stars: ✭ 579 (+40.53%)
Mutual labels:  documentation, docs, markdown
Vue Styleguidist
Created from react styleguidist for Vue Components with a living style guide
Stars: ✭ 2,133 (+417.72%)
Mutual labels:  documentation, markdown, design-system
Typemill
TYPEMILL is a simple and lightweight Flat-File-CMS for authors and publishers.
Stars: ✭ 150 (-63.59%)
Mutual labels:  documentation, docs, markdown
Press
Minimalist Markdown Publishing for Nuxt.js
Stars: ✭ 181 (-56.07%)
Mutual labels:  documentation, docs, markdown
Parse Comments
Parse JavaScript code comments. Works with block and line comments, and should work with CSS, LESS, SASS, or any language with the same comment formats.
Stars: ✭ 53 (-87.14%)
Mutual labels:  documentation, docs, markdown
Vuesence Book
Minimalistic Vue.js based documentation system component
Stars: ✭ 48 (-88.35%)
Mutual labels:  documentation, docs, markdown
Mdx Go
⚡️ Lightning fast MDX-based dev server for progressive documentation
Stars: ✭ 340 (-17.48%)
Mutual labels:  documentation, markdown, mdx
Docs
Documentation of Vercel and other services
Stars: ✭ 663 (+60.92%)
Mutual labels:  documentation, docs, mdx
Catalog
Create living style guides using Markdown or React
Stars: ✭ 1,527 (+270.63%)
Mutual labels:  documentation, docs, markdown
Verb
HEADS UP! Verb is going though a major transition, we've completely refactored everything from the ground up. If you're interested, please see the dev branch.
Stars: ✭ 442 (+7.28%)
Mutual labels:  documentation, docs, markdown
Docsify
🃏 A magical documentation site generator.
Stars: ✭ 19,310 (+4586.89%)
Mutual labels:  documentation, docs, markdown
Gitdocs
Easy to use, SEO-friendly, beautiful documentation that lives in your git repo.
Stars: ✭ 252 (-38.83%)
Mutual labels:  documentation, docs, markdown

MDX Docs

📝 Document and develop React components with MDX and Next.js

https://mdx-docs.now.sh/

Build Status Downloads Version MIT License

npm init docs
  • 📝 Create documentation with markdown
  • ⚛️ Import and use React components
  • ⚙️ Component-based API
  • 💻 Live code examples
  • 💅 Customizable themes
  • ▲ Built for Next.js

Getting Started

To create a new documentation site, run npm init docs and follow the prompts. Once the application has been generated, see the README.md for more documentation.

To add MDX Docs to an existing Next.js app, see the Custom Setup docs.

Using MDX

MDX lets you mix markdown with inline JSX to render React components. Write markdown as you normally would and use ES import syntax to use custom components in your document.

import { Box } from 'grid-styled'

# Hello MDX!

<Box
  p={3}
  bg='tomato'>
  This will render as a component
</Box>

Live Code

MDX Docs has built-in components to render JSX fenced code blocks as live previews with editable code, powered by react-live. To make a code block render as an editable example, use the .jsx language attribute (note the . prefix).

Live code example:

```.jsx
<button>Beep</button>
```

Components Scope

To add components to scope for use in the live code examples, pass a components object to the Layout component.

// example components
import React from 'react'

export default {
  Box: props => (
    <div
      {...props}
      style={{
        padding: '32px',
        backgroundColor: 'tomato'
      }}
    />
  )
}
// example _app.js
<Layout
  {...this.props}
  components={components}>
  <Layout.Main>
    <Component {...page} />
  </Layout.Main>
</Layout>

The components object can also include components to render the HTML elements in MDX.

Documentation


Prior Art

mdx-go, Compositor x0, mdx-deck, live-doc, Doctor Mark, docz

Related

Next.js, MDX, react-live

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].