add run + test + docs

This commit is contained in:
Felix Roos
2023-01-19 11:47:11 +01:00
parent 77e0237148
commit 468ccc6288
5 changed files with 41 additions and 2 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import { MiniRepl } from './MiniRepl';
const getTag = (title, item) => item.tags?.find((t) => t.title === title)?.text;
export function JsDoc({ name, h = 3, hideDescription }) {
export function JsDoc({ name, h = 3, hideDescription, punchcard, canvasHeight }) {
const item = docs[name];
if (!item) {
console.warn('Not found: ' + name);
@@ -40,7 +40,7 @@ export function JsDoc({ name, h = 3, hideDescription }) {
{item.examples?.length ? (
<div className="space-y-2">
{item.examples?.map((example, k) => (
<MiniRepl tune={example} key={k} />
<MiniRepl tune={example} key={k} {...{ punchcard, canvasHeight }} />
))}
</div>
) : (