@hanzo/docs-cli 1.1.0 → 1.1.1

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -674,19 +674,19 @@ function printNext(...maps) {
674
674
 
675
675
  // src/index.ts
676
676
  var program = new Command().option("--config <string>");
677
- program.name("fumadocs").description("CLI to setup Fumadocs, init a config").version(package_default.version).action(async () => {
677
+ program.name("hanzo-docs").description("CLI to setup Hanzo Docs, init a config").version(package_default.version).action(async () => {
678
678
  if (await initConfig()) {
679
679
  console.log(picocolors3.green("Initialized a `./cli.json` config file."));
680
680
  } else {
681
681
  console.log(picocolors3.redBright("A config file already exists."));
682
682
  }
683
683
  });
684
- program.command("customise").alias("customize").description("simple way to customise layouts with Fumadocs UI").option("--dir <string>", "the root url or directory to resolve registry").action(async (options) => {
684
+ program.command("customise").alias("customize").description("simple way to customise layouts with Hanzo Docs UI").option("--dir <string>", "the root url or directory to resolve registry").action(async (options) => {
685
685
  const resolver = getResolverFromDir(options.dir);
686
686
  await customise(resolver, await createOrLoadConfig(options.config));
687
687
  });
688
688
  var dirShortcuts = {
689
- ":dev": "https://preview.fumadocs.dev/registry",
689
+ ":dev": "https://preview.hanzo.ai/registry",
690
690
  ":localhost": "http://localhost:3000/registry"
691
691
  };
692
692
  program.command("add").description("add a new component to your docs").argument("[components...]", "components to download").option("--dir <string>", "the root url or directory to resolve registry").action(
@@ -721,7 +721,7 @@ program.command("tree").argument(
721
721
  }
722
722
  }
723
723
  );
724
- function getResolverFromDir(dir = "https://fumadocs.dev/registry") {
724
+ function getResolverFromDir(dir = "https://hanzo.ai/registry") {
725
725
  if (dir in dirShortcuts) dir = dirShortcuts[dir];
726
726
  return dir.startsWith("http://") || dir.startsWith("https://") ? remoteResolver(dir) : localResolver(dir);
727
727
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/docs-cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "The CLI tool for Hanzo Docs",
5
5
  "keywords": [
6
6
  "Hanzo",