doccupine 0.0.4 → 0.0.6

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 CHANGED
@@ -298,13 +298,13 @@ import { Docs } from "@/components/Docs";
298
298
  const content = \`${mdxFile.content.replace(/`/g, "\\`")}\`;
299
299
 
300
300
  export const metadata: Metadata = {
301
- title: '${mdxFile.frontmatter.title || "Generated with Doccupine"}',
302
- description: '${mdxFile.frontmatter.description || "Automatically generated from MDX files using Doccupine"}',
303
- icons: '${mdxFile.frontmatter.icon || ""}',
301
+ title: "${mdxFile.frontmatter.title || "Generated with Doccupine"}",
302
+ description: "${mdxFile.frontmatter.description || "Automatically generated from MDX files using Doccupine"}",
303
+ icons: "${mdxFile.frontmatter.icon || "https://doccupine.com/favicon.ico"}",
304
304
  openGraph: {
305
- title: '${mdxFile.frontmatter.title || "Generated with Doccupine"}',
306
- description: '${mdxFile.frontmatter.description || "Automatically generated from MDX files using Doccupine"}',
307
- images: '${mdxFile.frontmatter.image || ""}',
305
+ title: "${mdxFile.frontmatter.title || "Generated with Doccupine"}",
306
+ description: "${mdxFile.frontmatter.description || "Automatically generated from MDX files using Doccupine"}",
307
+ images: "${mdxFile.frontmatter.image || "https://doccupine.com/preview.png"}",
308
308
  }
309
309
  };
310
310
 
@@ -333,8 +333,8 @@ export default function Page() {
333
333
  description: frontmatter.description || "",
334
334
  categoryOrder: frontmatter.categoryOrder || 0,
335
335
  order: frontmatter.order || 0,
336
- icon: frontmatter.icon || "",
337
- image: frontmatter.image || "",
336
+ icon: frontmatter.icon || "https://doccupine.com/favicon.ico",
337
+ image: frontmatter.image || "https://doccupine.com/preview.png",
338
338
  };
339
339
  }
340
340
  }
@@ -345,18 +345,24 @@ ${indexMDX ? `const indexContent = \`${indexMDX.content.replace(/`/g, "\\`")}\`;
345
345
 
346
346
  ${indexMDX
347
347
  ? `export const metadata: Metadata = {
348
- title: '${indexMDX.title}',
349
- description: '${indexMDX.description}',
350
- icons: '${indexMDX.icon}',
351
- openGraph: {
352
- title: '${indexMDX.title}',
353
- description: '${indexMDX.description}',
354
- images: '${indexMDX.image}',
355
- }
348
+ title: "${indexMDX.title}",
349
+ description: "${indexMDX.description}",
350
+ icons: "${indexMDX.icon}",
351
+ openGraph: {
352
+ title: "${indexMDX.title}",
353
+ description: "${indexMDX.description}",
354
+ images: "${indexMDX.image}",
355
+ }
356
356
  };`
357
357
  : `export const metadata: Metadata = {
358
- title: 'Generated with Doccupine',
359
- description: 'Automatically generated from MDX files using Doccupine',
358
+ title: "Generated with Doccupine",
359
+ description: "Automatically generated from MDX files using Doccupine",
360
+ icons: "https://doccupine.com/favicon.ico",
361
+ openGraph: {
362
+ title: "Generated with Doccupine",
363
+ description: "Automatically generated from MDX files using Doccupine",
364
+ images: "https://doccupine.com/preview.png",
365
+ }
360
366
  };`}
361
367
 
362
368
  export default function Home() {
@@ -463,7 +469,7 @@ export default function Home() {
463
469
  program
464
470
  .name("doccupine")
465
471
  .description("Watch MDX files and generate Next.js documentation pages automatically")
466
- .version("0.0.4");
472
+ .version("0.0.6");
467
473
  program
468
474
  .command("watch", { isDefault: true })
469
475
  .description("Watch a directory for MDX changes and generate Next.js app")
@@ -15,11 +15,11 @@ import { transformPagesToGroupedStructure } from "@/utils/orderNavItems";
15
15
  const inter = Inter({ subsets: ["latin"] });
16
16
 
17
17
  export const metadata: Metadata = {
18
- title: 'Doccupine',
19
- description: 'Doccupine is a free and open-source document management system that allows you to store, organize, and share your documentation with ease.',
18
+ title: "Doccupine",
19
+ description: "Doccupine is a free and open-source document management system that allows you to store, organize, and share your documentation with ease.",
20
20
  openGraph: {
21
- title: 'Doccupine',
22
- description: 'Doccupine is a free and open-source document management system that allows you to store, organize, and share your documentation with ease.',
21
+ title: "Doccupine",
22
+ description: "Doccupine is a free and open-source document management system that allows you to store, organize, and share your documentation with ease.",
23
23
  },
24
24
  };
25
25
 
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "doccupine",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "CLI tool to watch MDX files and generate Next.js beautiful documentation pages automatically",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
7
- "doccupine-beta": "dist/index.js"
7
+ "doccupine": "dist/index.js"
8
8
  },
9
9
  "type": "module",
10
10
  "scripts": {