@netfoundry/docusaurus-theme 0.2.3 → 0.3.1

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.
Files changed (173) hide show
  1. package/css/layout.css +14 -0
  2. package/css/legacy.css +2313 -0
  3. package/css/tabs-v1-gradient.css +92 -0
  4. package/css/tabs-v2-glass.css +116 -0
  5. package/css/tabs-v3-minimal.css +86 -0
  6. package/css/tabs-v4-segmented.css +85 -0
  7. package/css/tabs-v5-neon.css +99 -0
  8. package/css/tabs-v6-neumorphic.css +89 -0
  9. package/css/tabs-v7-brutalist.css +81 -0
  10. package/css/tabs-v8-float.css +114 -0
  11. package/css/tabs-v9-line.css +104 -0
  12. package/css/theme.css +20 -0
  13. package/css/vars-dark.css +7 -0
  14. package/css/vars.css +8 -0
  15. package/dist/css/theme.css +20 -72
  16. package/dist/src/components/Alert/Alert.js +6 -51
  17. package/dist/src/components/Alert/Alert.js.map +1 -7
  18. package/dist/src/components/Alert/index.js +2 -29
  19. package/dist/src/components/Alert/index.js.map +1 -7
  20. package/dist/src/components/CodeBlock/CodeBlock.js +7 -53
  21. package/dist/src/components/CodeBlock/CodeBlock.js.map +1 -7
  22. package/dist/src/components/CodeBlock/index.js +2 -29
  23. package/dist/src/components/CodeBlock/index.js.map +1 -7
  24. package/dist/src/components/Common/Common.js +16 -59
  25. package/dist/src/components/Common/Common.js.map +1 -7
  26. package/dist/src/components/Common/index.d.ts +0 -1
  27. package/dist/src/components/Common/index.d.ts.map +1 -1
  28. package/dist/src/components/Common/index.js +2 -25
  29. package/dist/src/components/Common/index.js.map +1 -7
  30. package/dist/src/components/NetFoundry/Divider/Divider.js +5 -46
  31. package/dist/src/components/NetFoundry/Divider/Divider.js.map +1 -7
  32. package/dist/src/components/NetFoundry/Divider/index.js +2 -23
  33. package/dist/src/components/NetFoundry/Divider/index.js.map +1 -7
  34. package/dist/src/components/NetFoundry/index.js +2 -23
  35. package/dist/src/components/NetFoundry/index.js.map +1 -7
  36. package/dist/src/components/NetFoundryFooter/NetFoundryFooter.d.ts +25 -2
  37. package/dist/src/components/NetFoundryFooter/NetFoundryFooter.d.ts.map +1 -1
  38. package/dist/src/components/NetFoundryFooter/NetFoundryFooter.js +65 -115
  39. package/dist/src/components/NetFoundryFooter/NetFoundryFooter.js.map +1 -7
  40. package/dist/src/components/NetFoundryFooter/index.js +2 -23
  41. package/dist/src/components/NetFoundryFooter/index.js.map +1 -7
  42. package/dist/src/components/NetFoundryHighlight/NetFoundryHighlight.js +5 -32
  43. package/dist/src/components/NetFoundryHighlight/NetFoundryHighlight.js.map +1 -7
  44. package/dist/src/components/NetFoundryHighlight/index.js +2 -29
  45. package/dist/src/components/NetFoundryHighlight/index.js.map +1 -7
  46. package/dist/src/components/NetFoundryHorizontalSection/NetFoundryHorizontalSection.js +7 -52
  47. package/dist/src/components/NetFoundryHorizontalSection/NetFoundryHorizontalSection.js.map +1 -7
  48. package/dist/src/components/NetFoundryHorizontalSection/index.js +2 -29
  49. package/dist/src/components/NetFoundryHorizontalSection/index.js.map +1 -7
  50. package/dist/src/components/NetFoundryLayout/NetFoundryLayout.d.ts.map +1 -1
  51. package/dist/src/components/NetFoundryLayout/NetFoundryLayout.js +32 -111
  52. package/dist/src/components/NetFoundryLayout/NetFoundryLayout.js.map +1 -7
  53. package/dist/src/components/NetFoundryLayout/index.js +2 -23
  54. package/dist/src/components/NetFoundryLayout/index.js.map +1 -7
  55. package/dist/src/components/NetFoundryNavbarItems/NetFoundryNavbarItems.js +13 -40
  56. package/dist/src/components/NetFoundryNavbarItems/NetFoundryNavbarItems.js.map +1 -7
  57. package/dist/src/components/NetFoundryNavbarItems/index.js +2 -29
  58. package/dist/src/components/NetFoundryNavbarItems/index.js.map +1 -7
  59. package/dist/src/components/OsTabs/OsTabs.js +17 -53
  60. package/dist/src/components/OsTabs/OsTabs.js.map +1 -7
  61. package/dist/src/components/OsTabs/index.js +2 -29
  62. package/dist/src/components/OsTabs/index.js.map +1 -7
  63. package/dist/src/components/StarUs/StarUs.js +6 -45
  64. package/dist/src/components/StarUs/StarUs.js.map +1 -7
  65. package/dist/src/components/StarUs/index.js +2 -39
  66. package/dist/src/components/StarUs/index.js.map +1 -7
  67. package/dist/src/components/index.d.ts +0 -1
  68. package/dist/src/components/index.d.ts.map +1 -1
  69. package/dist/src/components/index.js +12 -45
  70. package/dist/src/components/index.js.map +1 -7
  71. package/dist/src/docusaurus-envhelper.js +64 -111
  72. package/dist/src/docusaurus-envhelper.js.map +1 -7
  73. package/dist/src/docusaurus-plugins/index.js +8 -35
  74. package/dist/src/docusaurus-plugins/index.js.map +1 -7
  75. package/dist/src/docusaurus-plugins/logger.js +38 -66
  76. package/dist/src/docusaurus-plugins/logger.js.map +1 -7
  77. package/dist/src/docusaurus-plugins/remarkCodeSections.js +94 -127
  78. package/dist/src/docusaurus-plugins/remarkCodeSections.js.map +1 -7
  79. package/dist/src/docusaurus-plugins/remarkReplaceMetaUrl.js +22 -50
  80. package/dist/src/docusaurus-plugins/remarkReplaceMetaUrl.js.map +1 -7
  81. package/dist/src/docusaurus-plugins/remarkScopedPath.js +46 -78
  82. package/dist/src/docusaurus-plugins/remarkScopedPath.js.map +1 -7
  83. package/dist/src/docusaurus-plugins/remarkYamlTable.js +49 -84
  84. package/dist/src/docusaurus-plugins/remarkYamlTable.js.map +1 -7
  85. package/dist/src/docusaurus-plugins/remarkYouTube.js +42 -65
  86. package/dist/src/docusaurus-plugins/remarkYouTube.js.map +1 -7
  87. package/dist/src/docusaurus-plugins/timedPlugin.js +15 -42
  88. package/dist/src/docusaurus-plugins/timedPlugin.js.map +1 -7
  89. package/dist/src/index.d.ts.map +1 -1
  90. package/dist/src/index.js +31 -63
  91. package/dist/src/index.js.map +1 -7
  92. package/dist/src/node.js +7 -23
  93. package/dist/src/node.js.map +1 -7
  94. package/dist/src/options.d.ts +30 -27
  95. package/dist/src/options.d.ts.map +1 -1
  96. package/dist/src/options.js +2 -17
  97. package/dist/src/options.js.map +1 -7
  98. package/dist/src/plugins.js +7 -23
  99. package/dist/src/plugins.js.map +1 -7
  100. package/dist/src/ui.js +8 -25
  101. package/dist/src/ui.js.map +1 -7
  102. package/dist/src/version.js +2 -29
  103. package/dist/src/version.js.map +1 -7
  104. package/dist/theme/Layout/index.d.ts +9 -0
  105. package/dist/theme/Layout/index.d.ts.map +1 -1
  106. package/dist/theme/Layout/index.js +38 -82
  107. package/dist/theme/Layout/index.js.map +1 -7
  108. package/package.json +27 -19
  109. package/dist/src/components/Common/Logos.d.ts +0 -6
  110. package/dist/src/components/Common/Logos.d.ts.map +0 -1
  111. package/dist/src/components/Common/Logos.js +0 -93
  112. package/dist/src/components/Common/Logos.js.map +0 -7
  113. package/dist/src/components/NetFoundryFooter/defaults.d.ts +0 -19
  114. package/dist/src/components/NetFoundryFooter/defaults.d.ts.map +0 -1
  115. package/dist/src/components/NetFoundryFooter/defaults.js +0 -51
  116. package/dist/src/components/NetFoundryFooter/defaults.js.map +0 -7
  117. package/dist/src/components/NetFoundryFooter/types.d.ts +0 -27
  118. package/dist/src/components/NetFoundryFooter/types.d.ts.map +0 -1
  119. package/dist/src/components/NetFoundryFooter/types.js +0 -53
  120. package/dist/src/components/NetFoundryFooter/types.js.map +0 -7
  121. package/dist/src/components/ProductSearch/ProductSearch.d.ts +0 -10
  122. package/dist/src/components/ProductSearch/ProductSearch.d.ts.map +0 -1
  123. package/dist/src/components/ProductSearch/ProductSearch.js +0 -261
  124. package/dist/src/components/ProductSearch/ProductSearch.js.map +0 -7
  125. package/dist/src/components/ProductSearch/ProductSearch.module.css +0 -189
  126. package/dist/src/components/ProductSearch/index.d.ts +0 -4
  127. package/dist/src/components/ProductSearch/index.d.ts.map +0 -1
  128. package/dist/src/components/ProductSearch/index.js +0 -42
  129. package/dist/src/components/ProductSearch/index.js.map +0 -7
  130. package/dist/src/config.d.ts +0 -9
  131. package/dist/src/config.d.ts.map +0 -1
  132. package/dist/src/config.js +0 -34
  133. package/dist/src/config.js.map +0 -7
  134. package/dist/src/css-modules.d.js +0 -2
  135. package/dist/src/css-modules.d.js.map +0 -7
  136. package/dist/src/docusaurus.d.js +0 -2
  137. package/dist/src/docusaurus.d.js.map +0 -7
  138. package/dist/theme/BlogPostPage/Metadata.d.ts +0 -2
  139. package/dist/theme/BlogPostPage/Metadata.d.ts.map +0 -1
  140. package/dist/theme/BlogPostPage/Metadata.js +0 -35
  141. package/dist/theme/BlogPostPage/Metadata.js.map +0 -7
  142. package/dist/theme/BlogPostPage/StructuredData.d.ts +0 -2
  143. package/dist/theme/BlogPostPage/StructuredData.d.ts.map +0 -1
  144. package/dist/theme/BlogPostPage/StructuredData.js +0 -35
  145. package/dist/theme/BlogPostPage/StructuredData.js.map +0 -7
  146. package/dist/theme/BlogPostPage/index.d.ts +0 -14
  147. package/dist/theme/BlogPostPage/index.d.ts.map +0 -1
  148. package/dist/theme/BlogPostPage/index.js +0 -101
  149. package/dist/theme/BlogPostPage/index.js.map +0 -7
  150. package/dist/theme/BlogPostPage/index.module.css +0 -53
  151. package/dist/theme/DocSearch/index.d.ts +0 -3
  152. package/dist/theme/DocSearch/index.d.ts.map +0 -1
  153. package/dist/theme/DocSearch/index.js +0 -98
  154. package/dist/theme/DocSearch/index.js.map +0 -7
  155. package/dist/theme/DocSearch/styles.module.css +0 -12
  156. package/dist/theme/Navbar/Content/index.d.ts +0 -6
  157. package/dist/theme/Navbar/Content/index.d.ts.map +0 -1
  158. package/dist/theme/Navbar/Content/index.js +0 -70
  159. package/dist/theme/Navbar/Content/index.js.map +0 -7
  160. package/dist/theme/Navbar/Content/index.module.css +0 -0
  161. package/dist/theme/Navbar/Logo/index.d.ts +0 -3
  162. package/dist/theme/Navbar/Logo/index.d.ts.map +0 -1
  163. package/dist/theme/Navbar/Logo/index.js +0 -89
  164. package/dist/theme/Navbar/Logo/index.js.map +0 -7
  165. package/dist/theme/OsTabs/index.d.ts +0 -13
  166. package/dist/theme/OsTabs/index.d.ts.map +0 -1
  167. package/dist/theme/OsTabs/index.js +0 -51
  168. package/dist/theme/OsTabs/index.js.map +0 -7
  169. package/dist/theme/SearchBar/SearchBar.module.css +0 -37
  170. package/dist/theme/SearchBar/index.d.ts +0 -2
  171. package/dist/theme/SearchBar/index.d.ts.map +0 -1
  172. package/dist/theme/SearchBar/index.js +0 -91
  173. package/dist/theme/SearchBar/index.js.map +0 -7
