@openpkg-ts/doc-generator 0.6.0 → 0.6.2

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.
@@ -22667,6 +22667,14 @@ var KIND_LABELS = {
22667
22667
  enum: "Enums",
22668
22668
  variable: "Variables"
22669
22669
  };
22670
+ var KIND_SLUGS = {
22671
+ function: "functions",
22672
+ class: "classes",
22673
+ interface: "interfaces",
22674
+ type: "types",
22675
+ enum: "enums",
22676
+ variable: "variables"
22677
+ };
22670
22678
  function groupByKind(exports) {
22671
22679
  const groups = new Map;
22672
22680
  for (const exp of exports) {
@@ -22708,7 +22716,7 @@ function ExportIndexPage({
22708
22716
  const availableKinds = useMemo(() => allGroups.map((g) => g.kind), [allGroups]);
22709
22717
  const totalExports = filteredGroups.reduce((sum, g) => sum + g.exports.length, 0);
22710
22718
  return /* @__PURE__ */ jsxs10("div", {
22711
- className: cn2("space-y-8 not-prose", className),
22719
+ className: cn2("doccov-index-page space-y-8 not-prose", className),
22712
22720
  children: [
22713
22721
  /* @__PURE__ */ jsxs10("div", {
22714
22722
  children: [
@@ -22780,7 +22788,7 @@ function ExportIndexPage({
22780
22788
  children: group.exports.map((exp) => /* @__PURE__ */ jsx13(ExportCard, {
22781
22789
  name: exp.name,
22782
22790
  description: exp.description,
22783
- href: `${baseHref}/${group.kind}s/${exp.id}`,
22791
+ href: `${baseHref}/${KIND_SLUGS[group.kind]}/${exp.id}`,
22784
22792
  kind: exp.kind
22785
22793
  }, exp.id))
22786
22794
  })
@@ -23386,7 +23394,7 @@ function FullAPIReferencePage({
23386
23394
  });
23387
23395
  const shouldShowFilters = showFilters && !kinds?.length && availableKinds.length > 1;
23388
23396
  return /* @__PURE__ */ jsxs15("div", {
23389
- className: cn3("not-prose", showTOC && "lg:grid lg:grid-cols-[220px_1fr] lg:gap-8", className),
23397
+ className: cn3("doccov-full-reference-page not-prose", showTOC && "lg:grid lg:grid-cols-[220px_1fr] lg:gap-8", className),
23390
23398
  children: [
23391
23399
  showTOC && /* @__PURE__ */ jsx22("aside", {
23392
23400
  className: "hidden lg:block",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openpkg-ts/doc-generator",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "API doc generator consuming OpenPkg specs. TypeDoc alternative for modern doc frameworks.",
5
5
  "keywords": [
6
6
  "openpkg",