diff --git a/site/client.tsx b/site/highlight-code.tsx similarity index 71% rename from site/client.tsx rename to site/highlight-code.tsx index 3dc4726..7e83bfb 100644 --- a/site/client.tsx +++ b/site/highlight-code.tsx @@ -6,10 +6,6 @@ const highlighter = await createHighlighter({ }); for (const sample of document.querySelectorAll('.sample')) { - import(`./samples/${sample.dataset['sample']}.js`).then(mod => { - sample.querySelector('.sample-output')!.append(); - }); - const pre = sample.querySelector('pre')!; pre.outerHTML = highlighter.codeToHtml(pre.textContent!, { lang: 'tsx', diff --git a/site/index.html.tsx b/site/index.html.tsx index 704115c..58f74e3 100644 --- a/site/index.html.tsx +++ b/site/index.html.tsx @@ -7,7 +7,8 @@ export default <> -