Loading...
Loading...
Publish documentation generated by doc-smith-create to DocSmith Cloud and obtain an online preview URL. Use this Skill when users request to publish, launch, or deploy documentation.
npx skill4agent add aigne-io/doc-smith-skills doc-smith-publish/doc-smith-publish
/doc-smith-publish --dir .aigne/doc-smith/dist
/doc-smith-publish --hub https://custom.hub.io| Option | Alias | Description |
|---|---|---|
| | Specify the publishing directory (auto-detected by default) |
| | DocSmith Hub URL (default |
test -d {skill_path}/scripts/node_modules || (cd {skill_path}/scripts && npm install){skill_path}skills/doc-smith-publish--dir.aigne/doc-smith/distassets/nav.js/doc-smith-create.aigne/doc-smith/config.yamlprojectNameprojectDescnode {skill_path}/scripts/publish.mjs --config-stdin <<'EOF'
{
"source": { "type": "dir", "path": "{dist_path}" },
"hub": "{hub_url}",
"workspace": ".aigne/doc-smith",
"metadata": {
"title": "{title}",
"description": "{description}",
"visibility": "public"
}
}
EOF{skill_path}{dist_path}{hub_url}https://docsmith.aigne.io--hub{title}{description}Documentation published successfully! Preview URL: {vibeUrl}
appUrl.aigne/doc-smith/config.yaml| Error | Handling |
|---|---|
| dist directory does not exist | Prompt user to run |
| config.yaml does not exist | Prompt that the current directory is not a valid doc-smith workspace |
| Dependencies not installed | Automatically execute |
| 401/403 authorization error | Script automatically clears token, prompts user to re-run |
| Network error | Prompt user to check network and retry |
| Publish action failed | Prompt user to re-run |
| Private mode error | Prompt to switch to public mode or upgrade account |