Skip to content

Shorten template pages to setup and use - #418

Merged
tnkuehne merged 2 commits into
mainfrom
template-readmes
Nov 26, 2026
Merged

tnkuehne merged 2 commits into
mainfrom
template-readmes

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Template pages were long developer manuals: roughly half of each template.md repeated the same deploy steps, approval levels, result statuses and generator instructions, and the rest mixed setup with internals. People reading the page next to Install need to know what the app does, what to set up and how to use it.

Changes

  • templates/*/template.md: each one now has a short intro, Set up (only the vendor steps the template actually needs, plus the own-OAuth-app case for GitHub, Linear and Microsoft) and Use it (agent prompt, widefleet connect, key method names). The 14 files went from about 15,000 to about 3,100 words. Frontmatter is unchanged.
  • apps/docs/docs/guides/app-templates.md: the one place for what all templates share: CLI install with --secret-file, connecting accounts, calling methods and selections, results, approval levels, customizing and regenerating a template.
  • templates/*/src/app.ts: usage notes for callers (paging, content and upload methods, Excel sessions, Teams chat members, Qonto payment approval, Strava IDs and so on) and the previous code example move into the entrypoint's TSDoc as @remarks and @example. The API documentation and describe publish them there, so agents see them where they call the methods.
  • Tests: updated the assertions that read old headings. templates.test.ts still checks that every called origin is declared in widefleet.jsonc. It no longer compares the network allow command in the README, because installs grant those origins and the CLI prints the command when it is needed.

Verification

  • All 14 templates pass pnpm typecheck and pnpm test.
  • packages/template-generator/src/templates.test.ts passes.
  • management-api.integration.test.ts and template-installs.integration.test.ts pass against local services.
  • blume validate finds no broken links. Formatting and lint are clean on the changed files.
  • I ran the service-docs WebAssembly module on teams, linear, qonto and gmail. The entrypoint documentation carries the new remarks and examples, with paragraphs and indentation intact.
  • The e2e change (Set up heading on the Gmail page) runs in CI.

Confidence Score: 5/5 · The PR appears safe to merge, with one non-blocking correction still needed in the copied-source instructions.RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge, with one non-blocking correction still needed in the copied-source instructions.

Findings

  1. P2 Copied templates miss required secrets ▶

Summary

Shortens all 14 template pages and moves shared instructions into the app-template guide.

  • Template pages show what each app does, how to set it up, and how to use it.
  • One guide explains the shared steps for installing, connecting, and using templates.
  • Each template’s API entrypoint carries usage notes and examples for its methods.

Reviews (2) · Last reviewed commit: "Name excluded operations, the Excel sess..." · Reviewed by Greptile

… behavior once

Each template.md now covers what a person needs on the template page: what the
app does, the setup it requires and how to use it from agents and apps. Calling
methods, results, approval levels and customizing a template move to the app
templates guide. Usage notes for callers move to each entrypoint's TSDoc, which
the API documentation and describe publish.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs cde0ef8 Nov 26 2026, 10:03 AM

Comment on lines +128 to +135
Open **View source** on the template page and copy the template's directory into
your project. Keep `pnpm-workspace.yaml` and `patches/` with the source. Then
deploy it like any other app:

```sh
pnpm install
pnpm test
widefleet deploy

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Copied templates miss required secrets

The copied-source recipe fails for a fresh Gmail app and other templates that require secrets. widefleet deploy sends the required secret names, but not their values, and the server rejects the deployment. Restore the steps to create the app and set its required secrets before deploying, or link to those steps here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in cde0ef8: the guide now separates changing an installed template app (same name, keeps its secrets) from deploying the copy as a new app, which creates the app and saves its required secrets first.

Comment thread templates/excel/src/app.ts Resolved
Comment thread templates/github/template.md Resolved
@tnkuehne
tnkuehne merged commit 21bc24f into main Nov 26, 2026
16 of 17 checks passed
@tnkuehne
tnkuehne deleted the template-readmes branch November 26, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant