Files
Docs-Viewer/demo/main.js
litruv 10e9f7ac2f Port Docs-Viewer to slatehtml as the docs-viewer package.
Replace the classic DOM shell with slate widgets, markdown→slate rendering, and a CI index build that uses build-docs.cjs.
2026-08-02 20:48:31 +10:00

25 lines
675 B
JavaScript

import "slatehtml";
import "slatehtml-ui/icon";
import "slatehtml-ui/side-bar";
import "slatehtml-ui/progress";
import "slatehtml-ui/alert";
import "slatehtml-ui/divider";
import "slatehtml-ui/bottom-nav";
import "slatehtml-ui/bottom-nav-item";
import "slatehtml-ui/collapse";
import { configure } from "slatehtml-ui/configure";
import { fontAwesomeSvg } from "slatehtml-ui/icons/fontawesome";
import { mountDocs } from "../src/index.js";
import "../src/prose.css";
import "./site.css";
configure({
icons: fontAwesomeSvg,
iconSize: "15",
});
await mountDocs("slate-docs-viewer", { indexUrl: "./index.json" });
document.documentElement.setAttribute("data-ready", "");