fumadocs-openapi 9.3.9 → 9.3.11

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.
@@ -222,7 +222,10 @@ function writeIndexFiles(context, options) {
222
222
  const { data } = matter(file.content);
223
223
  if (typeof data.title !== 'string')
224
224
  continue;
225
- content.push(`<Card href="${urlFn(file.path)}" title=${JSON.stringify(data.title)} description=${JSON.stringify(data.description)} />`);
225
+ const descriptionAttr = data.description
226
+ ? `description=${JSON.stringify(data.description)} `
227
+ : '';
228
+ content.push(`<Card href="${urlFn(file.path)}" title=${JSON.stringify(data.title)} ${descriptionAttr}/>`);
226
229
  }
227
230
  content.push('</Cards>');
228
231
  return generateDocument({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-openapi",
3
- "version": "9.3.9",
3
+ "version": "9.3.11",
4
4
  "description": "Generate MDX docs for your OpenAPI spec",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -65,8 +65,8 @@
65
65
  "remark-rehype": "^11.1.2",
66
66
  "tinyglobby": "^0.2.15",
67
67
  "xml-js": "^1.6.11",
68
- "fumadocs-core": "15.7.12",
69
- "fumadocs-ui": "15.7.12"
68
+ "fumadocs-core": "15.7.13",
69
+ "fumadocs-ui": "15.7.13"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@scalar/api-client-react": "^1.3.37",
@@ -78,8 +78,8 @@
78
78
  "openapi-types": "^12.1.3",
79
79
  "tailwindcss": "^4.1.13",
80
80
  "tsc-alias": "^1.8.16",
81
- "eslint-config-custom": "0.0.0",
82
- "tsconfig": "0.0.0"
81
+ "tsconfig": "0.0.0",
82
+ "eslint-config-custom": "0.0.0"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "@scalar/api-client-react": "*",