hatchet icon indicating copy to clipboard operation
hatchet copied to clipboard

Implement Shared Language Context and Enhanced Code Examples

Open lningthou opened this issue 1 year ago • 3 comments

PR: Implement Shared Language Context and Enhanced Code Examples

New Components and Features

1. LanguageContext

  • Implements a shared context for language selection
  • Ensures consistent language choices across the entire application

2. UniversalTabs Component

  • Builds upon Nextra's Tabs Component
  • Utilizes the shared LanguageContext for mirrored language selections across all instances

3. CodeCell Component

  • Serves as an enhanced alternative to standard markdown codeblocks
  • Renders codeblocks scraped from GitHub examples during buildtime

Codeblocks Scraper Script

Functionality

  • Automates the process of updating code examples
  • Scrapes codeblocks from specified GitHub repositories during buildtime via pnpm run build
  • Links to scrape can be configured within the script

Note: This script requires authentication to avoid GitHub API rate limiting.

  • Uses Octokit for GitHub API interaction
  • Expects process.env.GITHUB_TOKEN to be set
  • The token should have repository read access

lningthou avatar Aug 27 '24 23:08 lningthou

@lningthou is attempting to deploy a commit to the Hatchet Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Aug 27 '24 23:08 vercel[bot]

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

Name Status Preview Comments Updated (UTC)
hatchet-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 11, 2024 8:51pm

vercel[bot] avatar Sep 11 '24 20:09 vercel[bot]

I'm assuming this depends on #824 and related PRs? I'm missing all the examples in the docs on vercel preview

grutt avatar Sep 11 '24 20:09 grutt