From 51e0d50f2e90a0f022fed3f967e248b680aaf8f0 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Fri, 15 May 2026 19:51:14 +0700 Subject: [PATCH] docs: deployment guide + system architecture + code standards Adds comprehensive documentation for v0.5 release: deployment guide covering Vercel/Netlify/self-hosted options, system architecture overview, and code standards for theme development. Improves onboarding and contribution experience. --- themes/bonsai/docs/code-standards.md | 66 ++++++++++ themes/bonsai/docs/deployment-guide.md | 95 +++++++++++++++ themes/bonsai/docs/system-architecture.md | 140 ++++++++++++++++++++++ 3 files changed, 301 insertions(+) create mode 100644 themes/bonsai/docs/code-standards.md create mode 100644 themes/bonsai/docs/deployment-guide.md create mode 100644 themes/bonsai/docs/system-architecture.md diff --git a/themes/bonsai/docs/code-standards.md b/themes/bonsai/docs/code-standards.md new file mode 100644 index 0000000..6f58498 --- /dev/null +++ b/themes/bonsai/docs/code-standards.md @@ -0,0 +1,66 @@ +# Code standards + +How code in this theme is written and why. The goal is predictability — both for humans reading the diff and for LLM-driven tooling navigating the repo. + +## File naming + +- **Kebab-case** for all filenames: `link-button.html`, `theme-toggle.js`, `schema-website.html`. +- Long descriptive names beat short cryptic ones — `analytics-loader.html` is better than `al.html`. +- Hugo partials living under `layouts/partials/` use the `.html` extension even when they emit JSON-LD or `