Skip to content

Commit fa3583d

Browse files
committed
DataTag
1 parent 484054c commit fa3583d

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

src/generators/index.mjs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,17 @@ export const publicGenerators = {
2525
'api-links': apiLinks,
2626
'orama-db': oramaDb,
2727
'llms-txt': llmsTxt,
28-
'jsx-ast': jsxAst,
2928
web,
3029
};
3130

31+
// These ones are special since they don't produce standard output,
32+
// and hence, we don't expose them to the CLI.
33+
const internalGenerators = {
34+
'jsx-ast': jsxAst,
35+
'ast-js': astJs,
36+
};
37+
3238
export const allGenerators = {
3339
...publicGenerators,
34-
// This one is a little special since we don't want it to run unless we need
35-
// it and we also don't want it to be publicly accessible through the CLI.
36-
'ast-js': astJs,
40+
...internalGenerators,
3741
};

src/generators/jsx-ast/utils/buildContent.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const transformHeadingNode = (entry, node, index, parent) => {
112112
// Add type icon if available
113113
if (data.type in API_ICONS) {
114114
headerChildren.unshift(
115-
createJSXElement(JSX_IMPORTS.CircularIcon.name, API_ICONS[data.type])
115+
createJSXElement(JSX_IMPORTS.DataTag.name, API_ICONS[data.type])
116116
);
117117
}
118118

src/generators/web/client/components/CircularIcon.jsx

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default () => <div>DataTag</div>;

src/generators/web/constants.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ export const JSX_IMPORTS = {
2626
name: 'ChangeHistory',
2727
source: './components/ChangeHistory.jsx',
2828
},
29-
CircularIcon: {
30-
name: 'CircularIcon',
31-
source: './components/CircularIcon.jsx',
29+
DataTag: {
30+
name: 'DataTag',
31+
source: './components/DataTag.jsx',
3232
},
3333
CodeBox: {
3434
name: 'CodeBox',

0 commit comments

Comments
 (0)