Skip to content

docs: consolidate the duplicated Next.js scaffolding into the setup guide - #232

Open
omerbek wants to merge 2 commits into
0xMiden:mainfrom
omerbek:fix/webclient-setup-page
Open

omerbek wants to merge 2 commits into
0xMiden:mainfrom
omerbek:fix/webclient-setup-page

Conversation

@omerbek

@omerbek omerbek commented Aug 10, 2026 •

Copy link
Copy Markdown

Summary

Rebased on current main and narrowed: the five web-client tutorials no longer repeat the Next.js
scaffolding, they link to the setup guide instead.

Problem

counter_contract_tutorial.md, create_deploy_tutorial.md, creating_multiple_notes_tutorial.md,
foreign_procedure_invocation_tutorial.md and unauthenticated_note_how_to.md each carry the same
block: npx create-next-app@latest … --typescript, cd into the project, and the note that the
template defaults to Turbopack so dev and build must be pointed at webpack. Every SDK migration
(chore: migrate tutorials to Miden SDK v0.16, … v0.17) has had to touch all five copies.

Change

  • setup_guide.md gains a Create a tutorial project section holding that block once, including
    the Turbopack/webpack package.json note.
  • Each tutorial's Step 1 links to ./setup_guide.md#create-a-tutorial-project, mentioning the
    project name when it differs (miden-fpi-app for the FPI tutorial).
  • The per-tutorial SDK install steps are deliberately left in place: they differ per tutorial
    (plain yarn add, or the <CodeSdkTabs> react/typescript pair), so they are not duplication.

Net: 6 files, +35/−135. No prose was reworded beyond the replaced block.

Testing

  • prettier@3.8.4 --check on all six changed files → All matched files use Prettier code style!
    (same version/flag the Format Markdown workflow uses).
  • Anchor target verified to exist in setup_guide.md; the file already used the same
    ./setup_guide.md#… link style (#network-and-fee-setup).
  • npm run build:dev (the build-docs workflow) was not run locally.

Risk/compatibility

Docs only, no code or SDK-version changes. The risk is a reader following a link instead of inline
steps; all removed content is present verbatim in the guide section.

…uide

main has carried the same "create the Next.js app, cd into it, point dev and
build at webpack" block in five web-client tutorials, so every SDK bump has had
to edit five copies of it. Move that block into the setup guide as
"Create a tutorial project" and have each tutorial link to it. The per-tutorial
SDK install steps stay where they are, since the commands differ per tutorial.

Merges main and reapplies the change on the current v0.17 text.
@omerbek omerbek changed the title docs: consolidate WebClient setup steps docs: consolidate the duplicated Next.js scaffolding into the setup guide Nov 25, 2026
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