@fern-api/generator-cli 0.0.7 → 0.0.9
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/cli.cjs +7 -5
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -12911,7 +12911,6 @@ var ReadmeGenerator = class {
|
|
|
12911
12911
|
githubRepository: this.readmeConfig.remote.repoUrl,
|
|
12912
12912
|
installationToken: this.readmeConfig.remote.installationToken
|
|
12913
12913
|
});
|
|
12914
|
-
console.log("Cloned repository, reading README.md ...");
|
|
12915
12914
|
return await clonedRepository.getReadme();
|
|
12916
12915
|
}
|
|
12917
12916
|
return void 0;
|
|
@@ -12935,10 +12934,7 @@ var ReadmeGenerator = class {
|
|
|
12935
12934
|
});
|
|
12936
12935
|
}
|
|
12937
12936
|
writer.writeLine();
|
|
12938
|
-
|
|
12939
|
-
`The ${this.organizationPascalCase} ${this.languageTitle} library provides convenient access to the ${this.organizationPascalCase} API from ${this.languageTitle}.`
|
|
12940
|
-
);
|
|
12941
|
-
writer.writeLine();
|
|
12937
|
+
this.writeIntroudction({ writer });
|
|
12942
12938
|
}
|
|
12943
12939
|
writeBanner({ writer, bannerLink }) {
|
|
12944
12940
|
writer.writeLine(``);
|
|
@@ -12949,6 +12945,12 @@ var ReadmeGenerator = class {
|
|
|
12949
12945
|
"[](https://github.com/fern-api/fern)"
|
|
12950
12946
|
);
|
|
12951
12947
|
}
|
|
12948
|
+
writeIntroudction({ writer }) {
|
|
12949
|
+
writer.writeLine(
|
|
12950
|
+
this.readmeConfig.introduction != null ? this.readmeConfig.introduction : `The ${this.organizationPascalCase} ${this.languageTitle} library provides convenient access to the ${this.organizationPascalCase} API from ${this.languageTitle}.`
|
|
12951
|
+
);
|
|
12952
|
+
writer.writeLine();
|
|
12953
|
+
}
|
|
12952
12954
|
generateDocumentation({ docsLink }) {
|
|
12953
12955
|
const writer = new StringWriter();
|
|
12954
12956
|
writer.writeLine("## Documentation");
|