Skip to content

Conversation

@tomi204
Copy link
Contributor

@tomi204 tomi204 commented Nov 13, 2025

Added a new Templates section to the documentation with comprehensive
guides for two Avalanche starter kits:

  1. x402 Starter Kit - Next.js template for payment-gated APIs and content services using the x402 protocol on Avalanche C-Chain

  2. EncryptedERC - Privacy-preserving ERC-20 token protocol with confidential transfers using zero-knowledge proofs

Features:

  • New Templates tab in docs navigation bar
  • Templates landing page with overview
  • Detailed x402 Starter Kit guide with step-by-step setup
  • Complete EncryptedERC guide with ZK-proof implementation
  • Hamburger menu with quick links to both templates

Files added:

  • content/docs/templates/index.mdx
  • content/docs/templates/meta.json
  • content/docs/templates/x402-starter-kit.mdx
  • content/docs/templates/encrypted-erc.mdx

Files modified:

  • lib/source.ts
  • app/docs/layout.tsx
  • app/docs/docs-layout-wrapper.tsx
  • components/navigation/docs-subnav.tsx
Screenshot 2025-11-13 at 04 28 47 Screenshot 2025-11-13 at 04 29 49

@tomi204 tomi204 requested a review from a team as a code owner November 13, 2025 07:39
@vercel
Copy link

vercel bot commented Nov 13, 2025

@tomi204 is attempting to deploy a commit to the Ava Labs Team on Vercel.

A member of the Team first needs to authorize it.

@tomi204
Copy link
Contributor Author

tomi204 commented Nov 13, 2025

Template Image:

Screenshot 2025-11-13 at 04 40 56

@vercel
Copy link

vercel bot commented Nov 13, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
builder-hub Ready Ready Preview Comment Nov 14, 2025 7:39pm

@tomi204
Copy link
Contributor Author

tomi204 commented Nov 13, 2025

Deployed x402 demo: x402-starter-kit-next.vercel.app

@Andyvargtz
Copy link
Collaborator

@tomi204 we require all commits to be verified to merge changes to master.

@navillanueva
Copy link
Contributor

@tomi204 can you resolve the merge conflicts + we might think about not having this under "templates"

inside of the build apps section of the left dropdown makes more sense to me @owenwahlgren

"---Overview---",
"index",
"---Standards Track ACPs---",
"236-continuous-staking",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why removing this ACP?

- Move x402-starter-kit and encrypted-erc from /docs/templates to /docs/dapps
- Update dapps/meta.json to include Starter Kits section
- Remove /docs/templates directory and meta.json
- Remove getTemplatesTree() function from lib/source.ts
- Update DocsLayoutWrapper to remove templates tree references
- Remove Templates tab from docs subnav

This addresses Owen's feedback to consolidate templates under the Build Apps section instead of having a separate Templates section.
@tomi204
Copy link
Contributor Author

tomi204 commented Nov 21, 2025

@navillanueva I moved the templates section to build dapps section and I fix the conflicts.

Screenshot 2025-11-21 at 17 56 00

@owenwahlgren
Copy link
Contributor

thanks for the PR tomi!
we are currently working on #3358 which dramatically simplifies the documentation and improves navigation / discoverability.
the /dapps and /quick-start sections are being removed.
we plan on adding a use case / template section soon where I will include these docs and demos you made.

Appreciate the work!

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.

5 participants