create-ngmd
v0.2.0
Published
Scaffold a NgMd Angular docs site. Run via `pnpm create ngmd@latest` / `npm create ngmd@latest` / `yarn create ngmd` / `bun create ngmd`.
Downloads
2,921
Maintainers
Readme
create-ngmd
Scaffold a new NgMd docs project.
Live demo: ngmd.netlify.app
pnpm create ngmd@latest my-docs
# or
npm create ngmd@latest my-docs
# or
yarn create ngmd my-docs
# or
bun create ngmd my-docsThen:
cd my-docs
pnpm install # or npm install / yarn / bun install
pnpm devOpen http://localhost:5173.
What you get
A working AnalogJS + Tailwind v4 + Shiki docs site with:
- File-based markdown routes — drop
.mdundersrc/content/, get a route - Authoring components: accordion, alert, badge, callout, card, card-grid, code-block, hero, image, pill, pill-row, step, tab, tabs, video, workflow (all under
src/app/ui/) - Toast notifications via
ToastService - Sticky translucent header, sidebar, breadcrumb, scroll-spy TOC, Cmd+K palette
- Per-page footer: prev/next navigation, edit-on-github, last-updated
- Heading anchor copy buttons, code-block copy buttons
- Build-time link guards (external + internal)
- Sitemap + robots.txt auto-generated
- Light / dark / auto theme with no-flash boot script
*Keywordinline auto-linking```ts file="src/foo.ts#L5-L20"code imports, group code tabs, line highlighting
See the NgMd repo for the feature list.
Next steps
- Edit
src/content/welcome.mdto make the first page your own. - Edit
src/ngmd.config.tsto set brand name, navigation, and accent. - Drop more
.mdfiles insrc/app/pages/orsrc/content/. - Build with
pnpm run build, deploydist/to any static host.
How it works
index.mjs (Node 20+, zero npm deps) copies template/ into the target directory and rewrites a few placeholders (package.json name, ngmd.config.ts brand, index.html title) so the new project matches the name you passed.
template/ is generated from the parent ngmd repo by build-template.mjs and is git-ignored. The prepublishOnly script regenerates it before every publish, so the npm artifact always carries an up-to-date starter.
To preview a scaffolded project locally without publishing:
node create-ngmd/build-template.mjs # populate create-ngmd/template/
node create-ngmd/index.mjs my-docs # scaffold ./my-docsLicence
MIT
