@mono-labs/cli 0.0.213 → 0.0.214
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.
|
@@ -32,9 +32,6 @@ async function generateDocsIndex({ docsDir, excludeFile, }) {
|
|
|
32
32
|
const dirPath = node_path_1.default.resolve(process.cwd(), docsDir);
|
|
33
33
|
const entries = await node_fs_1.promises.readdir(dirPath, { withFileTypes: true });
|
|
34
34
|
const links = [];
|
|
35
|
-
links.push('\n');
|
|
36
|
-
links.push('---');
|
|
37
|
-
links.push('\n');
|
|
38
35
|
for (const entry of entries) {
|
|
39
36
|
if (!entry.isFile())
|
|
40
37
|
continue;
|
|
@@ -72,5 +69,5 @@ async function generateDocsIndex({ docsDir, excludeFile, }) {
|
|
|
72
69
|
// Append Back to Readme
|
|
73
70
|
links.push('');
|
|
74
71
|
links.push('🏠 ← [Back to README](../README.md)');
|
|
75
|
-
return links.join('\n');
|
|
72
|
+
return ['', '---', '', ...links].join('\n');
|
|
76
73
|
}
|
package/package.json
CHANGED
|
@@ -38,9 +38,6 @@ export async function generateDocsIndex({
|
|
|
38
38
|
const entries = await fs.readdir(dirPath, { withFileTypes: true });
|
|
39
39
|
|
|
40
40
|
const links: string[] = [];
|
|
41
|
-
links.push('\n');
|
|
42
|
-
links.push('---');
|
|
43
|
-
links.push('\n');
|
|
44
41
|
for (const entry of entries) {
|
|
45
42
|
if (!entry.isFile()) continue;
|
|
46
43
|
if (!entry.name.endsWith('.md')) continue;
|
|
@@ -82,5 +79,5 @@ export async function generateDocsIndex({
|
|
|
82
79
|
links.push('');
|
|
83
80
|
links.push('🏠 ← [Back to README](../README.md)');
|
|
84
81
|
|
|
85
|
-
return links.join('\n');
|
|
82
|
+
return ['', '---', '', ...links].join('\n');
|
|
86
83
|
}
|