@@ -1,129 +1,96 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var remarkCodeSections_exports = {};
20
- __export(remarkCodeSections_exports, {
21
- remarkCodeSections: () => remarkCodeSections
22
- });
23
- module.exports = __toCommonJS(remarkCodeSections_exports);
24
- var import_unist_util_visit = require("unist-util-visit");
25
- var import_logger = require("./logger");
26
- const remarkCodeSections = (options) => {
27
- const logger = new import_logger.Logger((0, import_logger.resolveLogLevel)(options?.logLevel), "remarkCodeSections");
28
- const desc_text = "@desc:";
29
- const command_text = "@command:";
30
- const code_text = "@code:";
31
- const results_text = "@results:";
32
- return (tree) => {
33
- (0, import_unist_util_visit.visit)(tree, "code", (node, index, parent) => {
34
- if (!node?.value) return;
35
- const hasActivator = /@desc:|@command:|@code:|@results:/.test(node.value);
36
- if (!hasActivator) return;
37
- logger.log(node, import_logger.LogLevel.Debug);
38
- if (node.lang && node.lang.startsWith("example")) {
39
- const lang = node.lang.replace("example-", "").trim();
40
- const lines = node.value.split("\n");
41
- let description = "", command = "", code = "", results = "", codeTitle = "";
42
- let currentSection = "";
43
- lines.forEach((line) => {
44
- if (line.startsWith(desc_text)) {
45
- currentSection = "description";
46
- description = line.replace(desc_text, "").trim();
47
- } else if (line.startsWith(command_text)) {
48
- currentSection = "command";
49
- command = line.replace(command_text, "").trim();
50
- } else if (line.startsWith(code_text)) {
51
- currentSection = "code";
52
- codeTitle = line.replace(code_text, "").trim();
53
- } else if (line.startsWith(results_text)) {
54
- currentSection = "results";
55
- results = line.replace(results_text, "").trim();
56
- } else {
57
- if (currentSection === "description") description += `
58
- ${line}`;
59
- else if (currentSection === "command") command += `
60
- ${line}`;
61
- else if (currentSection === "code") code += `
62
- ${line}`;
63
- else if (currentSection === "results") results += `
64
- ${line}`;
65
- }
1
+ import { visit } from "unist-util-visit";
2
+ import { Logger, LogLevel, resolveLogLevel } from "./logger";
3
+ export const remarkCodeSections = (options) => {
4
+ const logger = new Logger(resolveLogLevel(options?.logLevel), "remarkCodeSections");
5
+ const desc_text = "@desc:";
6
+ const command_text = "@command:";
7
+ const code_text = "@code:";
8
+ const results_text = "@results:";
9
+ return (tree) => {
10
+ visit(tree, "code", (node, index, parent) => {
11
+ if (!node?.value)
12
+ return;
13
+ const hasActivator = /@desc:|@command:|@code:|@results:/.test(node.value);
14
+ if (!hasActivator)
15
+ return;
16
+ logger.log(node, LogLevel.Debug);
17
+ if (node.lang && node.lang.startsWith("example")) {
18
+ const lang = node.lang.replace("example-", "").trim();
19
+ const lines = node.value.split("\n");
20
+ let description = "", command = "", code = "", results = "", codeTitle = "";
21
+ let currentSection = "";
22
+ lines.forEach((line) => {
23
+ if (line.startsWith(desc_text)) {
24
+ currentSection = "description";
25
+ description = line.replace(desc_text, "").trim();
26
+ }
27
+ else if (line.startsWith(command_text)) {
28
+ currentSection = "command";
29
+ command = line.replace(command_text, "").trim();
30
+ }
31
+ else if (line.startsWith(code_text)) {
32
+ currentSection = "code";
33
+ codeTitle = line.replace(code_text, "").trim();
34
+ }
35
+ else if (line.startsWith(results_text)) {
36
+ currentSection = "results";
37
+ results = line.replace(results_text, "").trim();
38
+ }
39
+ else {
40
+ if (currentSection === "description")
41
+ description += `\n${line}`;
42
+ else if (currentSection === "command")
43
+ command += `\n${line}`;
44
+ else if (currentSection === "code")
45
+ code += `\n${line}`;
46
+ else if (currentSection === "results")
47
+ results += `\n${line}`;
48
+ }
49
+ });
50
+ const divWrapper = {
51
+ type: "div",
52
+ data: { hName: "div", hProperties: { className: "code-section" } },
53
+ children: [],
54
+ };
55
+ if (description) {
56
+ const descDiv = {
57
+ type: "div",
58
+ data: { hName: "div", hProperties: { className: "code-section-desc" } },
59
+ children: [],
60
+ };
61
+ descDiv.children.push({ type: "paragraph", children: [{ type: "strong", children: [{ type: "text", value: "Description:" }] }] }, { type: "paragraph", children: [{ type: "text", value: description.trim() }], data: { hProperties: { style: "padding-bottom: 10px;" } } });
62
+ divWrapper.children.push(descDiv);
63
+ }
64
+ if (command) {
65
+ const cmdDiv = {
66
+ type: "div",
67
+ data: { hName: "div", hProperties: { className: "code-section-command" } },
68
+ children: [],
69
+ };
70
+ cmdDiv.children.push({ type: "paragraph", children: [{ type: "strong", children: [{ type: "text", value: "Command:" }] }] }, { type: "code", lang: "sh", value: command.trim() });
71
+ divWrapper.children.push(cmdDiv);
72
+ }
73
+ if (code) {
74
+ const codeDiv = {
75
+ type: "div",
76
+ data: { hName: "div", hProperties: { className: "code-section-code" } },
77
+ children: [],
78
+ };
79
+ codeDiv.children.push({ type: "paragraph", children: [{ type: "strong", children: [{ type: "text", value: codeTitle }] }] }, { type: "code", lang, value: code.trim() });
80
+ divWrapper.children.push(codeDiv);
81
+ }
82
+ if (results) {
83
+ const resultsDiv = {
84
+ type: "div",
85
+ data: { hName: "div", hProperties: { className: "code-section-results" } },
86
+ children: [],
87
+ };
88
+ resultsDiv.children.push({ type: "paragraph", children: [{ type: "strong", children: [{ type: "text", value: "Results:" }] }] }, { type: "code", lang: "buttonless", value: results.trim() });
89
+ divWrapper.children.push(resultsDiv);
90
+ }
91
+ parent.children.splice(index, 1, divWrapper);
92
+ }
66
93
  });
67
- const divWrapper = {
68
- type: "div",
69
- data: { hName: "div", hProperties: { className: "code-section" } },
70
- children: []
71
- };
72
- if (description) {
73
- const descDiv = {
74
- type: "div",
75
- data: { hName: "div", hProperties: { className: "code-section-desc" } },
76
- children: []
77
- };
78
- descDiv.children.push(
79
- { type: "paragraph", children: [{ type: "strong", children: [{ type: "text", value: "Description:" }] }] },
80
- { type: "paragraph", children: [{ type: "text", value: description.trim() }], data: { hProperties: { style: "padding-bottom: 10px;" } } }
81
- );
82
- divWrapper.children.push(descDiv);
83
- }
84
- if (command) {
85
- const cmdDiv = {
86
- type: "div",
87
- data: { hName: "div", hProperties: { className: "code-section-command" } },
88
- children: []
89
- };
90
- cmdDiv.children.push(
91
- { type: "paragraph", children: [{ type: "strong", children: [{ type: "text", value: "Command:" }] }] },
92
- { type: "code", lang: "sh", value: command.trim() }
93
- );
94
- divWrapper.children.push(cmdDiv);
95
- }
96
- if (code) {
97
- const codeDiv = {
98
- type: "div",
99
- data: { hName: "div", hProperties: { className: "code-section-code" } },
100
- children: []
101
- };
102
- codeDiv.children.push(
103
- { type: "paragraph", children: [{ type: "strong", children: [{ type: "text", value: codeTitle }] }] },
104
- { type: "code", lang, value: code.trim() }
105
- );
106
- divWrapper.children.push(codeDiv);
107
- }
108
- if (results) {
109
- const resultsDiv = {
110
- type: "div",
111
- data: { hName: "div", hProperties: { className: "code-section-results" } },
112
- children: []
113
- };
114
- resultsDiv.children.push(
115
- { type: "paragraph", children: [{ type: "strong", children: [{ type: "text", value: "Results:" }] }] },
116
- { type: "code", lang: "buttonless", value: results.trim() }
117
- );
118
- divWrapper.children.push(resultsDiv);
119
- }
120
- parent.children.splice(index, 1, divWrapper);
121
- }
122
- });
123
- };
94
+ };
124
95
  };
125
- // Annotate the CommonJS export names for ESM import in node:
126
- 0 && (module.exports = {
127
- remarkCodeSections
128
- });
129
- //# sourceMappingURL=remarkCodeSections.js.map
96
+ //# sourceMappingURL=remarkCodeSections.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/docusaurus-plugins/remarkCodeSections.ts"],
4
- "sourcesContent": ["import {visit} from \"unist-util-visit\"\nimport type {Plugin} from \"unified\"\nimport type {Node} from \"unist\"\nimport {Logger, LogLevel, resolveLogLevel} from \"./logger\"\n\ninterface Options {\n logLevel?: LogLevel\n}\n\nexport const remarkCodeSections: Plugin<[Options?]> = (options?: Options) => {\n const logger = new Logger(resolveLogLevel(options?.logLevel), \"remarkCodeSections\")\n\n const desc_text = \"@desc:\"\n const command_text = \"@command:\"\n const code_text = \"@code:\"\n const results_text = \"@results:\"\n\n return (tree: Node) => {\n visit(tree, \"code\", (node: any, index: number, parent: any) => {\n if (!node?.value) return\n\n const hasActivator = /@desc:|@command:|@code:|@results:/.test(node.value)\n if (!hasActivator) return\n\n logger.log(node, LogLevel.Debug)\n if (node.lang && node.lang.startsWith(\"example\")) {\n const lang = node.lang.replace(\"example-\", \"\").trim()\n const lines = node.value.split(\"\\n\")\n let description = \"\", command = \"\", code = \"\", results = \"\", codeTitle = \"\"\n let currentSection = \"\"\n\n lines.forEach((line: string) => {\n if (line.startsWith(desc_text)) {\n currentSection = \"description\"\n description = line.replace(desc_text, \"\").trim()\n } else if (line.startsWith(command_text)) {\n currentSection = \"command\"\n command = line.replace(command_text, \"\").trim()\n } else if (line.startsWith(code_text)) {\n currentSection = \"code\"\n codeTitle = line.replace(code_text, \"\").trim()\n } else if (line.startsWith(results_text)) {\n currentSection = \"results\"\n results = line.replace(results_text, \"\").trim()\n } else {\n if (currentSection === \"description\") description += `\\n${line}`\n else if (currentSection === \"command\") command += `\\n${line}`\n else if (currentSection === \"code\") code += `\\n${line}`\n else if (currentSection === \"results\") results += `\\n${line}`\n }\n })\n\n const divWrapper = {\n type: \"div\",\n data: { hName: \"div\", hProperties: { className: \"code-section\" } },\n children: [] as any[],\n }\n\n if (description) {\n const descDiv = {\n type: \"div\",\n data: { hName: \"div\", hProperties: { className: \"code-section-desc\" } },\n children: [] as any[],\n }\n descDiv.children.push(\n { type: \"paragraph\", children: [{ type: \"strong\", children: [{ type: \"text\", value: \"Description:\" }] }] },\n { type: \"paragraph\", children: [{ type: \"text\", value: description.trim() }], data: { hProperties: { style: \"padding-bottom: 10px;\" } } },\n )\n divWrapper.children.push(descDiv)\n }\n\n if (command) {\n const cmdDiv = {\n type: \"div\",\n data: { hName: \"div\", hProperties: { className: \"code-section-command\" } },\n children: [] as any[],\n }\n cmdDiv.children.push(\n { type: \"paragraph\", children: [{ type: \"strong\", children: [{ type: \"text\", value: \"Command:\" }] }] },\n { type: \"code\", lang: \"sh\", value: command.trim() },\n )\n divWrapper.children.push(cmdDiv)\n }\n\n if (code) {\n const codeDiv = {\n type: \"div\",\n data: { hName: \"div\", hProperties: { className: \"code-section-code\" } },\n children: [] as any[],\n }\n codeDiv.children.push(\n { type: \"paragraph\", children: [{ type: \"strong\", children: [{ type: \"text\", value: codeTitle }] }] },\n { type: \"code\", lang, value: code.trim() },\n )\n divWrapper.children.push(codeDiv)\n }\n\n if (results) {\n const resultsDiv = {\n type: \"div\",\n data: { hName: \"div\", hProperties: { className: \"code-section-results\" } },\n children: [] as any[],\n }\n resultsDiv.children.push(\n { type: \"paragraph\", children: [{ type: \"strong\", children: [{ type: \"text\", value: \"Results:\" }] }] },\n { type: \"code\", lang: \"buttonless\", value: results.trim() },\n )\n divWrapper.children.push(resultsDiv)\n }\n\n parent.children.splice(index, 1, divWrapper)\n }\n })\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAoB;AAGpB,oBAAgD;AAMzC,MAAM,qBAAyC,CAAC,YAAsB;AACzE,QAAM,SAAS,IAAI,yBAAO,+BAAgB,SAAS,QAAQ,GAAG,oBAAoB;AAElF,QAAM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AAC;gBAED,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC,CAAA;YAChD,CAAC;QACL,CAAC,CAAC,CAAA;IACN,CAAC,CAAA;AACL,CAAC,CAAA"}
@@ -1,51 +1,23 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
1
+ import { visit } from 'unist-util-visit';
2
+ import { Logger, LogLevel, resolveLogLevel } from './logger';
3
+ console.log("🦖 remarkReplaceMetaUrl plugin loaded");
4
+ export const remarkReplaceMetaUrl = (options) => {
5
+ const { from = '', to = '', logLevel = LogLevel.Silent } = options ?? {};
6
+ const logger = new Logger(resolveLogLevel(options?.logLevel), 'remarkReplaceMetaUrl');
7
+ logger.log(`initialized: replacing "${from}" → "${to}"`);
8
+ return (tree) => {
9
+ visit(tree, 'mdxJsxFlowElement', (node) => {
10
+ if (node.name === 'meta' && Array.isArray(node.attributes)) {
11
+ for (const attr of node.attributes) {
12
+ if (attr.name === 'content' && typeof attr.value === 'string' && attr.value.includes(from)) {
13
+ const newVal = attr.value.replace(from, to);
14
+ logger.log(`rewriting: "${attr.value}" → "${newVal}"`, LogLevel.Info);
15
+ attr.value = newVal;
16
+ }
17
+ }
18
+ }
19
+ });
20
+ };
9
21
  };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var remarkReplaceMetaUrl_exports = {};
20
- __export(remarkReplaceMetaUrl_exports, {
21
- default: () => remarkReplaceMetaUrl_default,
22
- remarkReplaceMetaUrl: () => remarkReplaceMetaUrl
23
- });
24
- module.exports = __toCommonJS(remarkReplaceMetaUrl_exports);
25
- var import_unist_util_visit = require("unist-util-visit");
26
- var import_logger = require("./logger");
27
- console.log("\u{1F996} remarkReplaceMetaUrl plugin loaded");
28
- const remarkReplaceMetaUrl = (options) => {
29
- const { from = "", to = "", logLevel = import_logger.LogLevel.Silent } = options ?? {};
30
- const logger = new import_logger.Logger((0, import_logger.resolveLogLevel)(options?.logLevel), "remarkReplaceMetaUrl");
31
- logger.log(`initialized: replacing "${from}" \u2192 "${to}"`);
32
- return (tree) => {
33
- (0, import_unist_util_visit.visit)(tree, "mdxJsxFlowElement", (node) => {
34
- if (node.name === "meta" && Array.isArray(node.attributes)) {
35
- for (const attr of node.attributes) {
36
- if (attr.name === "content" && typeof attr.value === "string" && attr.value.includes(from)) {
37
- const newVal = attr.value.replace(from, to);
38
- logger.log(`rewriting: "${attr.value}" \u2192 "${newVal}"`, import_logger.LogLevel.Info);
39
- attr.value = newVal;
40
- }
41
- }
42
- }
43
- });
44
- };
45
- };
46
- var remarkReplaceMetaUrl_default = remarkReplaceMetaUrl;
47
- // Annotate the CommonJS export names for ESM import in node:
48
- 0 && (module.exports = {
49
- remarkReplaceMetaUrl
50
- });
51
- //# sourceMappingURL=remarkReplaceMetaUrl.js.map
22
+ export default remarkReplaceMetaUrl;
23
+ //# sourceMappingURL=remarkReplaceMetaUrl.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/docusaurus-plugins/remarkReplaceMetaUrl.ts"],
4
- "sourcesContent": ["import { Plugin } from 'unified'\r\nimport { visit } from 'unist-util-visit'\r\nimport { Root } from 'mdast'\r\nimport {Logger, LogLevel, resolveLogLevel} from './logger'\r\n\r\nconsole.log(\"\uD83E\uDD96 remarkReplaceMetaUrl plugin loaded\")\r\n\r\ninterface Options {\r\n from: string\r\n to: string\r\n logLevel?: LogLevel\r\n}\r\n\r\nexport const remarkReplaceMetaUrl: Plugin<[Options], Root> = (options?: Options) => {\r\n const { from = '', to = '', logLevel = LogLevel.Silent } = options ?? {}\r\n const logger = new Logger(resolveLogLevel(options?.logLevel), 'remarkReplaceMetaUrl')\r\n\r\n logger.log(`initialized: replacing \"${from}\" \u2192 \"${to}\"`)\r\n\r\n return (tree: Root) => {\r\n visit(tree, 'mdxJsxFlowElement', (node: any) => {\r\n if (node.name === 'meta' && Array.isArray(node.attributes)) {\r\n for (const attr of node.attributes) {\r\n if (attr.name === 'content' && typeof attr.value === 'string' && attr.value.includes(from)) {\r\n const newVal = attr.value.replace(from, to)\r\n logger.log(`rewriting: \"${attr.value}\" \u2192 \"${newVal}\"`, LogLevel.Info)\r\n attr.value = newVal\r\n }\r\n }\r\n }\r\n })\r\n }\r\n}\r\n\r\nexport default remarkReplaceMetaUrl\r\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,8BAAsB;AAEtB,oBAAgD;AAEhD,QAAQ,IAAI,8CAAuC;AAQ5C,MAAM,uBAAgD,CAAC,YAAsB;AAChF,QAAM,EAAE,OAAO,IAAI,KAAK,IAAI,WAAW,uBAAS,OAAO,IAAI,WAAW,CAAC;AACvE,QAAM,SAAS,IAAI,yBAAO,+BAAgB,SAAS,QAAQ,GAAG,sBAAsB;AAEpF,SAAO,IAAI,2BAA2B,IAAI,aAAQ,EAAE,GAAG;AAEvD,SAAO,CAAC,SAAe;AACnB,uCAAM,MAAM,qBAAqB,CAAC,SAAc;AAC5C,UAAI,KAAK,SAAS,UAAU,MAAM,QAAQ,KAAK,UAAU,GAAG;AACxD,mBAAW,QAAQ,KAAK,YAAY;AAChC,cAAI,KAAK,SAAS,aAAa,OAAO,KAAK,UAAU,YAAY,KAAK,MAAM,SAAS,IAAI,GAAG;AACxF,kBAAM,SAAS,KAAK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,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;wBACzF,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;wBAC3C,MAAM,CAAC,GAAG,CAAC,eAAe,IAAI,CAAC,KAAK,QAAQ,MAAM,GAAG,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAA;wBACrE,IAAI,CAAC,KAAK,GAAG,MAAM,CAAA;oBACvB,CAAC;gBACL,CAAC;YACL,CAAC;QACL,CAAC,CAAC,CAAA;IACN,CAAC,CAAA;AACL,CAAC,CAAA;AAED,eAAe,oBAAoB,CAAA"}
@@ -1,80 +1,48 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var remarkScopedPath_exports = {};
20
- __export(remarkScopedPath_exports, {
21
- remarkScopedPath: () => remarkScopedPath
22
- });
23
- module.exports = __toCommonJS(remarkScopedPath_exports);
24
- var import_unist_util_visit = require("unist-util-visit");
25
- var import_logger = require("./logger");
26
- console.log("\u{1F996} remarkScopedPath plugin module loaded");
27
- const remarkScopedPath = (options) => {
28
- const { mappings = [], logLevel = import_logger.LogLevel.Silent } = options ?? {};
29
- const logger = new import_logger.Logger((0, import_logger.resolveLogLevel)(options?.logLevel), "remarkScopedPath");
30
- logger.log(`initialized with ${mappings.length} mappings`);
31
- return (tree, file) => {
32
- const filePath = file?.path || file?.history?.slice(-1)[0] || "unknown";
33
- logger.log(`processing file: ${filePath}`, import_logger.LogLevel.Debug);
34
- const rewrite = (val, from, to, ctx) => {
35
- if (val.startsWith(from)) {
36
- const newVal = val.replace(from, to);
37
- logger.log(`\u{1F504} ${ctx} ${val} \u2192 ${newVal}`, import_logger.LogLevel.Info);
38
- return newVal;
39
- }
40
- return val;
1
+ import { visit } from 'unist-util-visit';
2
+ import { Logger, LogLevel, resolveLogLevel } from './logger';
3
+ console.log("🦖 remarkScopedPath plugin module loaded");
4
+ export const remarkScopedPath = (options) => {
5
+ const { mappings = [], logLevel = LogLevel.Silent } = options ?? {};
6
+ const logger = new Logger(resolveLogLevel(options?.logLevel), 'remarkScopedPath');
7
+ logger.log(`initialized with ${mappings.length} mappings`);
8
+ return (tree, file) => {
9
+ const filePath = file?.path || file?.history?.slice(-1)[0] || 'unknown';
10
+ logger.log(`processing file: ${filePath}`, LogLevel.Debug);
11
+ const rewrite = (val, from, to, ctx) => {
12
+ if (val.startsWith(from)) {
13
+ const newVal = val.replace(from, to);
14
+ logger.log(`🔄 ${ctx} ${val} ${newVal}`, LogLevel.Info);
15
+ return newVal;
16
+ }
17
+ return val;
18
+ };
19
+ visit(tree, 'image', (node) => {
20
+ for (const { from, to } of mappings)
21
+ node.url = rewrite(node.url, from, to, 'img');
22
+ });
23
+ visit(tree, 'link', (node) => {
24
+ for (const { from, to } of mappings)
25
+ node.url = rewrite(node.url, from, to, 'link');
26
+ });
27
+ visit(tree, 'mdxJsxFlowElement', (node) => {
28
+ node.attributes?.forEach(attr => {
29
+ if (attr.type === 'mdxJsxAttribute' && typeof attr.value === 'string') {
30
+ for (const { from, to } of mappings)
31
+ attr.value = rewrite(attr.value, from, to, `jsx <${node.name}> ${attr.name}:`);
32
+ }
33
+ });
34
+ });
35
+ visit(tree, 'mdxjsEsm', (node) => {
36
+ for (const { from, to } of mappings) {
37
+ const re = new RegExp(`(['"])${from}/`, 'g');
38
+ const newVal = node.value.replace(re, `$1${to}/`);
39
+ if (newVal !== node.value) {
40
+ logger.log(`esm rewrite (${from} → ${to}):\n--- before ---\n${node.value}\n--- after ---\n${newVal}`, LogLevel.Info);
41
+ node.value = newVal;
42
+ }
43
+ }
44
+ });
45
+ logger.log(` `, LogLevel.Debug);
41
46
  };
42
- (0, import_unist_util_visit.visit)(tree, "image", (node) => {
43
- for (const { from, to } of mappings) node.url = rewrite(node.url, from, to, "img");
44
- });
45
- (0, import_unist_util_visit.visit)(tree, "link", (node) => {
46
- for (const { from, to } of mappings) node.url = rewrite(node.url, from, to, "link");
47
- });
48
- (0, import_unist_util_visit.visit)(tree, "mdxJsxFlowElement", (node) => {
49
- node.attributes?.forEach((attr) => {
50
- if (attr.type === "mdxJsxAttribute" && typeof attr.value === "string") {
51
- for (const { from, to } of mappings)
52
- attr.value = rewrite(attr.value, from, to, `jsx <${node.name}> ${attr.name}:`);
53
- }
54
- });
55
- });
56
- (0, import_unist_util_visit.visit)(tree, "mdxjsEsm", (node) => {
57
- for (const { from, to } of mappings) {
58
- const re = new RegExp(`(['"])${from}/`, "g");
59
- const newVal = node.value.replace(re, `$1${to}/`);
60
- if (newVal !== node.value) {
61
- logger.log(
62
- `esm rewrite (${from} \u2192 ${to}):
63
- --- before ---
64
- ${node.value}
65
- --- after ---
66
- ${newVal}`,
67
- import_logger.LogLevel.Info
68
- );
69
- node.value = newVal;
70
- }
71
- }
72
- });
73
- logger.log(` `, import_logger.LogLevel.Debug);
74
- };
75
47
  };
76
- // Annotate the CommonJS export names for ESM import in node:
77
- 0 && (module.exports = {
78
- remarkScopedPath
79
- });
80
- //# sourceMappingURL=remarkScopedPath.js.map
48
+ //# sourceMappingURL=remarkScopedPath.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/docusaurus-plugins/remarkScopedPath.ts"],
4
- "sourcesContent": ["import { Plugin } from 'unified'\r\nimport { visit } from 'unist-util-visit'\r\nimport { Image, Link } from 'mdast'\r\nimport { MdxJsxFlowElement, MdxjsEsm } from 'mdast-util-mdx'\r\nimport {Logger, LogLevel, resolveLogLevel} from './logger'\r\n\r\nconsole.log(\"\uD83E\uDD96 remarkScopedPath plugin module loaded\")\r\n\r\ninterface ScopedPathOptions {\r\n from: string\r\n to: string\r\n}\r\ninterface Options {\r\n mappings: ScopedPathOptions[]\r\n logLevel?: LogLevel\r\n}\r\n\r\nexport const remarkScopedPath: Plugin<[Options]> = (options?: Options) => {\r\n const { mappings = [], logLevel = LogLevel.Silent } = options ?? {}\r\n const logger = new Logger(resolveLogLevel(options?.logLevel), 'remarkScopedPath')\r\n\r\n logger.log(`initialized with ${mappings.length} mappings`)\r\n\r\n return (tree, file) => {\r\n const filePath = file?.path || file?.history?.slice(-1)[0] || 'unknown'\r\n logger.log(`processing file: ${filePath}`, LogLevel.Debug)\r\n\r\n const rewrite = (val: string, from: string, to: string, ctx: string) => {\r\n if (val.startsWith(from)) {\r\n const newVal = val.replace(from, to)\r\n logger.log(`\uD83D\uDD04 ${ctx} ${val} \u2192 ${newVal}`, LogLevel.Info)\r\n return newVal\r\n }\r\n return val\r\n }\r\n\r\n visit(tree, 'image', (node: Image) => {\r\n for (const { from, to } of mappings) node.url = rewrite(node.url, from, to, 'img')\r\n })\r\n\r\n visit(tree, 'link', (node: Link) => {\r\n for (const { from, to } of mappings) node.url = rewrite(node.url, from, to, 'link')\r\n })\r\n\r\n visit(tree, 'mdxJsxFlowElement', (node: MdxJsxFlowElement) => {\r\n node.attributes?.forEach(attr => {\r\n if (attr.type === 'mdxJsxAttribute' && typeof attr.value === 'string') {\r\n for (const { from, to } of mappings)\r\n attr.value = rewrite(attr.value, from, to, `jsx <${node.name}> ${attr.name}:`)\r\n }\r\n })\r\n })\r\n\r\n visit(tree, 'mdxjsEsm', (node: MdxjsEsm) => {\r\n for (const { from, to } of mappings) {\r\n const re = new RegExp(`(['\"])${from}/`, 'g')\r\n const newVal = node.value.replace(re, `$1${to}/`)\r\n if (newVal !== node.value) {\r\n logger.log(\r\n `esm rewrite (${from} \u2192 ${to}):\\n--- before ---\\n${node.value}\\n--- after ---\\n${newVal}`,\r\n LogLevel.Info\r\n )\r\n node.value = newVal\r\n }\r\n }\r\n })\r\n\r\n logger.log(` `, LogLevel.Debug)\r\n }\r\n}\r\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,8BAAsB;AAGtB,oBAAgD;AAEhD,QAAQ,IAAI,iDAA0C;AAW/C,MAAM,mBAAsC,CAAC,YAAsB;AACtE,QAAM,EAAE,WAAW,CAAC,GAAG,WAAW,uBAAS,OAAO,IAAI,WAAW,CAAC;AAClE,QAAM,SAAS,IAAI,yBAAO,+BAAgB,SAAS,QAAQ,GAAG,kBAAkB;AAEhF,SAAO,IAAI,oBAAoB,SAAS,MAAM,WAAW;AAEzD,SAAO,CAAC,MAAM,SAAS;AACnB,UAAM,WAAW,MAAM,QAAQ,MAAM,SAAS,MAAM,EAAE,EAAE,CAAC,KAAK;AAC9D,WAAO,IAAI,oBAAoB,QAAQ,IAAI,uBAAS,KAAK;AAEzD,UAAM,UAAU,CAAC,KAAa,MAAc,IAAY,QAAgB;AACpE,UAAI,IAAI,WAAW,IAAI,GAAG;AACtB,cAAM,SAAS,IAAI,QAAQ,MAAM,EAAE;AACnC,eAAO,IAAI,aAAM,GAAG,IAAI,GAAG,WAAM,MAAM,IAAI,uBAAS,IAAI;AACxD,eAAO;AAAA,MACX;AACA,aAAO;AAAA,IACX;AAEA,uCAAM,MAAM,SAAS,CAAC,SAAgB;AAClC,iBAAW,EAAE,MAAM,GAAG,KAAK,SAAU,MAAK,MAAM,QAAQ,KAAK,KAAK,MAAM,IAAI,KAAK;AAAA,IACrF,CAAC;AAED,uCAAM,MAAM,QAAQ,CAAC,SAAe;AAChC,iBA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