hatchet
hatchet copied to clipboard
Implement Shared Language Context and Enhanced Code Examples
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_TOKENto be set - The token should have repository read access
@lningthou is attempting to deploy a commit to the Hatchet Team on Vercel.
A member of the Team first needs to authorize it.
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 |
I'm assuming this depends on #824 and related PRs? I'm missing all the examples in the docs on vercel preview