docs(book): guide chapter first project #619
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/607-guide-first-project"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
book/guide/first-project.md: one stock-shelf program grows from a single file to a project (torb new, layout,torb test), a native build (torb build), a workspace with a sibling dependency by name, and a registry dependency (torb add, runtime vs development,project.lock.trb, capabilities). Shows "One tool, two speeds" and "Every case is handled". Every example was run with the nightlytorb; the outputs are real.book/guide/index.mdand the skills are regenerated.Old pages
docs/guide/a-small-program.md, with its links (modules-and-packages.md,idiomatic-torbscript.mdprerequisite,internals/inventory.mdrow, guide index).docs/, unpublished:docs/guide/installing-and-running.md,docs/how-to/set-up-a-workspace.md,docs/how-to/add-a-dependency.md. The skillstorbscriptandtorbscript-projectsstill build from them, so deleting them would remove skill pages.Checks
torb docs index --check book|docs,torb docs site book --checkandtorb docs skill --check docs skillspass.torb docs check bookwas run with the nightly, whose checker predates theoutput/pagerules (it also flagshandling-errors.md), so the only findings on the new page are those stale rules; CI has the current checker. No gates run locally.Closes #607
Checklist (head
c066bd7):gates(runsdocs check book,docs index --check book|docs,docs site --check,docs skill --check). Documentation only, no logic changed.book/CONCEPT.md: front matter complete, first paragraph is three sentences, no issue numbers or internal links, no history words, no Related/Next sections, lists short, theEvery case is handlederror block matches its source position (9:9).a-small-program.mdand removing its links (modules-and-packages, idiomatic-torbscript, inventory, guide index) also updates the generated skill copies. No remaining reference to the deleted page outsideCONCEPT.md's mapping table. The three pages the skills still build from stay indocs/, named with the reason in the PR body, as the issue asks.Non-blocking:
use greeting from "torb/hello"in "A dependency comes from the registry" is a one-line fragment, and theHello, stock keeper!line in the following output is not produced by anything the reader can see (noprint greeting...). Showing the changed top ofmain.trbwould make the step reproducible.consoleblock rather than atrb errorblock withoutput. It spans a workspace, so this may be unavoidable; a sentence saying it is the output oftorb checkfrompackages/appis enough.