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.
This commit is contained in:
2026-08-02 20:48:31 +10:00
parent 407ee6c0d3
commit 10e9f7ac2f
36 changed files with 3789 additions and 5474 deletions

View File

@@ -1,12 +1,54 @@
{
"name": "docs-viewer",
"version": "1.0.0",
"description": "Documentation viewer application",
"version": "2.0.0",
"description": "Static documentation viewer on slatehtml + slatehtml-ui",
"type": "module",
"main": "./src/index.js",
"module": "./src/index.js",
"exports": {
".": "./src/index.js",
"./prose.css": "./src/prose.css",
"./build-docs": "./build-docs.cjs",
"./package.json": "./package.json"
},
"files": [
"src",
"build-docs.cjs",
"README.md",
"LICENSE"
],
"sideEffects": [
"./src/index.js",
"./src/prose.css",
"**/*.umc",
"**/*.css",
"**/*.js"
],
"scripts": {
"start": "live-server --port=8080 --no-browser",
"build": "node build-docs.js"
"dev": "vite",
"build": "node build-docs.cjs && vite build",
"build:index": "node build-docs.cjs",
"preview": "vite preview",
"start": "vite"
},
"dependencies": {
"highlight.js": "^11.11.1",
"marked": "^15.0.12",
"slatehtml": "file:../slatehtml",
"slatehtml-ui": "file:../slatehtml/packages/slatehtml-ui"
},
"devDependencies": {
"live-server": "^1.2.2"
"vite": "^6.3.5"
},
"keywords": [
"docs",
"markdown",
"documentation",
"slatehtml"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/litruv/Docs-Viewer.git"
}
}