@netfoundry/docusaurus-theme 0.2.3 → 0.3.0
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/css/layout.css +14 -0
- package/css/legacy.css +2313 -0
- package/css/tabs-v1-gradient.css +92 -0
- package/css/tabs-v2-glass.css +116 -0
- package/css/tabs-v3-minimal.css +86 -0
- package/css/tabs-v4-segmented.css +85 -0
- package/css/tabs-v5-neon.css +99 -0
- package/css/tabs-v6-neumorphic.css +89 -0
- package/css/tabs-v7-brutalist.css +81 -0
- package/css/tabs-v8-float.css +114 -0
- package/css/tabs-v9-line.css +104 -0
- package/css/theme.css +20 -0
- package/css/vars-dark.css +7 -0
- package/css/vars.css +8 -0
- package/dist/css/theme.css +20 -72
- package/dist/src/components/Alert/Alert.js +6 -51
- package/dist/src/components/Alert/Alert.js.map +1 -7
- package/dist/src/components/Alert/index.js +2 -29
- package/dist/src/components/Alert/index.js.map +1 -7
- package/dist/src/components/CodeBlock/CodeBlock.js +7 -53
- package/dist/src/components/CodeBlock/CodeBlock.js.map +1 -7
- package/dist/src/components/CodeBlock/index.js +2 -29
- package/dist/src/components/CodeBlock/index.js.map +1 -7
- package/dist/src/components/Common/Common.js +16 -59
- package/dist/src/components/Common/Common.js.map +1 -7
- package/dist/src/components/Common/index.d.ts +0 -1
- package/dist/src/components/Common/index.d.ts.map +1 -1
- package/dist/src/components/Common/index.js +2 -25
- package/dist/src/components/Common/index.js.map +1 -7
- package/dist/src/components/NetFoundry/Divider/Divider.js +5 -46
- package/dist/src/components/NetFoundry/Divider/Divider.js.map +1 -7
- package/dist/src/components/NetFoundry/Divider/index.js +2 -23
- package/dist/src/components/NetFoundry/Divider/index.js.map +1 -7
- package/dist/src/components/NetFoundry/index.js +2 -23
- package/dist/src/components/NetFoundry/index.js.map +1 -7
- package/dist/src/components/NetFoundryFooter/NetFoundryFooter.d.ts +21 -2
- package/dist/src/components/NetFoundryFooter/NetFoundryFooter.d.ts.map +1 -1
- package/dist/src/components/NetFoundryFooter/NetFoundryFooter.js +58 -115
- package/dist/src/components/NetFoundryFooter/NetFoundryFooter.js.map +1 -7
- package/dist/src/components/NetFoundryFooter/index.js +2 -23
- package/dist/src/components/NetFoundryFooter/index.js.map +1 -7
- package/dist/src/components/NetFoundryHighlight/NetFoundryHighlight.js +5 -32
- package/dist/src/components/NetFoundryHighlight/NetFoundryHighlight.js.map +1 -7
- package/dist/src/components/NetFoundryHighlight/index.js +2 -29
- package/dist/src/components/NetFoundryHighlight/index.js.map +1 -7
- package/dist/src/components/NetFoundryHorizontalSection/NetFoundryHorizontalSection.js +7 -52
- package/dist/src/components/NetFoundryHorizontalSection/NetFoundryHorizontalSection.js.map +1 -7
- package/dist/src/components/NetFoundryHorizontalSection/index.js +2 -29
- package/dist/src/components/NetFoundryHorizontalSection/index.js.map +1 -7
- package/dist/src/components/NetFoundryLayout/NetFoundryLayout.d.ts.map +1 -1
- package/dist/src/components/NetFoundryLayout/NetFoundryLayout.js +32 -111
- package/dist/src/components/NetFoundryLayout/NetFoundryLayout.js.map +1 -7
- package/dist/src/components/NetFoundryLayout/index.js +2 -23
- package/dist/src/components/NetFoundryLayout/index.js.map +1 -7
- package/dist/src/components/NetFoundryNavbarItems/NetFoundryNavbarItems.js +13 -40
- package/dist/src/components/NetFoundryNavbarItems/NetFoundryNavbarItems.js.map +1 -7
- package/dist/src/components/NetFoundryNavbarItems/index.js +2 -29
- package/dist/src/components/NetFoundryNavbarItems/index.js.map +1 -7
- package/dist/src/components/OsTabs/OsTabs.js +17 -53
- package/dist/src/components/OsTabs/OsTabs.js.map +1 -7
- package/dist/src/components/OsTabs/index.js +2 -29
- package/dist/src/components/OsTabs/index.js.map +1 -7
- package/dist/src/components/StarUs/StarUs.js +6 -45
- package/dist/src/components/StarUs/StarUs.js.map +1 -7
- package/dist/src/components/StarUs/index.js +2 -39
- package/dist/src/components/StarUs/index.js.map +1 -7
- package/dist/src/components/index.d.ts +0 -1
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +12 -45
- package/dist/src/components/index.js.map +1 -7
- package/dist/src/docusaurus-envhelper.js +64 -111
- package/dist/src/docusaurus-envhelper.js.map +1 -7
- package/dist/src/docusaurus-plugins/index.js +8 -35
- package/dist/src/docusaurus-plugins/index.js.map +1 -7
- package/dist/src/docusaurus-plugins/logger.js +38 -66
- package/dist/src/docusaurus-plugins/logger.js.map +1 -7
- package/dist/src/docusaurus-plugins/remarkCodeSections.js +94 -127
- package/dist/src/docusaurus-plugins/remarkCodeSections.js.map +1 -7
- package/dist/src/docusaurus-plugins/remarkReplaceMetaUrl.js +22 -50
- package/dist/src/docusaurus-plugins/remarkReplaceMetaUrl.js.map +1 -7
- package/dist/src/docusaurus-plugins/remarkScopedPath.js +46 -78
- package/dist/src/docusaurus-plugins/remarkScopedPath.js.map +1 -7
- package/dist/src/docusaurus-plugins/remarkYamlTable.js +49 -84
- package/dist/src/docusaurus-plugins/remarkYamlTable.js.map +1 -7
- package/dist/src/docusaurus-plugins/remarkYouTube.js +42 -65
- package/dist/src/docusaurus-plugins/remarkYouTube.js.map +1 -7
- package/dist/src/docusaurus-plugins/timedPlugin.js +15 -42
- package/dist/src/docusaurus-plugins/timedPlugin.js.map +1 -7
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +31 -63
- package/dist/src/index.js.map +1 -7
- package/dist/src/node.js +7 -23
- package/dist/src/node.js.map +1 -7
- package/dist/src/options.d.ts +30 -27
- package/dist/src/options.d.ts.map +1 -1
- package/dist/src/options.js +2 -17
- package/dist/src/options.js.map +1 -7
- package/dist/src/plugins.js +7 -23
- package/dist/src/plugins.js.map +1 -7
- package/dist/src/ui.js +8 -25
- package/dist/src/ui.js.map +1 -7
- package/dist/src/version.js +2 -29
- package/dist/src/version.js.map +1 -7
- package/dist/theme/Layout/index.d.ts +9 -0
- package/dist/theme/Layout/index.d.ts.map +1 -1
- package/dist/theme/Layout/index.js +38 -82
- package/dist/theme/Layout/index.js.map +1 -7
- package/package.json +27 -19
- package/dist/src/components/Common/Logos.d.ts +0 -6
- package/dist/src/components/Common/Logos.d.ts.map +0 -1
- package/dist/src/components/Common/Logos.js +0 -93
- package/dist/src/components/Common/Logos.js.map +0 -7
- package/dist/src/components/NetFoundryFooter/defaults.d.ts +0 -19
- package/dist/src/components/NetFoundryFooter/defaults.d.ts.map +0 -1
- package/dist/src/components/NetFoundryFooter/defaults.js +0 -51
- package/dist/src/components/NetFoundryFooter/defaults.js.map +0 -7
- package/dist/src/components/NetFoundryFooter/types.d.ts +0 -27
- package/dist/src/components/NetFoundryFooter/types.d.ts.map +0 -1
- package/dist/src/components/NetFoundryFooter/types.js +0 -53
- package/dist/src/components/NetFoundryFooter/types.js.map +0 -7
- package/dist/src/components/ProductSearch/ProductSearch.d.ts +0 -10
- package/dist/src/components/ProductSearch/ProductSearch.d.ts.map +0 -1
- package/dist/src/components/ProductSearch/ProductSearch.js +0 -261
- package/dist/src/components/ProductSearch/ProductSearch.js.map +0 -7
- package/dist/src/components/ProductSearch/ProductSearch.module.css +0 -189
- package/dist/src/components/ProductSearch/index.d.ts +0 -4
- package/dist/src/components/ProductSearch/index.d.ts.map +0 -1
- package/dist/src/components/ProductSearch/index.js +0 -42
- package/dist/src/components/ProductSearch/index.js.map +0 -7
- package/dist/src/config.d.ts +0 -9
- package/dist/src/config.d.ts.map +0 -1
- package/dist/src/config.js +0 -34
- package/dist/src/config.js.map +0 -7
- package/dist/src/css-modules.d.js +0 -2
- package/dist/src/css-modules.d.js.map +0 -7
- package/dist/src/docusaurus.d.js +0 -2
- package/dist/src/docusaurus.d.js.map +0 -7
- package/dist/theme/BlogPostPage/Metadata.d.ts +0 -2
- package/dist/theme/BlogPostPage/Metadata.d.ts.map +0 -1
- package/dist/theme/BlogPostPage/Metadata.js +0 -35
- package/dist/theme/BlogPostPage/Metadata.js.map +0 -7
- package/dist/theme/BlogPostPage/StructuredData.d.ts +0 -2
- package/dist/theme/BlogPostPage/StructuredData.d.ts.map +0 -1
- package/dist/theme/BlogPostPage/StructuredData.js +0 -35
- package/dist/theme/BlogPostPage/StructuredData.js.map +0 -7
- package/dist/theme/BlogPostPage/index.d.ts +0 -14
- package/dist/theme/BlogPostPage/index.d.ts.map +0 -1
- package/dist/theme/BlogPostPage/index.js +0 -101
- package/dist/theme/BlogPostPage/index.js.map +0 -7
- package/dist/theme/BlogPostPage/index.module.css +0 -53
- package/dist/theme/DocSearch/index.d.ts +0 -3
- package/dist/theme/DocSearch/index.d.ts.map +0 -1
- package/dist/theme/DocSearch/index.js +0 -98
- package/dist/theme/DocSearch/index.js.map +0 -7
- package/dist/theme/DocSearch/styles.module.css +0 -12
- package/dist/theme/Navbar/Content/index.d.ts +0 -6
- package/dist/theme/Navbar/Content/index.d.ts.map +0 -1
- package/dist/theme/Navbar/Content/index.js +0 -70
- package/dist/theme/Navbar/Content/index.js.map +0 -7
- package/dist/theme/Navbar/Content/index.module.css +0 -0
- package/dist/theme/Navbar/Logo/index.d.ts +0 -3
- package/dist/theme/Navbar/Logo/index.d.ts.map +0 -1
- package/dist/theme/Navbar/Logo/index.js +0 -89
- package/dist/theme/Navbar/Logo/index.js.map +0 -7
- package/dist/theme/OsTabs/index.d.ts +0 -13
- package/dist/theme/OsTabs/index.d.ts.map +0 -1
- package/dist/theme/OsTabs/index.js +0 -51
- package/dist/theme/OsTabs/index.js.map +0 -7
- package/dist/theme/SearchBar/SearchBar.module.css +0 -37
- package/dist/theme/SearchBar/index.d.ts +0 -2
- package/dist/theme/SearchBar/index.d.ts.map +0 -1
- package/dist/theme/SearchBar/index.js +0 -91
- package/dist/theme/SearchBar/index.js.map +0 -7
|
@@ -1,85 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { visit } from 'unist-util-visit';
|
|
2
|
+
import yaml from 'js-yaml';
|
|
3
|
+
import { Logger, LogLevel, resolveLogLevel } from './logger';
|
|
4
|
+
console.log("🦖 remarkYamlTable plugin module loaded");
|
|
5
|
+
export const remarkYamlTable = (options) => {
|
|
6
|
+
const { logLevel = LogLevel.Silent } = options ?? {};
|
|
7
|
+
const logger = new Logger(resolveLogLevel(options?.logLevel), 'remarkYamlTable');
|
|
8
|
+
logger.log('initialized');
|
|
9
|
+
return (tree) => {
|
|
10
|
+
visit(tree, 'code', (node, index, parent) => {
|
|
11
|
+
if (!parent || index === undefined)
|
|
12
|
+
return;
|
|
13
|
+
if (node.lang === 'yaml-table') {
|
|
14
|
+
try {
|
|
15
|
+
const data = yaml.load(node.value);
|
|
16
|
+
if (Array.isArray(data) && data.length > 0 && typeof data[0] === 'object') {
|
|
17
|
+
const headers = Object.keys(data[0]);
|
|
18
|
+
const tableRows = data.map((row) => ({
|
|
19
|
+
type: 'tableRow',
|
|
20
|
+
children: headers.map((header) => ({
|
|
21
|
+
type: 'tableCell',
|
|
22
|
+
children: [{ type: 'text', value: String(row[header] ?? '') }],
|
|
23
|
+
})),
|
|
24
|
+
}));
|
|
25
|
+
const tableNode = {
|
|
26
|
+
type: 'table',
|
|
27
|
+
align: headers.map(() => null),
|
|
28
|
+
children: [
|
|
29
|
+
{
|
|
30
|
+
type: 'tableRow',
|
|
31
|
+
children: headers.map((header) => ({
|
|
32
|
+
type: 'tableCell',
|
|
33
|
+
children: [{ type: 'text', value: header }],
|
|
34
|
+
})),
|
|
35
|
+
},
|
|
36
|
+
...tableRows,
|
|
37
|
+
],
|
|
38
|
+
};
|
|
39
|
+
parent.children[index] = tableNode;
|
|
40
|
+
logger.log(`generated table with ${headers.length} columns and ${data.length} rows`, LogLevel.Info);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
logger.log(`YAML parsing error: ${error.message}`, LogLevel.Info);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
};
|
|
11
49
|
};
|
|
12
|
-
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var remarkYamlTable_exports = {};
|
|
30
|
-
__export(remarkYamlTable_exports, {
|
|
31
|
-
remarkYamlTable: () => remarkYamlTable
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(remarkYamlTable_exports);
|
|
34
|
-
var import_unist_util_visit = require("unist-util-visit");
|
|
35
|
-
var import_js_yaml = __toESM(require("js-yaml"));
|
|
36
|
-
var import_logger = require("./logger");
|
|
37
|
-
console.log("\u{1F996} remarkYamlTable plugin module loaded");
|
|
38
|
-
const remarkYamlTable = (options) => {
|
|
39
|
-
const { logLevel = import_logger.LogLevel.Silent } = options ?? {};
|
|
40
|
-
const logger = new import_logger.Logger((0, import_logger.resolveLogLevel)(options?.logLevel), "remarkYamlTable");
|
|
41
|
-
logger.log("initialized");
|
|
42
|
-
return (tree) => {
|
|
43
|
-
(0, import_unist_util_visit.visit)(tree, "code", (node, index, parent) => {
|
|
44
|
-
if (!parent || index === void 0) return;
|
|
45
|
-
if (node.lang === "yaml-table") {
|
|
46
|
-
try {
|
|
47
|
-
const data = import_js_yaml.default.load(node.value);
|
|
48
|
-
if (Array.isArray(data) && data.length > 0 && typeof data[0] === "object") {
|
|
49
|
-
const headers = Object.keys(data[0]);
|
|
50
|
-
const tableRows = data.map((row) => ({
|
|
51
|
-
type: "tableRow",
|
|
52
|
-
children: headers.map((header) => ({
|
|
53
|
-
type: "tableCell",
|
|
54
|
-
children: [{ type: "text", value: String(row[header] ?? "") }]
|
|
55
|
-
}))
|
|
56
|
-
}));
|
|
57
|
-
const tableNode = {
|
|
58
|
-
type: "table",
|
|
59
|
-
align: headers.map(() => null),
|
|
60
|
-
children: [
|
|
61
|
-
{
|
|
62
|
-
type: "tableRow",
|
|
63
|
-
children: headers.map((header) => ({
|
|
64
|
-
type: "tableCell",
|
|
65
|
-
children: [{ type: "text", value: header }]
|
|
66
|
-
}))
|
|
67
|
-
},
|
|
68
|
-
...tableRows
|
|
69
|
-
]
|
|
70
|
-
};
|
|
71
|
-
parent.children[index] = tableNode;
|
|
72
|
-
logger.log(`generated table with ${headers.length} columns and ${data.length} rows`, import_logger.LogLevel.Info);
|
|
73
|
-
}
|
|
74
|
-
} catch (error) {
|
|
75
|
-
logger.log(`YAML parsing error: ${error.message}`, import_logger.LogLevel.Info);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
82
|
-
0 && (module.exports = {
|
|
83
|
-
remarkYamlTable
|
|
84
|
-
});
|
|
85
|
-
//# sourceMappingURL=remarkYamlTable.js.map
|
|
50
|
+
//# sourceMappingURL=remarkYamlTable.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/docusaurus-plugins/remarkYamlTable.ts"],
|
|
4
|
-
"sourcesContent": ["import { Plugin } from 'unified'\r\nimport { visit } from 'unist-util-visit'\r\nimport yaml from 'js-yaml'\r\nimport { Parent } from 'unist'\r\nimport { Literal } from 'unist'\r\nimport {Logger, LogLevel, resolveLogLevel} from './logger'\r\n\r\nconsole.log(\"\uD83E\uDD96 remarkYamlTable plugin module loaded\")\r\n\r\ninterface Code extends Literal {\r\n type: 'code'\r\n lang?: string\r\n value: string\r\n}\r\n\r\ninterface TableCell {\r\n type: 'tableCell'\r\n children: { type: 'text'; value: string }[]\r\n}\r\n\r\ninterface TableRow {\r\n type: 'tableRow'\r\n children: TableCell[]\r\n}\r\n\r\ninterface Table {\r\n type: 'table'\r\n align: (null | 'left' | 'right' | 'center')[]\r\n children: TableRow[]\r\n}\r\n\r\ninterface Options {\r\n logLevel?: LogLevel\r\n}\r\n\r\nexport const remarkYamlTable: Plugin<[Options]> = (options?: Options) => {\r\n const { logLevel = LogLevel.Silent } = options ?? {}\r\n const logger = new Logger(resolveLogLevel(options?.logLevel), 'remarkYamlTable')\r\n\r\n logger.log('initialized')\r\n\r\n return (tree) => {\r\n visit(tree, 'code', (node: Code, index: number | undefined, parent: Parent | undefined) => {\r\n if (!parent || index === undefined) return\r\n if (node.lang === 'yaml-table') {\r\n try {\r\n const data = yaml.load(node.value)\r\n if (Array.isArray(data) && data.length > 0 && typeof data[0] === 'object') {\r\n const headers = Object.keys(data[0] as Record<string, unknown>)\r\n\r\n const tableRows: TableRow[] = (data as Record<string, unknown>[]).map((row) => ({\r\n type: 'tableRow',\r\n children: headers.map<TableCell>((header) => ({\r\n type: 'tableCell',\r\n children: [{ type: 'text', value: String(row[header] ?? '') }],\r\n })),\r\n }))\r\n\r\n const tableNode: Table = {\r\n type: 'table',\r\n align: headers.map(() => null),\r\n children: [\r\n {\r\n type: 'tableRow',\r\n children: headers.map<TableCell>((header) => ({\r\n type: 'tableCell',\r\n children: [{ type: 'text', value: header }],\r\n })),\r\n },\r\n ...tableRows,\r\n ],\r\n }\r\n\r\n parent.children[index] = tableNode\r\n logger.log(`generated table with ${headers.length} columns and ${data.length} rows`, LogLevel.Info)\r\n }\r\n } catch (error) {\r\n logger.log(`YAML parsing error: ${(error as Error).message}`, LogLevel.Info)\r\n }\r\n }\r\n })\r\n }\r\n}\r\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,8BAAsB;AACtB,qBAAiB;AAGjB,oBAAgD;AAEhD,QAAQ,IAAI,gDAAyC;AA4B9C,MAAM,kBAAqC,CAAC,YAAsB;AACrE,QAAM,EAAE,WAAW,uBAAS,OAAO,IAAI,WAAW,CAAC;AACnD,QAAM,SAAS,IAAI,yBAAO,+BAAgB,SAAS,QAAQ,GAAG,iBAAiB;AAE/E,SAAO,IAAI,aAAa;AAExB,SAAO,CAAC,SAAS;AACb,uCAAM,MAAM,QAAQ,CAAC,MAAY,OAA2B,WAA+B;AACvF,UAAI,CAAC,UAAU,UAAU,OAAW;AACpC,UAAI,KAAK,SAAS,cAAc;AAC5B,YAAI;AACA,gBAAM,OAAO,eAAAA,QAAK,KAAK,KAAK,KAAK;AACjC,cAAI,MAAM,QAAQ,IAAI,KAAK,KAAK,SAAS,KAAK,OAAO,KAAK,CAAC,MAAM,UAAU;AACvE,kBAAM,UAAU,OAAO,KAAK,KAAK,CAAC,CAA4B;AAE9D,kBAAM,YAAyB,KAAmC,IAAI,CAAC,SAAS;AAAA,cAC5E,MAAM;AAAA,cACN,UAAU,QAAQ,IAAe,CAAC,YAAY;AAAA,gBAC1C,MAAM;AAAA,gBACN,UAAU,CAAC,EAAE,MAAM,QAAQ,OAAO,OAAO,IAAI,MAAM,KAAK,EAAE,EAAE,CAAC;AAAA,cACjE,EAAE;AAAA,YACN,EAAE;AAEF,kBAAM,YAAmB;AAAA,cACrB,MAAM;AAAA,cACN,OAAO,QAAQ,IAAI,MAAM,IAAI;AAAA,cAC7B,UAAU;AAAA,gBACN;AAAA,kBACI,MAAM;AAAA,kBACN,UAAU,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,CAAC,CAAC;iCACN;gCACD,GAAG,SAAS;6BACf;yBACJ,CAAA;wBAED,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,SAAS,CAAA;wBAClC,MAAM,CAAC,GAAG,CAAC,wBAAwB,OAAO,CAAC,MAAM,gBAAgB,IAAI,CAAC,MAAM,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAA;oBACvG,CAAC;gBACL,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,MAAM,CAAC,GAAG,CAAC,uBAAwB,KAAe,CAAC,OAAO,EAAE,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAA;gBAChF,CAAC;YACL,CAAC;QACL,CAAC,CAAC,CAAA;IACN,CAAC,CAAA;AACL,CAAC,CAAA"}
|
|
@@ -1,67 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const m = ytUrl.match(/youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/) || ytUrl.match(/youtu\.be\/([A-Za-z0-9_-]+)/) || ytUrl.match(/youtube-nocookie\.com\/watch\?v=([A-Za-z0-9_-]+)/);
|
|
42
|
-
if (m) {
|
|
43
|
-
logger.log(`rewriting YouTube URL: ${ytUrl} \u2192 videoId=${m[1]}`, import_logger.LogLevel.Debug);
|
|
44
|
-
parent.children.splice(index, 1, {
|
|
45
|
-
type: "mdxJsxFlowElement",
|
|
46
|
-
name: "LiteYouTubeEmbed",
|
|
47
|
-
attributes: [
|
|
48
|
-
{ type: "mdxJsxAttribute", name: "id", value: m[1] },
|
|
49
|
-
{ type: "mdxJsxAttribute", name: "title", value: "YouTube video" }
|
|
50
|
-
]
|
|
1
|
+
import { visit } from 'unist-util-visit';
|
|
2
|
+
import { Logger, LogLevel, resolveLogLevel } from './logger';
|
|
3
|
+
console.log("🦖 remarkYouTube plugin module loaded");
|
|
4
|
+
export const remarkYouTube = (options) => {
|
|
5
|
+
const { logLevel = LogLevel.Silent } = options ?? {};
|
|
6
|
+
const logger = new Logger(resolveLogLevel(options?.logLevel), 'remarkYouTube');
|
|
7
|
+
logger.log('initialized');
|
|
8
|
+
return (tree) => {
|
|
9
|
+
visit(tree, ['link', 'text'], (node, index, parent) => {
|
|
10
|
+
if (!parent || typeof index !== 'number')
|
|
11
|
+
return;
|
|
12
|
+
let raw = node.url || node.value || '';
|
|
13
|
+
let ytUrl = raw.trim();
|
|
14
|
+
const hashnodeMatch = ytUrl.match(/^%\[(.+)\]$/);
|
|
15
|
+
if (hashnodeMatch) {
|
|
16
|
+
ytUrl = hashnodeMatch[1];
|
|
17
|
+
logger.log(`hashnode-style embed detected: ${ytUrl}`, LogLevel.Info);
|
|
18
|
+
}
|
|
19
|
+
const m = ytUrl.match(/youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/) ||
|
|
20
|
+
ytUrl.match(/youtu\.be\/([A-Za-z0-9_-]+)/) ||
|
|
21
|
+
ytUrl.match(/youtube-nocookie\.com\/watch\?v=([A-Za-z0-9_-]+)/);
|
|
22
|
+
if (m) {
|
|
23
|
+
logger.log(`rewriting YouTube URL: ${ytUrl} → videoId=${m[1]}`, LogLevel.Debug);
|
|
24
|
+
parent.children.splice(index, 1, {
|
|
25
|
+
type: 'mdxJsxFlowElement',
|
|
26
|
+
name: 'LiteYouTubeEmbed',
|
|
27
|
+
attributes: [
|
|
28
|
+
{ type: 'mdxJsxAttribute', name: 'id', value: m[1] },
|
|
29
|
+
{ type: 'mdxJsxAttribute', name: 'title', value: 'YouTube video' },
|
|
30
|
+
],
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
visit(tree, 'text', (node, index, parent) => {
|
|
35
|
+
if (!parent || typeof index !== 'number')
|
|
36
|
+
return;
|
|
37
|
+
if (node.value.trim() === '%[' || node.value.trim() === ']') {
|
|
38
|
+
logger.log(`stripping hashnode bracket artifact: ${node.value}`, LogLevel.Debug);
|
|
39
|
+
parent.children.splice(index, 1);
|
|
40
|
+
}
|
|
51
41
|
});
|
|
52
|
-
|
|
53
|
-
});
|
|
54
|
-
(0, import_unist_util_visit.visit)(tree, "text", (node, index, parent) => {
|
|
55
|
-
if (!parent || typeof index !== "number") return;
|
|
56
|
-
if (node.value.trim() === "%[" || node.value.trim() === "]") {
|
|
57
|
-
logger.log(`stripping hashnode bracket artifact: ${node.value}`, import_logger.LogLevel.Debug);
|
|
58
|
-
parent.children.splice(index, 1);
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
};
|
|
42
|
+
};
|
|
62
43
|
};
|
|
63
|
-
|
|
64
|
-
0 && (module.exports = {
|
|
65
|
-
remarkYouTube
|
|
66
|
-
});
|
|
67
|
-
//# sourceMappingURL=remarkYouTube.js.map
|
|
44
|
+
//# sourceMappingURL=remarkYouTube.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/docusaurus-plugins/remarkYouTube.ts"],
|
|
4
|
-
"sourcesContent": ["import type { Plugin } from 'unified'\nimport { visit } from 'unist-util-visit'\nimport type { Node } from 'unist'\nimport {Logger, LogLevel, resolveLogLevel} from './logger'\n\nconsole.log(\"\uD83E\uDD96 remarkYouTube plugin module loaded\")\n\ninterface YouTubeOptions {\n logLevel?: LogLevel\n}\n\nexport const remarkYouTube: Plugin<[YouTubeOptions]> = (options?: YouTubeOptions) => {\n const { logLevel = LogLevel.Silent } = options ?? {}\n const logger = new Logger(resolveLogLevel(options?.logLevel), 'remarkYouTube')\n\n logger.log('initialized')\n\n return (tree: Node) => {\n visit(tree, ['link', 'text'], (node: any, index: number | undefined, parent: any) => {\n if (!parent || typeof index !== 'number') return\n let raw = node.url || node.value || ''\n let ytUrl = raw.trim()\n\n const hashnodeMatch = ytUrl.match(/^%\\[(.+)\\]$/)\n if (hashnodeMatch) {\n ytUrl = hashnodeMatch[1]\n logger.log(`hashnode-style embed detected: ${ytUrl}`, LogLevel.Info)\n }\n\n const m =\n ytUrl.match(/youtube\\.com\\/watch\\?v=([A-Za-z0-9_-]+)/) ||\n ytUrl.match(/youtu\\.be\\/([A-Za-z0-9_-]+)/) ||\n ytUrl.match(/youtube-nocookie\\.com\\/watch\\?v=([A-Za-z0-9_-]+)/)\n\n if (m) {\n logger.log(`rewriting YouTube URL: ${ytUrl} \u2192 videoId=${m[1]}`, LogLevel.Debug)\n parent.children.splice(index, 1, {\n type: 'mdxJsxFlowElement',\n name: 'LiteYouTubeEmbed',\n attributes: [\n { type: 'mdxJsxAttribute', name: 'id', value: m[1] },\n { type: 'mdxJsxAttribute', name: 'title', value: 'YouTube video' },\n ],\n })\n }\n })\n\n visit(tree, 'text', (node: any, index: number | undefined, parent: any) => {\n if (!parent || typeof index !== 'number') return\n if (node.value.trim() === '%[' || node.value.trim() === ']') {\n logger.log(`stripping hashnode bracket artifact: ${node.value}`, LogLevel.Debug)\n parent.children.splice(index, 1)\n }\n })\n }\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,8BAAsB;AAEtB,oBAAgD;AAEhD,QAAQ,IAAI,8CAAuC;AAM5C,MAAM,gBAA0C,CAAC,YAA6B;AACjF,QAAM,EAAE,WAAW,uBAAS,OAAO,IAAI,WAAW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,43 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var timedPlugin_exports = {};
|
|
20
|
-
__export(timedPlugin_exports, {
|
|
21
|
-
timedPlugin: () => timedPlugin
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(timedPlugin_exports);
|
|
24
|
-
var import_logger = require("./logger");
|
|
25
|
-
function timedPlugin(name, plugin, opts = {}) {
|
|
26
|
-
const { logLevel = import_logger.LogLevel.Info } = opts;
|
|
27
|
-
const logger = new import_logger.Logger((0, import_logger.resolveLogLevel)(opts?.logLevel), name);
|
|
28
|
-
return ((...args) => {
|
|
29
|
-
const instance = plugin(...args);
|
|
30
|
-
return (tree, file) => {
|
|
31
|
-
const start = Date.now();
|
|
32
|
-
const res = instance(tree, file);
|
|
33
|
-
const dur = Date.now() - start;
|
|
34
|
-
logger.log(`\u23F1 finished in ${dur}ms`);
|
|
35
|
-
return res;
|
|
36
|
-
};
|
|
37
|
-
});
|
|
1
|
+
import { Logger, LogLevel, resolveLogLevel } from './logger';
|
|
2
|
+
export function timedPlugin(name, plugin, opts = {}) {
|
|
3
|
+
const { logLevel = LogLevel.Info } = opts;
|
|
4
|
+
const logger = new Logger(resolveLogLevel(opts?.logLevel), name);
|
|
5
|
+
return ((...args) => {
|
|
6
|
+
const instance = plugin(...args);
|
|
7
|
+
return (tree, file) => {
|
|
8
|
+
const start = Date.now();
|
|
9
|
+
const res = instance(tree, file);
|
|
10
|
+
const dur = Date.now() - start;
|
|
11
|
+
logger.log(`⏱ finished in ${dur}ms`);
|
|
12
|
+
return res;
|
|
13
|
+
};
|
|
14
|
+
});
|
|
38
15
|
}
|
|
39
|
-
|
|
40
|
-
0 && (module.exports = {
|
|
41
|
-
timedPlugin
|
|
42
|
-
});
|
|
43
|
-
//# sourceMappingURL=timedPlugin.js.map
|
|
16
|
+
//# sourceMappingURL=timedPlugin.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/docusaurus-plugins/timedPlugin.ts"],
|
|
4
|
-
"sourcesContent": ["import { Plugin } from \"unified\"\r\nimport {Logger, LogLevel, resolveLogLevel} from './logger'\r\n\r\nexport function timedPlugin<T extends Plugin>(\r\n name: string,\r\n plugin: T,\r\n opts: { logLevel?: LogLevel } = {}\r\n): T {\r\n const { logLevel = LogLevel.Info } = opts\r\n const logger = new Logger(resolveLogLevel(opts?.logLevel), name)\r\n\r\n return ((...args: any[]) => {\r\n const instance = (plugin as any)(...args)\r\n return (tree: any, file: any) => {\r\n const start = Date.now()\r\n const res = instance(tree, file)\r\n const dur = Date.now() - start\r\n logger.log(`\u23F1 finished in ${dur}ms`)\r\n return res\r\n }\r\n }) as any\r\n}\r\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAAgD;AAEzC,SAAS,YACZ,MACA,QACA,OAAgC,CAAC,GAChC;AACD,QAAM,EAAE,WAAW,uBAAS,KAAK,IAAI;AACrC,QAAM,SAAS,IAAI,yBAAO,+BAAgB,MAAM,QAAQ,GAAG,IAAI;AAE/D,UAAQ,IAAI,SAAgB;AACxB,UAAM,WAAY,OAAe,GAAG,IAAI;AACxC,WAAO,CAAC,MAAW,SAAc;AAC7B,YAAM,QAAQ,KAAK,IAAI;AACvB,YAAM,MAAM,SAAS,MAAM,IAAI;AAC/B,YAAM,MAAM,KAAK,IAAI,IAAI;AACzB,aAAO,IAAI,sBAAiB,GAAG,IAAI;AACnC,aAAO;AAAA,IACX;AAAA,EACJ;AACJ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"timedPlugin.js","sourceRoot":"","sources":["../../../src/docusaurus-plugins/timedPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAC,MAAM,UAAU,CAAA;AAE1D,MAAM,UAAU,WAAW,CACvB,IAAY,EACZ,MAAS,EACT,OAAgC,EAAE;IAElC,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAC,IAAI,EAAE,GAAG,IAAI,CAAA;IACzC,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,IAAI,CAAC,CAAA;IAEhE,OAAO,CAAC,CAAC,GAAG,IAAW,EAAE,EAAE;QACvB,MAAM,QAAQ,GAAI,MAAc,CAAC,GAAG,IAAI,CAAC,CAAA;QACzC,OAAO,CAAC,IAAS,EAAE,IAAS,EAAE,EAAE;YAC5B,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;YACxB,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;YAChC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAA;YAC9B,MAAM,CAAC,GAAG,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;YACpC,OAAO,GAAG,CAAA;QACd,CAAC,CAAA;IACL,CAAC,CAAQ,CAAA;AACb,CAAC"}
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAGxD,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,OAAO,EAAE,WAAW,EACpB,OAAO,GAAE,sBAA2B,GACnC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAGxD,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,OAAO,EAAE,WAAW,EACpB,OAAO,GAAE,sBAA2B,GACnC,MAAM,CA+BR;AAGD,YAAY,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -1,64 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var src_exports = {};
|
|
30
|
-
__export(src_exports, {
|
|
31
|
-
default: () => themeNetFoundry
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(src_exports);
|
|
34
|
-
var import_path = __toESM(require("path"));
|
|
35
|
-
function themeNetFoundry(context, options = {}) {
|
|
36
|
-
return {
|
|
37
|
-
name: "@netfoundry/docusaurus-theme",
|
|
38
|
-
// Register theme component overrides
|
|
39
|
-
getThemePath() {
|
|
40
|
-
return import_path.default.resolve(__dirname, "../theme");
|
|
41
|
-
},
|
|
42
|
-
// For TypeScript development
|
|
43
|
-
getTypeScriptThemePath() {
|
|
44
|
-
return import_path.default.resolve(__dirname, "../theme");
|
|
45
|
-
},
|
|
46
|
-
getPathsToWatch() {
|
|
47
|
-
return [
|
|
48
|
-
import_path.default.resolve(__dirname, "../static")
|
|
49
|
-
];
|
|
50
|
-
},
|
|
51
|
-
// Automatically inject CSS
|
|
52
|
-
getClientModules() {
|
|
53
|
-
const modules = [
|
|
54
|
-
import_path.default.resolve(__dirname, "../css/theme.css")
|
|
55
|
-
];
|
|
56
|
-
if (options.customCss) {
|
|
57
|
-
const customCssArray = Array.isArray(options.customCss) ? options.customCss : [options.customCss];
|
|
58
|
-
modules.push(...customCssArray);
|
|
59
|
-
}
|
|
60
|
-
return modules;
|
|
61
|
-
}
|
|
62
|
-
};
|
|
1
|
+
import path from 'path';
|
|
2
|
+
export default function themeNetFoundry(context, options = {}) {
|
|
3
|
+
return {
|
|
4
|
+
name: '@netfoundry/docusaurus-theme',
|
|
5
|
+
// Register theme component overrides
|
|
6
|
+
getThemePath() {
|
|
7
|
+
return path.resolve(__dirname, '../theme');
|
|
8
|
+
},
|
|
9
|
+
// For TypeScript development
|
|
10
|
+
getTypeScriptThemePath() {
|
|
11
|
+
return path.resolve(__dirname, '../theme');
|
|
12
|
+
},
|
|
13
|
+
// Automatically inject CSS
|
|
14
|
+
getClientModules() {
|
|
15
|
+
const modules = [
|
|
16
|
+
require.resolve('../css/theme.css'),
|
|
17
|
+
];
|
|
18
|
+
// Add custom CSS if specified in options
|
|
19
|
+
if (options.customCss) {
|
|
20
|
+
const customCssArray = Array.isArray(options.customCss)
|
|
21
|
+
? options.customCss
|
|
22
|
+
: [options.customCss];
|
|
23
|
+
modules.push(...customCssArray);
|
|
24
|
+
}
|
|
25
|
+
return modules;
|
|
26
|
+
},
|
|
27
|
+
};
|
|
63
28
|
}
|
|
64
|
-
|
|
29
|
+
// NOTE: UI components (defaultNetFoundryFooterProps, defaultSocialProps, etc.)
|
|
30
|
+
// should be imported directly from '@netfoundry/docusaurus-shared/ui' in client code,
|
|
31
|
+
// not from this theme entry point, as this file runs at Node.js config time.
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["import type { LoadContext, Plugin } from '@docusaurus/types';\r\nimport type { NetFoundryThemeOptions } from './options';\r\nimport path from 'path';\r\n\r\nexport default function themeNetFoundry(\r\n context: LoadContext,\r\n options: NetFoundryThemeOptions = {}\r\n): Plugin {\r\n return {\r\n name: '@netfoundry/docusaurus-theme',\r\n\r\n // Register theme component overrides\r\n getThemePath() {\r\n return path.resolve(__dirname, '../theme');\r\n },\r\n\r\n // For TypeScript development\r\n getTypeScriptThemePath() {\r\n return path.resolve(__dirname, '../theme');\r\n },\r\n\r\n getPathsToWatch() {\r\n return [\r\n path.resolve(__dirname, '../static'),\r\n ];\r\n },\r\n\r\n // Automatically inject CSS\r\n getClientModules() {\r\n const modules: string[] = [\r\n path.resolve(__dirname, '../css/theme.css'),\r\n ];\r\n\r\n // Add custom CSS if specified in options\r\n if (options.customCss) {\r\n const customCssArray = Array.isArray(options.customCss)\r\n ? options.customCss\r\n : [options.customCss];\r\n modules.push(...customCssArray);\r\n }\r\n\r\n return modules;\r\n },\r\n };\r\n}\r\n\r\n// Re-export types for consumers (types are safe to export at config time)\r\nexport type { NetFoundryThemeOptions, NetFoundryThemeConfig } from './options';\r\n\r\n// NOTE: UI components (defaultNetFoundryFooterProps, defaultSocialProps, etc.)\r\n// should be imported directly from '@netfoundry/docusaurus-shared/ui' in client code,\r\n// not from this theme entry point, as this file runs at Node.js config time.\r\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,kBAAiB;AAEF,SAAR,gBACL,SACA,UAAkC,CAAC,GAC3B;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AM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;oBACrD,CAAC,CAAC,OAAO,CAAC,SAAS;oBACnB,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;gBACxB,OAAO,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,CAAC;YAClC,CAAC;YAED,OAAO,OAAO,CAAC;QACjB,CAAC;KACF,CAAC;AACJ,CAAC;AAKD,+EAA+E;AAC/E,sFAAsF;AACtF,6EAA6E"}
|
package/dist/src/node.js
CHANGED
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
var node_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(node_exports);
|
|
18
|
-
__reExport(node_exports, require("./docusaurus-envhelper"), module.exports);
|
|
19
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
-
0 && (module.exports = {
|
|
21
|
-
...require("./docusaurus-envhelper")
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=node.js.map
|
|
1
|
+
/**
|
|
2
|
+
* Node.js utilities entry point
|
|
3
|
+
*
|
|
4
|
+
* Import from '@netfoundry/docusaurus-theme/node' in Node.js contexts.
|
|
5
|
+
*/
|
|
6
|
+
export * from './docusaurus-envhelper';
|
|
7
|
+
//# sourceMappingURL=node.js.map
|
package/dist/src/node.js.map
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/node.ts"],
|
|
4
|
-
"sourcesContent": ["/**\r\n * Node.js utilities entry point\r\n *\r\n * Import from '@netfoundry/docusaurus-theme/node' in Node.js contexts.\r\n */\r\nexport * from './docusaurus-envhelper';\r\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAKA,yBAAc,mCALd;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../src/node.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,wBAAwB,CAAC"}
|
package/dist/src/options.d.ts
CHANGED
|
@@ -34,48 +34,51 @@ export interface StarBannerConfig {
|
|
|
34
34
|
/** Label text for the star button */
|
|
35
35
|
label: string;
|
|
36
36
|
}
|
|
37
|
-
/**
|
|
38
|
-
* Navbar product configuration
|
|
39
|
-
*/
|
|
40
|
-
export interface NavbarProductConfig {
|
|
41
|
-
pathPrefix: string;
|
|
42
|
-
items: any[];
|
|
43
|
-
}
|
|
44
37
|
/**
|
|
45
38
|
* Options passed to the theme plugin in docusaurus.config.ts
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* themes: [
|
|
43
|
+
* ['@netfoundry/docusaurus-theme', {
|
|
44
|
+
* customCss: require.resolve('./src/css/custom.css'),
|
|
45
|
+
* }],
|
|
46
|
+
* ],
|
|
47
|
+
* ```
|
|
46
48
|
*/
|
|
47
49
|
export interface NetFoundryThemeOptions {
|
|
48
50
|
/** Custom CSS file path(s) to include */
|
|
49
51
|
customCss?: string | string[];
|
|
50
52
|
}
|
|
51
|
-
/**
|
|
52
|
-
* Product-specific overrides
|
|
53
|
-
*/
|
|
54
|
-
export interface ProductOverride {
|
|
55
|
-
pathPrefix: string;
|
|
56
|
-
footer?: FooterConfig;
|
|
57
|
-
starBanner?: StarBannerConfig;
|
|
58
|
-
navbarItems?: any[];
|
|
59
|
-
logo?: {
|
|
60
|
-
to?: string;
|
|
61
|
-
text?: string;
|
|
62
|
-
alt?: string;
|
|
63
|
-
logoLight?: string;
|
|
64
|
-
logoDark?: string;
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
53
|
/**
|
|
68
54
|
* Theme configuration in themeConfig.netfoundry
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* themeConfig: {
|
|
59
|
+
* netfoundry: {
|
|
60
|
+
* footer: {
|
|
61
|
+
* description: 'My site description',
|
|
62
|
+
* socialProps: {
|
|
63
|
+
* githubUrl: 'https://github.com/my-org/repo',
|
|
64
|
+
* },
|
|
65
|
+
* },
|
|
66
|
+
* starBanner: {
|
|
67
|
+
* repoUrl: 'https://github.com/my-org/repo',
|
|
68
|
+
* label: 'Star us on GitHub',
|
|
69
|
+
* },
|
|
70
|
+
* showStarBanner: true,
|
|
71
|
+
* },
|
|
72
|
+
* },
|
|
73
|
+
* ```
|
|
69
74
|
*/
|
|
70
75
|
export interface NetFoundryThemeConfig {
|
|
71
|
-
/**
|
|
76
|
+
/** Footer configuration */
|
|
72
77
|
footer?: FooterConfig;
|
|
73
|
-
/**
|
|
78
|
+
/** Star banner configuration */
|
|
74
79
|
starBanner?: StarBannerConfig;
|
|
75
80
|
/** Whether to show the star banner (default: false) */
|
|
76
81
|
showStarBanner?: boolean;
|
|
77
|
-
/** Product-specific overrides based on path */
|
|
78
|
-
products?: ProductOverride[];
|
|
79
82
|
}
|
|
80
83
|
/**
|
|
81
84
|
* Extended Docusaurus ThemeConfig with NetFoundry configuration
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;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C;IAC1B,iEAAiE;IACjE,kBAAkB,CAAC,EAAE,SAAS,EAAE,CAAC;IACjC,8BAA8B;IAC9B,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC;IAC7B,8BAA8B;IAC9B,aAAa,CAAC,EAAE,SAAS,EAAE,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,4BAA4B;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,sBAAsB;IACrC,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,qBAAqB;IACpC,2BAA2B;IAC3B,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,gCAAgC;IAChC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,uDAAuD;IACvD,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
|
package/dist/src/options.js
CHANGED
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var options_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(options_exports);
|
|
17
|
-
//# sourceMappingURL=options.js.map
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=options.js.map
|