Welcome to the Microcks website repository! This repository contains the source code for the official Microcks website, built with Docusaurus 3 and deployed on Netlify.
Open source cloud-native tool for API Mocking and Testing. Microcks leverages API standards to provide a uniform and multi-protocol approach, empowering your API and microservices lifecycle. It strengthens your ecosystem to create an adaptable API value chain #APIDevOps
To learn more about Microcks and its features, visit the Microcks website.
Requires Node.js 20 (see .nvmrc).
npm installthennpm start— dev servernpm run buildruns, in order:prebuild→scripts/ensure-descriptions.mjs: adds a deriveddescriptionto any doc/blog page without one (authored ones are never touched; this rewrites frontmatter, so commit the result).docusaurus build(also generatesllms.txt/llms-full.txt, using therootContentfromdocusaurus.config.js).scripts/preload-fonts.mjs: preloads the critical latin fonts in every page (avoids layout shift on font swap).scripts/generate-route-markdown.mjs: Markdown twins of every route (build/<route>.md).scripts/validate-machine-content.mjs: fails the build on missing/broken/non-canonicalllms.txtlinks, over-long entries, Markdown twins without the AI-agent directive or with non-absolute links.
npm test— unit checks;npm run check:parity— compares the live sitemap with the build
- Docs in
docs/, blog inblog/, home/community data insrc/data/home.js. See GUIDELINES.md for the writing rules. docs/andblog/are the source of truth. The original Hugo site lives in the archivedmicrocks/microcks.io-hugo.oldrepository.- Run
npm run optimize-imagesafter adding images tostatic/images. - Hugo shortcodes are gone: use plain Markdown images and
<ApiSpec kind="openapi|asyncapi" url="…" />in.mdxfiles.
Score 100/A+ with npx afdocs check <url> --canonical-origin https://microcks.io: a hidden llms-txt-directive in src/theme/Root.js, the main content placed before the sidebar/navbar in the DOM (src/theme/Layout, src/theme/DocRoot/Layout, restored visually with CSS order), and the HTML minifier disabled (swcHtmlMinimizer: false) because omitted </td>/</tr> tags break HTML parsers. Do not write Markdown images directly under an HTML tag without a blank line: they render as literal text.
- Colour mode has two states (light/dark), no "system" option.
- Global CSS lives in
src/css/custom.css; docs sidebar icons insrc/css/sidebar-icons.cssusemask-size: 100% 100%(needed for Safari/WebKit). - The GitHub star counter (
src/components/GithubStar) falls back to a hard-coded value when the unauthenticated API is rate-limited; update it occasionally. - The accent blue
#46aaf3and white-on-blue pairs fail WCAG contrast; kept deliberately for parity with the live site.
netlify.toml,static/_redirects,static/_headers, and the edge functionnetlify/edge-functions/content-negotiation.js(serves Markdown forAccept: text/markdown).noindex-netlify-host.jsaddsX-Robots-Tag: noindexon*.netlify.apphosts only, so the custom domain is unaffected.- Analytics (GA, Scarf) load only after cookie consent.
The release scripts (post-release.sh in microcks/microcks and microcks/microcks-operator) clone this repository, publish the release artifacts into static/helm, static/compose and static/operator, and push to main. They need push rights on this repository. After a release, check that https://microcks.io/helm/index.yaml lists the new version.
- Build and Test:
npm run buildandnpm teston every pull request and push tomain. - Spell Check:
misspellondocs/,blog/andsrc/pages/; add accepted words to.wordlist.txt. - Microcks Website Link Check: weekly (and on demand), internal and external links on a fresh build; broken links are reported in the "External Link Check Report" issue. Exclusions live in
.lycheeignore. - Agent-friendly docs check: weekly (and on demand), runs
afdocson https://microcks.io and opens an "agentdocsspec.com score dropped" issue if the score falls below 100. - Dependabot: weekly updates for npm and GitHub Actions.
- Pull requests also get a Netlify deploy preview.
Read the Documentation Guidelines and the Contribution Guidelines. See also GOVERNANCE, MAINTAINERS, AI-POLICY and the Code of Conduct. Questions or need assistance? Reach out to us: https://microcks.io/community/
By the community, for the community. 🙌
Thank you for helping us improve Microcks! Every contribution counts 💙