Development Setup
Development Setup
Contributing to docmd Core
Want to contribute to the core docmd framework? See the GitHub Contributing Guide for repository setup instructions.
This guide covers building and updating this documentation repository (docmd-io/docs).
Prerequisites
- Node.js: v22.x or later (LTS recommended)
- pnpm: v10.x or later
Local Development
git clone https://github.com/docmd-io/docs.git
cd docs
pnpm install
npx @docmd/core dev
The local development server launches at http://localhost:3000 with instant Hot Module Replacement (HMR).
Linking Local Framework Code
To test local changes made within docmd-io/docmd against this documentation site:
# Inside the docmd framework repository
pnpm build
# Inside this docs site repository, link the local build
npx @docmd/core link ../docmd/packages/core
Restart npx @docmd/core dev to apply local framework build updates.
Quality Gates
Run the verification pipeline prior to submitting Pull Requests:
# Lint Markdown files and check link integrity
pnpm lint
# Run complete verification pipeline (lint + build + dead-link check)
pnpm verify
Translations Workflow
Workflow for adding or updating localized content in de/ and zh/:
- Update the canonical English source files in
docmd-main/v09/en/.... - Mirror edits in
de/andzh/under matching paths while preserving frontmatter keys, container markers, and code snippet file titles. - Run
pnpm verifyto confirm link integrity.
Project Directory Layout
docs/
├── docmd-main/v09/
│ ├── en/ # Canonical English source
│ ├── de/ # German translations (mirrors en/)
│ ├── zh/ # Chinese translations (mirrors en/)
│ └── navigation.json # Shared navigation hierarchy
├── docmd-search/ # Search engine assets
├── docs/ # Sub-project targets
└── package.json
What’s Next
- Building Plugins — write a custom docmd plugin.
- Plugin Examples — see a complete plugin walkthrough.
- Building Templates — author a docmd template.
- Node API Reference — programmatic build API.