Learn about the original JSON-based contribution method. New contributors should use the MDX method instead.
This is the original JSON-based contribution method. While it still works, we recommend using the new MDX method for new contributions as it's much simpler and more user-friendly.
Learn the new MDX method insteadsrc/db/
(your doc's data), e.g., my-doc.json
.pnpm run build
locally. This will generate the docs index so your new doc is included.File: <your-doc>.json
Each doc file should include:
title
: Section or topic title (used for the card and route)description
: Short summary for the cardfilename
: The JSON file name in src/db/
id
: (optional) Internal referenceExample docs-index.json
entry:
{ "title": "Getting Started", "description": "Initialize your documentation project with a single command.", "filename": "getting-started.json" }
├── public │ └── logoIcon.png ├── README.md ├── src │ ├── app │ │ ├── all-docs │ │ │ ├── layout.tsx │ │ │ └── page.tsx │ │ ├── contribution-guide │ │ │ └── page.tsx │ │ ├── (main) │ │ │ └── <kebab-case-title> │ │ │ └── page.tsx │ ├── components │ │ └── documentation │ │ └── documentation-component.tsx │ ├── db │ │ ├── <your-doc>.json │ │ └── docs-index.json │ └── lib │ └── utils.ts
If you have existing JSON-based documentation, here's how to migrate to MDX:
src/docs/
with the same name as your JSON file.json
and page.tsx
files, then run pnpm run build
before pushing.We appreciate all contributors, whether you use the legacy JSON method or the new MDX approach. Every contribution helps make EasyGoDocs better! 🚀