Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/app/(home)/components/code-block.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { transformerNotationHighlight } from '@shikijs/transformers';
import { codeToHtml } from 'shiki';
import { cn } from '@/lib/utils';

Expand All @@ -17,6 +18,7 @@ export const CodeBlock = async ({ code, lang, codeblock }: CodeBlockProps) => {
dark: 'github-dark-default',
},
defaultColor: false,
transformers: [transformerNotationHighlight()],
});

return (
Expand Down
4 changes: 2 additions & 2 deletions docs/app/(home)/components/implementation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from "./steps"

export async function userSignup(email) {
"use workflow";
"use workflow"; // [!code highlight]

// Create the user and send the welcome email
const user = await createUser(email);
Expand All @@ -30,7 +30,7 @@ export async function userSignup(email) {
import { FatalError } from 'workflow';

export async function sendWelcomeEmail(email) {
"use step"
"use step"; // [!code highlight]

const resend = new Resend('YOUR_API_KEY');

Expand Down
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@mdx-js/mdx": "^3.1.1",
"@radix-ui/react-presence": "^1.1.5",
"@radix-ui/react-tabs": "^1.1.13",
"@shikijs/transformers": "3.19.0",
"@tailwindcss/postcss": "^4.1.13",
"@types/mdx": "^2.0.13",
"@types/node": "catalog:",
Expand Down
35 changes: 28 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.