Skip to content

Conversation

@gnidan
Copy link
Member

@gnidan gnidan commented Oct 31, 2024

This PR defines a custom-written example smart contract in a fictional language and sets up website code infrastructure for displaying this example as an interactive widget on its own page.

This uses the TypeScript types provided by the @ethdebug/format package and imports the Shiki syntax highlighter instead of using Docusaurus's default Prism.js, since Prism doesn't support decorations/highlighting for ranges that don't span entire lines.

Preview deployment

Base automatically changed from programs to main November 8, 2024 04:26
@gnidan gnidan force-pushed the program-example branch 6 times, most recently from 5ec2100 to b7647df Compare February 5, 2025 21:07
@gnidan gnidan changed the base branch from main to packages February 5, 2025 21:07
Base automatically changed from packages to main February 7, 2025 00:54
- Define first example program
- Use Shiki code highlighter because it supports inline decorations
- Setup ProgramExample React.Context stuff with state for selecting
  instructions
- Document example program and make sure it looks nice
@gnidan gnidan marked this pull request as ready for review February 8, 2025 00:08
@gnidan gnidan merged commit 4914636 into main Feb 8, 2025
3 checks passed
@gnidan gnidan deleted the program-example branch February 8, 2025 00:48
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.

2 participants