Docs site¶
The docs site is built with MkDocs and the Material theme. Most of its pages are generated from the repository, so the site cannot drift from the skills:
scripts/build-docs.mjsreadsskills/,rules/, anddocs/, and writes the site source tobuild/site-src/. Every skill gets a page with its description, procedure, reference notes, and evaluation tasks. Every rule and every guide indocs/gets a page too.website/holds the hand-written pages: the home page, getting started, and the Persian overview.website/categories.jsongroups the skills into catalog sections. The build fails if a skill is missing from it or listed twice.mkdocs.ymlholds the theme and Markdown settings. The generator writesbuild/mkdocs.yml, which inherits it and adds the navigation.
Build it locally:
pip install -r requirements-docs.txt
node scripts/build-docs.mjs
mkdocs build --strict -f build/mkdocs.yml
Use mkdocs serve -f build/mkdocs.yml for a live preview. The build/ and site/ directories are generated and are not committed.
Deploys¶
The CI workflow runs the same strict build on every pull request. .github/workflows/pages.yml builds the site and deploys it with GitHub Pages when commits land on main. The repository uses GitHub Actions as the Pages source. The workflow skips the deploy while the repository is private.
The site is served at https://sadrmanesh.github.io/commerce-agent-skills/.
Releases¶
.github/workflows/release.yml runs when a vX.Y.Z tag is pushed, or by hand with a version. It checks that the version matches package.json, runs the validator, evals, and tests, tags the version when run by hand, creates the GitHub release if it does not exist, and publishes @sadrmanesh/commerce-agent-skills to npm with the NPM_TOKEN repository secret.