Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Sep 17, 2024
1 parent a9d3791 commit 9617355
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 84 deletions.
77 changes: 0 additions & 77 deletions client/src/document/highlight.ts

This file was deleted.

7 changes: 1 addition & 6 deletions client/src/document/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
} from "./code/playground";
import { addCopyToClipboardButton } from "./code/copy";
import { useUIStatus } from "../ui-context";
import { highlightSyntax } from "./highlight";

export function useDocumentURL() {
const locale = useLocale();
Expand Down Expand Up @@ -107,7 +106,7 @@ export function useDecorateCodeExamples(doc: Doc | undefined) {

document
.querySelectorAll("div.code-example pre:not(.hidden)")
.forEach(async (element) => {
.forEach((element) => {
const header = element.parentElement?.querySelector(".example-header");
// Paused for now
// addExplainButton(header, element);
Expand All @@ -117,10 +116,6 @@ export function useDecorateCodeExamples(doc: Doc | undefined) {
);
return;
} else {
await highlightSyntax(
element,
header?.querySelector(".language-name")?.textContent || "plain"
);
addCopyToClipboardButton(element, header);
}
import("./code/syntax-highlight").then(({ highlightElement }) => {
Expand Down
1 change: 0 additions & 1 deletion server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,6 @@ app.get("/*", async (req, res, ...args) => {

let document;
try {
console.time(`buildDocumentFromURL(${lookupURL})`);
if (process.env.RARI) {
document = (
await (await fetch(`http://localhost:8083${lookupURL}`)).json()
Expand Down

0 comments on commit 9617355

Please sign in to comment.