sourcey 3.6.5 → 3.6.6
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/README.md +4 -4
- package/dist/adapters/shared.js +1 -1
- package/dist/astro/index.d.ts.map +1 -1
- package/dist/astro/index.js +8 -6
- package/dist/client/reader-controls.js +81 -0
- package/dist/client/reader.d.ts +5 -0
- package/dist/client/reader.d.ts.map +1 -0
- package/dist/client/reader.js +5 -0
- package/dist/components/App.d.ts.map +1 -1
- package/dist/components/App.js +1 -1
- package/dist/components/layout/Head.d.ts.map +1 -1
- package/dist/components/layout/Head.js +6 -4
- package/dist/components/layout/Page.d.ts.map +1 -1
- package/dist/components/layout/Page.js +20 -14
- package/dist/components/layout/Reader.d.ts +5 -0
- package/dist/components/layout/Reader.d.ts.map +1 -0
- package/dist/components/layout/Reader.js +64 -0
- package/dist/components/layout/SearchDialog.d.ts +2 -0
- package/dist/components/layout/SearchDialog.d.ts.map +1 -0
- package/dist/components/layout/SearchDialog.js +4 -0
- package/dist/components/openapi/Operation.d.ts.map +1 -1
- package/dist/components/openapi/Operation.js +2 -2
- package/dist/config.d.ts +56 -4
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +18 -10
- package/dist/core/doxygen-loader.js +1 -1
- package/dist/core/loader.js +2 -2
- package/dist/core/markdown-loader.d.ts +2 -0
- package/dist/core/markdown-loader.d.ts.map +1 -1
- package/dist/core/markdown-loader.js +1 -0
- package/dist/core/navigation.js +1 -1
- package/dist/core/parser.js +1 -1
- package/dist/dev-server.d.ts.map +1 -1
- package/dist/dev-server.js +3 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/init.js +4 -4
- package/dist/renderer/html-builder.d.ts.map +1 -1
- package/dist/renderer/html-builder.js +6 -27
- package/dist/renderer/static-files.d.ts.map +1 -1
- package/dist/renderer/static-files.js +3 -1
- package/dist/themes/assets.d.ts +8 -0
- package/dist/themes/assets.d.ts.map +1 -0
- package/dist/themes/assets.js +16 -0
- package/dist/themes/reader/sourcey.css +1024 -0
- package/dist/themes/registry.d.ts +20 -0
- package/dist/themes/registry.d.ts.map +1 -0
- package/dist/themes/registry.js +8 -0
- package/package.json +3 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const themeDefinitions: {
|
|
2
|
+
readonly default: {
|
|
3
|
+
client: string;
|
|
4
|
+
css: string[];
|
|
5
|
+
};
|
|
6
|
+
readonly minimal: {
|
|
7
|
+
client: string;
|
|
8
|
+
css: string[];
|
|
9
|
+
};
|
|
10
|
+
readonly "api-first": {
|
|
11
|
+
client: string;
|
|
12
|
+
css: string[];
|
|
13
|
+
};
|
|
14
|
+
readonly reader: {
|
|
15
|
+
readonly client: "reader";
|
|
16
|
+
readonly css: readonly ["default/sourcey.css", "reader/sourcey.css"];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export type ThemeName = keyof typeof themeDefinitions;
|
|
20
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/themes/registry.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;CAKnB,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Built-in themes and their packaged assets. Themes may deliberately share a foundation. */
|
|
2
|
+
const foundation = { client: "index", css: ["default/sourcey.css"] };
|
|
3
|
+
export const themeDefinitions = {
|
|
4
|
+
default: foundation,
|
|
5
|
+
minimal: foundation,
|
|
6
|
+
"api-first": foundation,
|
|
7
|
+
reader: { client: "reader", css: ["default/sourcey.css", "reader/sourcey.css"] },
|
|
8
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sourcey",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.6",
|
|
4
4
|
"description": "Precision documentation from OpenAPI, MCP, Doxygen, godoc, rustdoc, and Markdown. Static HTML you own.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -24,8 +24,9 @@
|
|
|
24
24
|
"LICENSE"
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
|
-
"build": "
|
|
27
|
+
"build": "rm -rf dist && tsc && node scripts/copy-theme-assets.mjs && cp src/client/*.js dist/client/ && cp -r src/og/fonts dist/og/ && rm -rf dist/core/sourcey-godoc dist/core/godoc-introspect && mkdir -p dist/core/sourcey-godoc && cp -R go/sourcey-godoc/go.mod go/sourcey-godoc/doc.go go/sourcey-godoc/cmd dist/core/sourcey-godoc/ && rm -rf dist/core/sourcey-rustdoc && mkdir -p dist/core/sourcey-rustdoc && cp -R rust/sourcey-rustdoc/Cargo.toml rust/sourcey-rustdoc/Cargo.lock rust/sourcey-rustdoc/README.md rust/sourcey-rustdoc/src rust/sourcey-rustdoc/tests dist/core/sourcey-rustdoc/",
|
|
28
28
|
"watch": "npm run build && tsc --watch --preserveWatchOutput",
|
|
29
|
+
"pretest": "npm run build",
|
|
29
30
|
"test": "vitest run",
|
|
30
31
|
"test:watch": "vitest",
|
|
31
32
|
"lint": "eslint src/ test/",
|