-
Notifications
You must be signed in to change notification settings - Fork 0
Where the Docs Live
Generated from the thetowersdk repository. Edits made here are overwritten on the next push — change the source file instead.
| Surface | What it is | Edit it? |
|---|---|---|
| thetowersdk website | Browsable docs, live demos, runnable examples | Generated |
| This repo | The source of truth: this README, docs/, examples/, templates/
|
Yes |
| GitHub wiki | The same content, page-per-section, for reading on GitHub | No — generated |
Three surfaces, one source. Everything downstream is rendered from the files in this repository by one command, so there is nothing to remember to update:
npm run docs:seed # regenerate the wiki pages and the shared code snippets
npm run docs:check # fail if any of them are stale (runs in `npm run verify`)The wiki is rendered by scripts/build-wiki.mjs. A GitHub wiki is a
separate repository that no pull request reviews, so hand-editing it would create a third docs
surface that silently drifts — every page carries a banner saying so, and an edit made there is
overwritten on the next push.
Code samples shared with the website come out of
scripts/build-doc-snippets.mjs, which extracts marked regions
from files that npm run examples:run executes. A hand-copied sample is correct on the day it
is pasted and silently wrong afterwards; an extracted one fails in CI before it can reach a page.
// >>> snippet: bot-in-one-line
const bot = createTowerBot({ commands: calculatorCommands() })
// <<< snippetThe link checker is strict on purpose: a relative link that escapes the package root resolves in the authoring monorepo but 404s in the published repo, and it has found live ones.
Generated from TheTowerSDK — do not edit here. Docs and live demos: https://tmrxjd.github.io/TheTowerSDK/
- Quick Start
- Entry Points
- How It Fits Together
- Getting a Save File
- Reading a Save
- Reading The Community Wiki
- Formulas
- Builders
- Charts
- Effective Paths
- Examples
- Templates
- Building a Bot On This
- Google Sheets
- Desktop and Mobile
- Optional Add-ons
- Using It With An AI Agent
- Using Your Own Artwork
- Names And Acronyms
- Patch Notes
- Accuracy
- Versioning
- Where the Docs Live
- Contributing
- Credits
- License
Guides
Examples
- 01-browse-game-data.ts
- 02-read-a-save-file.ts
- 03-plan-upgrades-from-a-save.ts
- 04-generate-a-chart.ts
- 05-generate-a-cost-table.ts
- 06-read-the-community-wiki.ts
- 07-format-like-the-game.ts
- 08-build-a-calculator.ts
- 09-build-a-bot.ts
- 10-read-a-sheet.ts
- 11-build-a-knowledge-base.ts
- 12-show-module-and-card-art.ts
Templates