Search
Search documentation
Contributing
Updated Oct 31, 2026
Irondocs is an open-source project developed by the Datist team. Everyone is welcome to help shape it with bug reports, ideas and questions; code changes come from team members.
Contributors
Report a bug
Open an issue on GitHub Issues. A good report includes:
- the Irondocs version and how you use it
- the smallest input that reproduces the problem
- the output you got and the output you expected
Share an idea or ask a question
Use GitHub Discussions for anything that isn't a bug:
- Ideas: features and improvements you'd like to see
- Q&A: questions about using Irondocs
- Show and tell: projects built with Irondocs
Ideas the team picks up turn into issues.
Members
The rest of this guide is for Datist team members working on Irondocs.
Quick start
You'll need Node.js 24+, pnpm 11+ and, for the Python package, uv. Then:
git clone https://github.com/datisthq/irondocs.git
cd irondocs
pnpm install
pnpm startpnpm install also syncs the Python environment when uv is on your PATH. pnpm start boots the docs dev server so you can iterate on the site. To exercise every package:
pnpm testRepository layout
irondocs/
├── typescript/ # the npm package `irondocs` (irondocs/vite, irondocs/jest)
│ ├── actions/ # noun/verb action modules
│ │ ├── code/ # partitionCode — split a block's imports from its body
│ │ ├── markdown/ # parseMarkdown — find the test-tagged fences in a .md file
│ │ ├── project/ # createProject — the in-memory ts-morph project
│ │ └── test/ # renderTestModule — emit the test module the runner loads
│ ├── models/ # typed records: Block, Partition, Plugin
│ ├── plugins/ # the vite plugin and the jest transformer
│ ├── docs/ # the TypeScript pages of the docs site (Markdown)
│ └── vite.config.ts # the package's test config
├── python/ # the PyPI package `irondocs`, a uv project
│ ├── irondocs/ # the twin of typescript/: actions/, models/, plugins/pytest.py
│ └── docs/ # the Python pages of the docs site; doubles as doctests
├── .agents/skills/ # repo skills for coding agents (see AGENTS.md)
├── .livemark/ # docs-site escapes (theme, landing)
├── .scripts/ # repo-wide guards and the `pnpm squash` script
├── livemark.config.ts # config for the docs site
├── tsconfig.json
└── vite.config.ts # vite-plus shared config (format, lint, the guards' tests)The npm package ships typescript/build/ (compiled by tsgo); the PyPI package ships python/irondocs/ and registers itself with pytest through the pytest11 entry point. Everything else is for development. A change to shared behaviour lands in both packages.
Local commands
Run these at the repo root; each chains into the language sections with pnpm -C <section>.
| Command | What it does |
|---|---|
pnpm install | Install dependencies |
pnpm build | Build typescript/build/ and the Python wheel |
pnpm check:types | Type-check via tsgo --noEmit and ty check |
pnpm check:lint | Format check + lint (vp fmt, vp lint, ruff) |
pnpm check | pnpm check:lint && pnpm check:types |
pnpm format | Auto-fix formatting (vp fmt, ruff format) |
pnpm test:unit | Run the repo guards, every package's unit tests and the Python docs |
pnpm test | pnpm check && pnpm test:unit |
pnpm start | Run the docs dev server |
pnpm build:docs | Production build of the docs site |
pnpm scan | Secret and vulnerability scans (gitleaks, semgrep) |
A change is ready to push when pnpm test is green.
Code conventions
- TypeScript: strict mode is on. Don't use
any,as-casts, or non-null!without permission — flag it in the PR. - Imports: use full ESM paths with the
.ts(x)extension (from "./foo.ts").tsgorewrites them to.json emit viarewriteRelativeImportExtensions. - Comments: docstrings on exports only. Skip narrative
//comments inside function bodies. - File layout: high-level public items at the top, private helpers at the bottom.
- Tests: unit tests live next to the code as
<module>.unit.ts; run one fromtypescript/withvp test <file>. No "Arrange/Act/Assert" comments — the structure should be obvious. - Formatting: vite-plus via
pnpm format. 2-space indent, no semicolons, double quotes (LF, UTF-8). - Python: 3.12+, typed for
tywithoutAny; tests beside the module as<module>_unit.py, run one withuv run pytest <file>frompython/.
Proposing a change
- Open an issue first for anything bigger than a typo or a small bug. It's easier to align on direction before code.
- Branch from
mainwith a short descriptive name (e.g.fix-fence-scanner,feat-source-maps). - Write a focused commit history. Irondocs uses Conventional Commits — the prefix drives release-please:
fix:— bug fix → patch releasefeat:— new feature → minor releasechore:,docs:,refactor:,test:,perf:— no release- Only changes to the published package use
featorfix; never mark a commit breaking (!or aBREAKING CHANGE:footer)
- Run
pnpm testbefore pushing. The Python docs run as doctests; if you change a plugin's behaviour, the docs must agree. - Open a PR against
main. Describe the why (link the issue), include test-runner output for any UX-visible change, and call out anything reviewers should pay extra attention to.
Releases
Releases are driven by release-please: a feat or fix landing on main opens a Release PR, and merging it cuts the version, tags it and publishes to npm and PyPI. Each package has its own version. Maintainers don't bump versions manually.
Created with ❤ and Livemark