markupress 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +131 -2
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +48 -0
- package/dist/cli.js.map +1 -0
- package/dist/content.d.ts +18 -0
- package/dist/content.d.ts.map +1 -0
- package/dist/content.js +129 -0
- package/dist/content.js.map +1 -0
- package/dist/controllers/shell.d.ts +4 -0
- package/dist/controllers/shell.d.ts.map +1 -0
- package/dist/controllers/shell.js +46 -0
- package/dist/controllers/shell.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/site.d.ts +38 -0
- package/dist/site.d.ts.map +1 -0
- package/dist/site.js +279 -0
- package/dist/site.js.map +1 -0
- package/dist/styles.d.ts +6 -0
- package/dist/styles.d.ts.map +1 -0
- package/dist/styles.js +49 -0
- package/dist/styles.js.map +1 -0
- package/dist/theme.d.ts +2 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/theme.js +35 -0
- package/dist/theme.js.map +1 -0
- package/dist/versions.d.ts +19 -0
- package/dist/versions.d.ts.map +1 -0
- package/dist/versions.js +125 -0
- package/dist/versions.js.map +1 -0
- package/package.json +61 -6
- package/styles/base.css +24 -0
package/package.json
CHANGED
|
@@ -1,12 +1,67 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markupress",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Versioned Markdown documentation built on HTMLKit and native declarative components.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": ["**/*.css"],
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./controllers/shell.js": "./dist/controllers/shell.js",
|
|
14
|
+
"./styles/base.css": "./styles/base.css"
|
|
15
|
+
},
|
|
5
16
|
"files": [
|
|
6
|
-
"
|
|
17
|
+
"dist",
|
|
18
|
+
"styles"
|
|
7
19
|
],
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=22.22.2 <23 || >=24.15 <25"
|
|
22
|
+
},
|
|
23
|
+
"packageManager": "pnpm@12.9.1",
|
|
24
|
+
"scripts": {
|
|
25
|
+
"clean": "node --input-type=module --eval \"import { rmSync } from 'node:fs'; rmSync('dist', { recursive: true, force: true });\"",
|
|
26
|
+
"build": "pnpm clean && tsc -p tsconfig.build.json",
|
|
27
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
28
|
+
"lint": "oxlint --deny-warnings .",
|
|
29
|
+
"test": "pnpm build && vitest run --exclude tests/package.test.ts",
|
|
30
|
+
"test:package": "vitest run tests/package.test.ts",
|
|
31
|
+
"verify:inner": "pnpm lint && pnpm typecheck && pnpm test",
|
|
32
|
+
"verify:pr": "pnpm verify:inner && pnpm build && pnpm test:package",
|
|
33
|
+
"verify:extended": "pnpm verify:pr",
|
|
34
|
+
"verify:release": "pnpm verify:pr && pnpm pack --dry-run",
|
|
35
|
+
"prepack": "pnpm build"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/node": "22.20.1",
|
|
39
|
+
"oxlint": "1.81.0",
|
|
40
|
+
"typescript": "7.0.2",
|
|
41
|
+
"vitest": "5.0.0",
|
|
42
|
+
"playwright": "1.63.0",
|
|
43
|
+
"@axe-core/playwright": "4.13.0"
|
|
44
|
+
},
|
|
45
|
+
"publishConfig": { "access": "public" },
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "git+https://github.com/threadlabs-studio/markupress.git"
|
|
49
|
+
},
|
|
50
|
+
"homepage": "https://github.com/threadlabs-studio/markupress#readme",
|
|
51
|
+
"bugs": {
|
|
52
|
+
"url": "https://github.com/threadlabs-studio/markupress/issues"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@nextwebwg/htmlkit": "1.0.0-alpha.35",
|
|
56
|
+
"marked": "18.1.0",
|
|
57
|
+
"parse5": "8.0.1",
|
|
58
|
+
"yaml": "2.9.1",
|
|
59
|
+
"@threadlabs/looma": "0.26.0",
|
|
60
|
+
"postcss": "8.5.29",
|
|
61
|
+
"postcss-value-parser": "4.2.0",
|
|
62
|
+
"@nextwebwg/html-next": "1.0.0-alpha.35"
|
|
63
|
+
},
|
|
64
|
+
"bin": {
|
|
65
|
+
"markupress": "./dist/cli.js"
|
|
11
66
|
}
|
|
12
67
|
}
|
package/styles/base.css
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* Page-wide defaults; component styles remain owned by their native resource. */
|
|
2
|
+
html { background: var(--ui-surface); }
|
|
3
|
+
body { margin: 0; }
|
|
4
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
5
|
+
/* Documentation typography spans the projected page's own component region. */
|
|
6
|
+
.markupress-prose a { color: var(--ui-accent); text-underline-offset: .2em; }
|
|
7
|
+
.markupress-prose h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); line-height: 1.2; }
|
|
8
|
+
.markupress-prose h2, .markupress-prose h3 { margin-top: 2rem; scroll-margin-top: 2rem; }
|
|
9
|
+
.markupress-prose h1 a, .markupress-prose h2 a, .markupress-prose h3 a { color: inherit; text-decoration: none; }
|
|
10
|
+
.markupress-prose pre { overflow: auto; max-width: 100%; padding: 1rem; background: var(--ui-surface-sunken); border-radius: .5rem; }
|
|
11
|
+
.markupress-prose code { font-size: .9em; }
|
|
12
|
+
.markupress-prose img, .markupress-prose svg { max-width: 100%; }
|
|
13
|
+
.markupress-prose table { border-collapse: collapse; display: block; max-width: 100%; overflow: auto; }
|
|
14
|
+
.markupress-prose th, .markupress-prose td { border: 1px solid var(--ui-border, #8885); padding: .4rem .75rem; }
|
|
15
|
+
.markupress-prose :focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 3px; }
|
|
16
|
+
/* HTMLKit provides native navigation without presentation; this theme owns its appearance. */
|
|
17
|
+
.site [data-component~="htmlkit-navigation"] ul { margin: 0; padding: 0; list-style: none; }
|
|
18
|
+
.site [data-component~="htmlkit-navigation"] li { margin: .25rem 0; }
|
|
19
|
+
.site [data-component~="htmlkit-navigation"] a { display: block; color: var(--ui-text); padding: .3rem .5rem; border-radius: .25rem; text-decoration: none; }
|
|
20
|
+
.site [data-component~="htmlkit-navigation"] a:hover { background: var(--ui-surface-sunken); }
|
|
21
|
+
.site [data-component~="htmlkit-navigation"] a[aria-current="page"] { color: var(--ui-accent); font-weight: 600; background: var(--ui-surface-sunken); }
|
|
22
|
+
.site [data-component~="htmlkit-navigation"] [data-depth="2"] { padding-left: .75rem; }
|
|
23
|
+
.site [data-component~="htmlkit-navigation"] [data-depth="3"] { padding-left: 1.5rem; }
|
|
24
|
+
.site [data-component~="htmlkit-navigation"] :focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
|