@mono-labs/cli 0.0.211 → 0.0.213

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.
@@ -18,6 +18,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.generateDocsIndex = generateDocsIndex;
19
19
  const node_fs_1 = require("node:fs");
20
20
  const node_path_1 = __importDefault(require("node:path"));
21
+ function createSpacer() {
22
+ return '\n\n';
23
+ }
21
24
  /**
22
25
  * Generate a docs index from markdown files.
23
26
  *
@@ -29,6 +32,9 @@ async function generateDocsIndex({ docsDir, excludeFile, }) {
29
32
  const dirPath = node_path_1.default.resolve(process.cwd(), docsDir);
30
33
  const entries = await node_fs_1.promises.readdir(dirPath, { withFileTypes: true });
31
34
  const links = [];
35
+ links.push('\n');
36
+ links.push('---');
37
+ links.push('\n');
32
38
  for (const entry of entries) {
33
39
  if (!entry.isFile())
34
40
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mono-labs/cli",
3
- "version": "0.0.211",
3
+ "version": "0.0.213",
4
4
  "description": "A CLI tool for building and deploying projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types.d.ts",
@@ -20,6 +20,9 @@ export interface GenerateDocsIndexOptions {
20
20
  excludeFile?: string;
21
21
  }
22
22
 
23
+ function createSpacer() {
24
+ return '\n\n';
25
+ }
23
26
  /**
24
27
  * Generate a docs index from markdown files.
25
28
  *
@@ -35,7 +38,9 @@ export async function generateDocsIndex({
35
38
  const entries = await fs.readdir(dirPath, { withFileTypes: true });
36
39
 
37
40
  const links: string[] = [];
38
-
41
+ links.push('\n');
42
+ links.push('---');
43
+ links.push('\n');
39
44
  for (const entry of entries) {
40
45
  if (!entry.isFile()) continue;
41
46
  if (!entry.name.endsWith('.md')) continue;