Skip to content

Commit 236bc2f

Browse files
committed
chore: revert previous changes
1 parent b4edf24 commit 236bc2f

4 files changed

Lines changed: 3 additions & 20 deletions

File tree

src/components/AnnotatedCode/index.astro

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
---
22
import { codeToHtml } from 'shiki';
3-
import "../../../styles/global.scss";
4-
5-
63
import { JSDOM } from 'jsdom';
74
const { props } = Astro;
85
@@ -55,12 +52,9 @@ const code = rows.map((row) => row.code).join('');
5552
// Convert it to HTML with style tags
5653
const html = await codeToHtml(code, {
5754
lang: props.lang || 'javascript',
58-
theme: props.theme || 'github-light-high-contrast',
55+
theme: props.theme || 'github-light',
5956
})
6057
61-
console.log("Shiki theme in use:", props.theme || 'github-light-high-contrast');
62-
console.log(html.slice(0, 300));
63-
6458
// Turn it into a DOM tree we can query
6559
const parsed = new JSDOM(html)
6660
const dom = parsed.window.document

src/components/CodeEmbed/index.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ import { CodeFrame } from "./frame";
88
import { CopyCodeButton } from "../CopyCodeButton";
99
import CircleButton from "../CircleButton";
1010
import { Icon } from "../Icon";
11-
import { githubLight } from '@uiw/codemirror-theme-github';
12-
13-
1411
/*
1512
* A more featured code embed component that uses CodeMirror
1613
*
@@ -126,7 +123,7 @@ export const CodeEmbed = (props) => {
126123
<div className="code-editor-container relative w-full">
127124
<CodeMirror
128125
value={codeString}
129-
theme= {githubLight}
126+
theme="light"
130127
width="100%"
131128
minimalSetup={{
132129
highlightSpecialChars: false,

src/components/Nav/styles.module.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,3 @@
287287
margin-top: 10px;
288288
}
289289

290-
/* Force 'function' keyword to have better contrast */
291-
code span[style*="#D73A49"] {
292-
color: #000 !important;
293-
}

src/content/tutorials/en/layered-rendering-with-framebuffers.mdx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,7 @@ function draw() {
191191

192192
By default, `p5.Framebuffer`s are not drawn to the screen. The main canvas is the only thing shown at the end of `draw()`. To make the contents of a `p5.Framebuffer` visible, it has to be stamped upon the main canvas. This is typically done with a call to `image(yourFramebuffer, x, y, width, height)`. Similar to the main canvas, a `p5.Framebuffer` only gets cleared when you ask it to be cleared, so you can stamp it on the main canvas as many times as you want, like in the example below.
193193

194-
<AnnotatedCode
195-
lang="javascript"
196-
columns={true}
197-
theme="light-plus"
198-
code={({ begin, end }) =>
194+
<AnnotatedCode lang="javascript" columns={true} code={({ begin, end }) =>
199195
`${begin('header')}
200196
201197
${end('header')}

0 commit comments

Comments
 (0)