* claim: #5237 command-level guide follow-up * docs: add practical command guides and resource contributions (#5237) * docs: index practical guides and reject incomplete command links
This commit is contained in:
committed by
GitHub
parent
66b872a749
commit
91638cb1f3
@@ -23,6 +23,7 @@
|
||||
# Developer guide
|
||||
|
||||
- [Contributing](dev/contributing.md)
|
||||
- [Command guides and community resources](dev/command-guides.md)
|
||||
- [Architecture](dev/architecture.md)
|
||||
- [UI kit](dev/ui-kit.md)
|
||||
- [Extensible library proposal](dev/libraries.md)
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
# Contributing command guides and resources
|
||||
|
||||
The command reference combines the live command registry with reviewed Markdown
|
||||
guides. A guide appears **inside its command's entry**, before the collapsed
|
||||
automation syntax. You can improve one entry without rewriting the whole manual.
|
||||
The reference's **Practical guides** list automatically links to every available
|
||||
guide; adding a guide does not require editing an index or Rust code.
|
||||
|
||||
## Add or improve an entry
|
||||
|
||||
1. Find the command in the [reference](../reference/commands.md). Its ID is in
|
||||
**Automation details**.
|
||||
2. Copy the [guide template](https://github.com/tangency-labs/solidcraft/blob/main/docs/book/command-guide-template.md)
|
||||
to `docs/book/command-guides/<command-id>.md`, or edit its existing file.
|
||||
For example, Extrude lives in `solid.extrude.md`.
|
||||
3. Explain what the tool does, what must exist or be selected first, the dialog's
|
||||
choices in a table, a short example, and useful DOs and DON'Ts. Use plain
|
||||
language rather than copying the raw automation parameters.
|
||||
4. Add related commands and any checked community resources, then open a pull
|
||||
request. Documentation changes are reviewed like code.
|
||||
|
||||
Do not edit the generated `src/reference/commands.md`: rebuilding replaces it.
|
||||
The generator rejects guide filenames whose command is absent from the registry.
|
||||
Names, groups, shortcuts and automation parameters continue to come from that
|
||||
registry; handwritten explanations remain editable independently.
|
||||
|
||||
Use fourth-level headings (`####`) inside an entry so the command remains the
|
||||
parent section. Write image and page paths relative to the **generated reference
|
||||
page**, `docs/book/src/reference/commands.md`, not to the input guide file.
|
||||
For example, `../generated/sheet-metal.png` and `../guide/sheet-metal.md`.
|
||||
|
||||
## Related commands
|
||||
|
||||
Write a command link as `{{#command sheet.hem}}`. The generator inserts its
|
||||
current name and links directly to that command. Unknown or missing command IDs
|
||||
and unfinished directives fail the book build, helping contributors catch stale links.
|
||||
Normal Markdown links can point to guide pages or external resources.
|
||||
|
||||
## Community resources
|
||||
|
||||
You can add a focused tip, a short demo, a model or an illustrative screenshot
|
||||
to the entry's resource table. Explain what the reader learns from each link;
|
||||
include author and licence information. Links are reviewed, not automatically
|
||||
collected from the web. A resource need not cover the whole command.
|
||||
|
||||
Use original SolidCraft examples or openly licensed resources with permission
|
||||
to share. Do not use designs, screenshots, help text or artwork extracted from
|
||||
commercial CAD products, or GPL/LGPL/AGPL code. Prefer small public-safe examples
|
||||
and remove private designs, paths and account information from evidence.
|
||||
|
||||
For a new file asset, follow `assets/AGENTS.md` and add its attribution in a new
|
||||
`attribution/pending/<change>.md` file. A reproducible recipe in
|
||||
`docs/book/scripts/` can be rendered by the book builder; generated images stay
|
||||
out of Git. Existing examples demonstrate both inline pictures and resource links.
|
||||
|
||||
## Preview and review
|
||||
|
||||
Run `cargo xtask book` with mdBook installed, inspect the command entry and its
|
||||
links, and check the example in SolidCraft. Confirm the required selection,
|
||||
units, defaults and limitations against the implementation. Show reviewers an
|
||||
actual before/after screenshot of the rendered entry. Repository quality gates
|
||||
still apply before a commit.
|
||||
|
||||
## Copyable template
|
||||
|
||||
````markdown
|
||||
{{#include ../../command-guide-template.md}}
|
||||
````
|
||||
@@ -1,5 +1,8 @@
|
||||
# Solid features
|
||||
|
||||
For prerequisites, a readable options table and a first example, open the
|
||||
[practical Extrude guide](../reference/commands.md#command-solid.extrude).
|
||||
|
||||
Features live on the **timeline** and rebuild incrementally from the first one that changed.
|
||||
Each one can be edited (double-click), suppressed, renamed, reordered (if nothing it depends on
|
||||
moves after it), rolled back to, and deleted. Deleting asks first when other features depend on
|
||||
|
||||
@@ -4,9 +4,10 @@ MODEL → MODIFY offers Convert to Sheet Metal. The SHEET METAL tab is always av
|
||||
and selected when the active body is a sheet), and builds parts from a sheet of constant thickness under a **sheet metal rule**
|
||||
(thickness, bend radius, K-factor), set in **Sheet Metal Rules** (`sheet.manage_rules`).
|
||||
|
||||
- **Flange** (`sheet.flange`): a base flange from a sketch profile, a contour flange from an open
|
||||
- [**Flange**](../reference/commands.md#command-sheet.flange): a base flange from a sketch profile, a contour flange from an open
|
||||
sketch, or an edge flange from a part edge.
|
||||
- **Hem** (`sheet.hem`) and **Fold** (`sheet.fold`) along a sketch line.
|
||||
- [**Hem**](../reference/commands.md#command-sheet.hem) returns a sheet edge back toward the sheet; no new sketch is required.
|
||||
- **Fold** (`sheet.fold`) bends the sheet along a sketch line.
|
||||
- **Unfold / Refold** (`sheet.unfold`, `sheet.refold`) for working on the flat part.
|
||||
- **Convert** (`sheet.convert`) turns a plate of constant thickness into sheet metal, or, with
|
||||
bend edges, a solid or a shelled body.
|
||||
|
||||
Reference in New Issue
Block a user