Skip to content

[Website] Move the quickstart into Getting Started #1182

Closed

Description

@SnowboardTechie

Summary

website/src/content/docs/getting-started.mdx scaffolds with cg init --template quickstart, then walks through the files and packages that command created ("Explore the files created by cg init", "Explore the packages installed by cg init"). ADR 0029 (#1089) retires cg init and moves the minimal quickstart into the guide itself.

Present the complete small TypeSpec project inline: main.tsp, routes.tsp, tspconfig.yaml, and either the package.json or an explicit dependency-install command. Readers create the files, install, then run cg compile and cg preview as today. Refresh the content against the current published @common-grants/core and TypeSpec compiler rather than copying the drifted templates/quickstart/ pins (^0.3.5 cannot resolve core 0.4.0). Drop the TypeSpec untrusted-template warning note, which only applied to tsp init.

This must land before the CLI retirement release so the guide never points at a removed command.

Acceptance criteria

  • Getting Started no longer runs cg init; a reader who creates the shown files and installs dependencies can run cg compile and cg preview successfully
  • The inlined project uses currently published @common-grants/core and compiler versions
  • Package-manager-specific commands for installing or invoking published CommonGrants npm packages are shown in synchronized <Tabs> for pnpm, npm, and bun, with pnpm first and selected by default; each documented path completes the quickstart through cg compile and cg preview
  • pnpm --filter website run build passes with valid internal links
  • CI compiles the Getting Started quickstart and the core README quickstart against the in-repo core on every core PR, so a change that breaks either one fails the PR

Activity

  1. self-assigned this
    on Oct 14, 2026
  2. laurabelinfante commented on Oct 20, 2026

    @laurabelinfante
    Collaborator

    Added an AC for compiling the quickstart in CI, per Kari's review on #1293. This came out of #1283, where the README quickstart had drifted and only turned up in the manual release check. Once this ticket puts the quickstart on Getting Started, there are two hand-written copies, so CI now checks both.

  3. added a commit that references this issue on Nov 3, 2026
    7dd3f18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationwebsiteIssues related to the website

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions