• Stars
    star
    461
  • Rank 94,226 (Top 2 %)
  • Language
    TypeScript
  • Created over 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Effortless documentation with Next.js and MDX



Effortless documentation with Next.js and MDX




Warning: this project is no longer maintained, consider using Nextra or Notaku (suppports docs site grneration from Notion docs).

Sponsor:

Notaku

Notaku

πŸ”₯ Features

  • File based routing
  • SideBar automatically generated from mdx paths
  • Table of contents generated from headings
  • Dark Mode
  • Preview React Components inside jsx code blocks
  • Can be integrated with existing Nextjs app

Quick Start

We recommend creating a new Dokz app using create-dokz-app, which sets up everything automatically for you. To create a project, run:

npm init dokz-app
# or
yarn create dokz-app

After the installation is complete run npm run dev to start the development server. Try editing pages/index.mdx and see the result on your browser.

Manual Setup

warning: you should use npm init dokz-app if you don't have an existing next application

You can also install dokz in an existing nextjs application:

npm install dokz @emotion/react @chakra-ui/react @emotion/styled framer-motion

Add the dokz provider to the main nextjs entrypoint

// _app.jsx
import { DokzProvider } from 'dokz'
import { ChakraProvider } from '@chakra-ui/react'
import React from 'react'

export default function App(props) {
    const { Component, pageProps } = props
    return (
        <ChakraProvider>
            <DokzProvider headerLogo={<img src='/logo.svg' width='100px' />}>
                <Component {...pageProps} />
            </DokzProvider>
        </ChakraProvider>
    )
}

Add withDokz in the next.config.js file

const { withDokz } = require('dokz/dist/plugin')

module.exports = withDokz()

Create a new mdx document inside tha pages folder

# Heading

Ullamco ipsum id irure do occaecat minim. Cupidatat exercitation magna sit sunt aliqua voluptate excepteur amet dolor ea do. Consectetur veniam deserunt ullamco irure ullamco. Voluptate magna tempor elit voluptate velit enim dolor nulla sit fugiat exercitation. Anim deserunt Lorem aliquip cillum duis deserunt consequat sit culpa commodo.

> Node this is important

## Subjeading

Quis anim minim ullamco aliquip excepteur do pariatur eiusmod duis eu non. Duis deserunt Lorem nulla non duis voluptate dolore et. Do veniam mollit in do ad id enim anim dolore sint labore quis consequat.

To start developing your application run npm run dev. This starts the development server on http://localhost:3000.

Visit http://localhost:3000 to view your application.

More Repositories

1

genql

Type safe TypeScript client for any GraphQL API
TypeScript
616
star
2

vitro

Build and showcase your react components in isolation
TypeScript
397
star
3

esbuild-plugins

Collection of useful esbuild js plugins
JavaScript
244
star
4

mongoke

Python
216
star
5

bundless

Dev server and bundler based on esbuild
TypeScript
212
star
6

actions-cli

Monitor your GitHub Actions in real time from the command line
TypeScript
173
star
7

next-superjson

Automatically transform your Next.js Pages to use SuperJSON, without losing swc support
TypeScript
67
star
8

youtube-video-upload

Upload videos starting from a declarative yaml file
Python
36
star
9

bump-version

Action to bump version files
JavaScript
35
star
10

codebase-owners

Get the owners of a file tree using git
TypeScript
35
star
11

apollo-federation-gateway

A docker image to merge graphql servers using Apollo federation
TypeScript
34
star
12

mini-graphiql-playground

Graphiql playground for documentation websites
JavaScript
32
star
13

figma-gpt

TypeScript
32
star
14

compose-watcher

Watch volumes and restart services in docker compose
Python
27
star
15

smart-glob

Glob search in constant time thanks to git cache
TypeScript
25
star
16

split-classnames

Split long className attributes in jsx files
TypeScript
22
star
17

landing-blocks

Landing pages building blocks
TypeScript
20
star
18

profile-next-cold-starts

Next.js cold start profiling for the masses
17
star
19

baby-i-am-faded

Reveal animations using React and Emotion
TypeScript
15
star
20

middleflare

Deploy Next.js middleware to Cloudflare Workers
TypeScript
13
star
21

pypi

Shell
12
star
22

dark-github-theme

VSCode github dark theme
11
star
23

skema

Universal schema language that compiles to many type systems
Python
9
star
24

cloud-run-compose

Generate Google Cloud Run terraform plan from a docker-compose file
Python
8
star
25

es-module-traversal

Traverse the es modules import graph
JavaScript
7
star
26

lemonsqueezy-webhooks

Types and utilities for handling lemon-squeezy webhooks in JavaScript and TypeScript
TypeScript
7
star
27

react-virtualized-fixed-import

6
star
28

catalina-hackintosh

i7-7700k msi Z270 hackintosh
Rich Text Format
5
star
29

instagram-botnet

Use concise yaml files to control your botnet
Python
4
star
30

dashboard-blocks

Modern dashboards building blocks
TypeScript
4
star
31

tsc-shame

Shame your node_modules type checking speed
TypeScript
4
star
32

framer-motion-visualizer

Visualize framer-motion spring animations
TypeScript
4
star
33

cloud-run-node-sdk

Sdk to deploy cloud run services
TypeScript
3
star
34

server-actions-for-pages

Like Next.js server actions but for the pages directory
TypeScript
3
star
35

mongoke-examples

Examples of Mongoke services made using docker compose
JavaScript
3
star
36

smspva

node package to interact with smspva.com API
JavaScript
3
star
37

fixpls

Fix your compiler errors automatically with GPT
TypeScript
3
star
38

lenskit

Product photography with AI
TypeScript
2
star
39

beskar

TypeScript
2
star
40

vite-esbuild-optimizer

Convert your dependencies to ESM bundles using esbuild
TypeScript
2
star
41

python-lib-template

Python
2
star
42

form-blocks

Forms easy to use and compose
TypeScript
2
star
43

layout-kit-react

Components to easy and modern layouts
TypeScript
2
star
44

setup-typescript-monorepo

setup typescript monorepo tsconfig files and package.json entrypoints
TypeScript
2
star
45

edit-this-page

TypeScript
2
star
46

bundless-benchmark

JavaScript
2
star
47

react-extra-hooks

TypeScript
2
star
48

s3-filepond-uploads-container

Container to upload files to s3 when filepond makes a new upload from the frontend
Go
2
star
49

inline-styled

Tailwindcss as react properties
TypeScript
2
star
50

tartiflette-plugin-apollo-federation

Plugin to compose your Tartiflette Graphql service in an Apollo federation
Python
1
star
51

graphql-easy-mocks

Mock server for graphql frontend development
TypeScript
1
star
52

nextjs-website-template

TypeScript
1
star
53

next-13-bug

1
star
54

async-graphql

Async graphql client for python
Python
1
star
55

react-landing-components

Components for creating a landing page
TypeScript
1
star
56

notion-custom-blocks

TypeScript
1
star
57

website-downloader

Download a website and all its js modules
TypeScript
1
star
58

auto-bet

Automate bets
TypeScript
1
star
59

react-graphql-parcel

template
TypeScript
1
star
60

ip-homeworks

qui ci stanno i compiti di IP
1
star
61

generic-repost-routine

Python
1
star
62

react-multi-step

demo: https://react-multi-step.xmorse.now.sh
TypeScript
1
star
63

puppeteer-script

Execute actions through a readable YAML script
TypeScript
1
star
64

gatsby-landing

Gatsby starter
TypeScript
1
star
65

lambda-containers

container that wrap lambda functions
Dockerfile
1
star
66

repro-next-verce-base-path

JavaScript
1
star
67

get-git-config

TypeScript
1
star
68

f-redux

Manage global shared state easily via hooks
TypeScript
1
star
69

populate-mongo

Generate fake data to populate mongodb for demos and tutorials
Python
1
star
70

vercel-repro-plus-encoded-as-space

CSS
1
star
71

graphql-go-subscription-example

Go
1
star
72

try-next-getserversideprops-edge

TypeScript
1
star
73

compound

Deploy docker-compose services as scalable serverless containers
Python
1
star
74

prtty

Dumb pretty function for python
Python
1
star
75

firebase-react-components

TypeScript
1
star
76

react-isomorphic-context

Experimental React context that can be used both on client and server components
TypeScript
1
star
77

repro-edge-basepath-next

CSS
1
star
78

fly-node-api

Type safe client for the Fly.io Graphql API
TypeScript
1
star
79

workers-kv-in-vercel

TypeScript
1
star
80

instagram-botnet-gateway

1
star
81

react-apollo-the-easy-way

Boilerplate and peer dependencies for a react apollo app
TypeScript
1
star
82

amv-generator

Create an anime music video based on a music track.
Python
1
star
83

nextjs-template

TypeScript
1
star
84

sanity-nextjs-landing-pages

Next.js landing pages
JavaScript
1
star
85

next-text-decoder-repro

1
star
86

pnpm-store-contains-url-characters

1
star
87

laboratorio-3-asd

C++
1
star
88

is-next-app-ready

1
star
89

nextjs-edge-vercel-stale-while-revalidate-bug

CSS
1
star
90

slashkit-test-suite

Testing the stability of Slashkit: host any website on a subdirectory of your domain.
TypeScript
1
star
91

vite-plugin-nft

TypeScript
1
star
92

modeller

Generate models from json schema
Python
1
star
93

react-graphql

template
TypeScript
1
star
94

workspace-info

Yarn workspace info for yarn v2 and any other similar workspaces implementation
TypeScript
1
star
95

email-forwarder

Verifiy email via instances of chrome
TypeScript
1
star