documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Tutorial versioning component

Open khadni opened this issue 1 year ago • 1 comments

  1. A new TutorialTabs component displays available tutorial versions, making it easy for users to switch between different environments or tools that are covered in our tutorials.

  2. Enhancements to the left sidebar ensure that the currently viewed page, including any "subpages" (e.g. /getting-started-hardhat) representing different versions of a tutorial, is accurately marked with aria-current="page".

preview

Code examples:

  • Remix and Hardhat:

    <TutorialTabs
      tutorials={{
        remix: "/data-streams/getting-started",
        hardhat: "/data-streams/getting-started-hardhat",
      }}
    />
    
  • Remix, Hardhat, and Foundry:

    <TutorialTabs
      tutorials={{
        remix: "/data-streams/getting-started",
        hardhat: "/data-streams/getting-started-hardhat",
        foundry: "<URL>"
      }}
    />
    

khadni avatar Feb 23 '24 17:02 khadni

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
documentation ✅ Ready (Inspect) Visit Preview May 30, 2024 8:11pm

vercel[bot] avatar Feb 23 '24 17:02 vercel[bot]