Skip to content

Commit f07b277

Browse files
coseeianksen0
authored andcommitted
chore: revert previous changes
1 parent 2d9ad3d commit f07b277

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
*
@@ -130,7 +127,7 @@ export const CodeEmbed = (props) => {
130127
<div className="code-editor-container relative w-full">
131128
<CodeMirror
132129
value={codeString}
133-
theme= {githubLight}
130+
theme="light"
134131
width="100%"
135132
minimalSetup={{
136133
highlightSpecialChars: false,

src/components/Nav/styles.module.scss

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

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

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)