@latent-space-labs/open-auto-doc 0.5.3 → 0.5.4
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 +28 -3
- package/dist/site-template/README.md +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -320,7 +320,8 @@ async function createAndPushDocsRepo(params) {
|
|
|
320
320
|
org: owner,
|
|
321
321
|
name: repoName,
|
|
322
322
|
private: visibility === "private",
|
|
323
|
-
description: "
|
|
323
|
+
description: "Documentation auto-generated by https://www.openautodoc.com",
|
|
324
|
+
homepage: "https://www.openautodoc.com",
|
|
324
325
|
auto_init: false
|
|
325
326
|
});
|
|
326
327
|
repoUrl = data.clone_url;
|
|
@@ -329,7 +330,8 @@ async function createAndPushDocsRepo(params) {
|
|
|
329
330
|
const { data } = await octokit.rest.repos.createForAuthenticatedUser({
|
|
330
331
|
name: repoName,
|
|
331
332
|
private: visibility === "private",
|
|
332
|
-
description: "
|
|
333
|
+
description: "Documentation auto-generated by https://www.openautodoc.com",
|
|
334
|
+
homepage: "https://www.openautodoc.com",
|
|
333
335
|
auto_init: false
|
|
334
336
|
});
|
|
335
337
|
repoUrl = data.clone_url;
|
|
@@ -567,6 +569,29 @@ async function deployToVercel(params) {
|
|
|
567
569
|
const projectId = project.id;
|
|
568
570
|
const projectName = project.name;
|
|
569
571
|
spinner9.stop(`Created Vercel project: ${projectName}`);
|
|
572
|
+
spinner9.start("Triggering first deployment...");
|
|
573
|
+
const { ok: deployOk } = await vercelFetch(
|
|
574
|
+
"/v13/deployments",
|
|
575
|
+
token,
|
|
576
|
+
{
|
|
577
|
+
method: "POST",
|
|
578
|
+
teamId,
|
|
579
|
+
body: {
|
|
580
|
+
name: projectName,
|
|
581
|
+
project: projectId,
|
|
582
|
+
target: "production",
|
|
583
|
+
gitSource: {
|
|
584
|
+
type: "github",
|
|
585
|
+
org: githubOwner,
|
|
586
|
+
repo: githubRepo,
|
|
587
|
+
ref: "main"
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
);
|
|
592
|
+
if (!deployOk) {
|
|
593
|
+
spinner9.message("Waiting for deployment...");
|
|
594
|
+
}
|
|
570
595
|
spinner9.start("Waiting for first deployment...");
|
|
571
596
|
const maxWaitMs = 5 * 60 * 1e3;
|
|
572
597
|
const pollIntervalMs = 5e3;
|
|
@@ -4780,7 +4805,7 @@ async function logoutCommand() {
|
|
|
4780
4805
|
|
|
4781
4806
|
// src/index.ts
|
|
4782
4807
|
var program = new Command();
|
|
4783
|
-
program.name("open-auto-doc").description("Auto-generate beautiful documentation websites from GitHub repositories using AI").version("0.5.
|
|
4808
|
+
program.name("open-auto-doc").description("Auto-generate beautiful documentation websites from GitHub repositories using AI").version("0.5.4");
|
|
4784
4809
|
program.command("init", { isDefault: true }).description("Initialize and generate documentation for your repositories").option("-o, --output <dir>", "Output directory", "docs-site").action(initCommand);
|
|
4785
4810
|
program.command("generate").description("Regenerate documentation using existing configuration").option("--incremental", "Only re-analyze changed files (uses cached results)").option("--force", "Force full regeneration (ignore cache)").option("--repo <name>", "Only analyze this repo (uses cache for others)").action(generateCommand);
|
|
4786
4811
|
program.command("deploy").description("Create a GitHub repo for docs and push (connect to Vercel for auto-deploy)").option("-d, --dir <path>", "Docs site directory").action(deployCommand);
|