EzyCad documentation style
Use this guide when editing user-facing Markdown in docs/ (usage.md, usage-*.md, scripting.md, plus building-occt.md, bugs.md, the two style guides, etc.) and the root README.md / CHANGELOG.md. For C++ in src/, see ezycad_code_style.md.
Published HTML: https://ezycad.readthedocs.io/ (/en/latest/ tracks main). Build plumbing is described in readthedocs.md.
Canonical files (edit these)
All live together under the single docs/ folder:
File |
Purpose |
|---|---|
|
Main usage guide |
|
2D sketching |
|
Settings pane and JSON |
|
3D viewer (OCCT) |
|
Lua / Python consoles |
|
Building Open CASCADE (desktop + WebAssembly) |
|
Known issues / sharp edges |
|
C++ style (in |
|
This file – Markdown / user docs style |
|
Project overview |
|
Release notes (Keep a Changelog) |
Writing conventions
Audience: Machinists and hobby CAD users; prefer plain language and short steps.
Headings: Use
##/###for sections Sphinx/MyST can index; keep a stable Table of Contents inusage.mdwhen adding major sections.Keyboard shortcuts: Use
<kbd>Tab</kbd>,<kbd>Ctrl</kbd>+<kbd>Z</kbd>, etc. They render on Read the Docs via MyST.Tables: GFM pipe tables are fine on Read the Docs.
Cross-links: Link other guides as
usage-sketch.md,usage-settings.md#view-menu, or#anchorwithin the same file. Prefer anchors that match heading text (MyST slugifies headings for URLs).Encoding: The ASCII-only rule in
ezycad_code_style.mdapplies tosrc/, not to these guides; Unicode in user docs is acceptable when it helps clarity.
Images
Kind |
Path |
Syntax |
|---|---|---|
Toolbar icons |
|
|
Screenshots / diagrams |
|
|
Rules:
Use Markdown image syntax only. Do not use raw HTML
<img src="...">— Sphinx will not rewrite the path and images will break on Read the Docs.Commit new screenshots under
docs/images/.Commit toolbar icons under
res/icons/.After changes, run
sphinx-build -b html -W docs docs/_buildlocally, or rely on the Read the Docs build (it hasfail_on_warning: true).
Links from the application
Help → Usage Guide should open Read the Docs, e.g.
https://ezycad.readthedocs.io/en/latest/usage.html, not a GitHub blob URL.In-app help tooltips (Settings ? buttons, etc.) should use the same base URL and heading anchors (e.g.
#view-roll).When you rename a heading, check for broken anchors in
src/(grep forreadthedocs.ioand old#fragments).
Build and CI (reference)
Everything documentation-related now lives under the single docs/ folder at the repository root. This is the only directory contributors need to care about for docs.
Item |
Location |
|---|---|
Read the Docs config |
|
Sphinx config + content |
|
Python deps |
|
GitHub Actions verification |
pip install -r docs/requirements.txt
sphinx-build -b html -W docs docs/_build