@openpkg-ts/fumadocs-adapter 0.6.3 → 0.6.4
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/dist/index.js +2 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -178,10 +178,8 @@ function openpkgPlugin(options = {}) {
|
|
|
178
178
|
const kind = pageData.export?.kind;
|
|
179
179
|
if (!kind || !KIND_BADGES[kind])
|
|
180
180
|
return node;
|
|
181
|
-
const badge = createElement(KindBadge, { kind
|
|
182
|
-
|
|
183
|
-
const newName = createElement("span", { className: "openpkg-sidebar-item" }, badge, name);
|
|
184
|
-
return { ...node, name: newName };
|
|
181
|
+
const badge = createElement(KindBadge, { kind });
|
|
182
|
+
return { ...node, icon: badge };
|
|
185
183
|
}
|
|
186
184
|
}
|
|
187
185
|
};
|