Skip to content

Commit d692c80

Browse files
committed
docs: added auto-docs site generation via the docsify.js package
1 parent 9b0872b commit d692c80

20 files changed

+271
-77
lines changed

.changeset/rich-suns-look.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55

66
refactor: rebrand actually, renamed the core package from caly-core to core and the command from caly-xano to simply xano
77
feat: added more descriptive and styled mardkown as docs that are generated from command signatures
8+
docs: integrated docsify.js to auto-generate documentation site from command signatures.

docs/.nojekyll

Whitespace-only changes.

docs/_sidebar.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
- ### Core Commands:
3+
4+
- [xano - the core command](xano.md)
5+
6+
- ### Features
7+
8+
- [`setup`](commands/setup.md)
9+
- [`switch-context`](commands/switch-context.md)
10+
- [`generate-oas`](commands/generate-oas.md)
11+
- [`serve-oas`](commands/serve-oas.md)
12+
- [`generate-code`](commands/generate-code.md)
13+
- [`generate-repo`](commands/generate-repo.md)
14+
- [`generate-xs-repo`](commands/generate-xs-repo.md)
15+
- [`registry-add`](commands/registry-add.md)
16+
- [`registry-scaffold`](commands/registry-scaffold.md)
17+
- [`serve-registry`](commands/serve-registry.md)
18+
- [`export-backup`](commands/export-backup.md)
19+
- [`restore-backup`](commands/restore-backup.md)
20+
- [`run-test`](commands/run-test.md)
21+
- [`current-context`](commands/current-context.md)

docs/commands/export-backup.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,16 @@ Usage: xano export-backup [options]
1818
Backup Xano Workspace via Metadata API
1919

2020
Options:
21-
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the
22-
setup command.
23-
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on Xano
24-
interface.
25-
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano Interface.
26-
--print-output-dir Expose usable output path for further reuse.
21+
--instance <instance> The instance name. This is used to fetch
22+
the instance configuration. The value
23+
provided at the setup command.
24+
--workspace <workspace> The workspace name. This is used to fetch
25+
the workspace configuration. Same as on
26+
Xano interface.
27+
--branch <branch> The branch name. This is used to select the
28+
branch configuration. Same as on Xano
29+
Interface.
30+
--print-output-dir Expose usable output path for further
31+
reuse.
2732
-h, --help display help for command
2833
```

docs/commands/generate-code.md

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,32 @@
2525
```sh
2626
Usage: xano generate-code [options]
2727

28-
Create a library based on the OpenAPI specification. If the openapi specification has not yet been generated, this will
29-
generate that as well as the first step.
28+
Create a library based on the OpenAPI specification. If the openapi
29+
specification has not yet been generated, this will generate that as
30+
well as the first step.
3031

3132
Options:
32-
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the
33-
setup command.
34-
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on Xano
35-
interface.
36-
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano Interface.
33+
--instance <instance> The instance name. This is used to fetch
34+
the instance configuration. The value
35+
provided at the setup command.
36+
--workspace <workspace> The workspace name. This is used to fetch
37+
the workspace configuration. Same as on
38+
Xano interface.
39+
--branch <branch> The branch name. This is used to select the
40+
branch configuration. Same as on Xano
41+
Interface.
3742
--group <name> API group name. Same as on Xano Interface.
38-
--all Regenerate for all API groups in the workspace / branch of the current context.
39-
--print-output-dir Expose usable output path for further reuse.
40-
--generator <generator> Generator to use, see all options at: https://openapi-generator.tech/docs/generators
41-
--args <args> Additional arguments to pass to the generator. See
43+
--all Regenerate for all API groups in the
44+
workspace / branch of the current context.
45+
--print-output-dir Expose usable output path for further
46+
reuse.
47+
--generator <generator> Generator to use, see all options at:
48+
https://openapi-generator.tech/docs/generators
49+
--args <args> Additional arguments to pass to the
50+
generator. See
4251
https://openapi-generator.tech/docs/usage#generate
43-
--debug Specify this flag in order to allow logging. Logs will appear in output/_logs. Default: false
52+
--debug Specify this flag in order to allow
53+
logging. Logs will appear in output/_logs.
54+
Default: false
4455
-h, --help display help for command
4556
```

docs/commands/generate-oas.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,19 @@ Usage: xano generate-oas [options]
2222
Update and generate OpenAPI spec(s) for the current context.
2323

2424
Options:
25-
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the
26-
setup command.
27-
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on Xano
28-
interface.
29-
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano Interface.
25+
--instance <instance> The instance name. This is used to fetch
26+
the instance configuration. The value
27+
provided at the setup command.
28+
--workspace <workspace> The workspace name. This is used to fetch
29+
the workspace configuration. Same as on
30+
Xano interface.
31+
--branch <branch> The branch name. This is used to select the
32+
branch configuration. Same as on Xano
33+
Interface.
3034
--group <name> API group name. Same as on Xano Interface.
31-
--all Regenerate for all API groups in the workspace / branch of the current context.
32-
--print-output-dir Expose usable output path for further reuse.
35+
--all Regenerate for all API groups in the
36+
workspace / branch of the current context.
37+
--print-output-dir Expose usable output path for further
38+
reuse.
3339
-h, --help display help for command
3440
```

docs/commands/generate-repo.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,18 @@ Process Xano workspace into repo structure
2626
Options:
2727
--input <file> workspace yaml file
2828
--output <dir> output directory (overrides config)
29-
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the
30-
setup command.
31-
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on Xano
32-
interface.
33-
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano Interface.
34-
--print-output-dir Expose usable output path for further reuse.
35-
--fetch Specify this if you want to fetch the workspace schema from Xano
29+
--instance <instance> The instance name. This is used to fetch
30+
the instance configuration. The value
31+
provided at the setup command.
32+
--workspace <workspace> The workspace name. This is used to fetch
33+
the workspace configuration. Same as on
34+
Xano interface.
35+
--branch <branch> The branch name. This is used to select the
36+
branch configuration. Same as on Xano
37+
Interface.
38+
--print-output-dir Expose usable output path for further
39+
reuse.
40+
--fetch Specify this if you want to fetch the
41+
workspace schema from Xano
3642
-h, --help display help for command
3743
```

docs/commands/generate-xs-repo.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,16 @@ Usage: xano generate-xs-repo [options]
1818
Process Xano workspace into repo structure
1919

2020
Options:
21-
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the
22-
setup command.
23-
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on Xano
24-
interface.
25-
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano Interface.
26-
--print-output-dir Expose usable output path for further reuse.
21+
--instance <instance> The instance name. This is used to fetch
22+
the instance configuration. The value
23+
provided at the setup command.
24+
--workspace <workspace> The workspace name. This is used to fetch
25+
the workspace configuration. Same as on
26+
Xano interface.
27+
--branch <branch> The branch name. This is used to select the
28+
branch configuration. Same as on Xano
29+
Interface.
30+
--print-output-dir Expose usable output path for further
31+
reuse.
2732
-h, --help display help for command
2833
```

docs/commands/registry-add.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,17 @@ Usage: xano registry-add [options]
2020
Add a prebuilt component to the current Xano context.
2121

2222
Options:
23-
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the
24-
setup command.
25-
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on Xano
26-
interface.
27-
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano Interface.
23+
--instance <instance> The instance name. This is used to fetch
24+
the instance configuration. The value
25+
provided at the setup command.
26+
--workspace <workspace> The workspace name. This is used to fetch
27+
the workspace configuration. Same as on
28+
Xano interface.
29+
--branch <branch> The branch name. This is used to select the
30+
branch configuration. Same as on Xano
31+
Interface.
2832
--components Comma-separated list of components to add
29-
--registry <url> URL to the component registry. Default: http://localhost:5500/registry/definitions
33+
--registry <url> URL to the component registry. Default:
34+
http://localhost:5500/registry/definitions
3035
-h, --help display help for command
3136
```

docs/commands/registry-scaffold.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,18 @@
1111
```sh
1212
Usage: xano registry-scaffold [options]
1313

14-
Scaffold a Xano registry folder with a sample component. Xano registry can be used to share and reuse prebuilt
15-
components. In the registry you have to follow the [registry](https://nextcurve.hu/schemas/registry/registry.json) and
16-
[registry item](https://nextcurve.hu/schemas/registry/registry-item.json) schemas.
14+
Scaffold a Xano registry folder with a sample component. Xano registry
15+
can be used to share and reuse prebuilt components. In the registry
16+
you have to follow the
17+
[registry](https://nextcurve.hu/schemas/registry/registry.json) and
18+
[registry
19+
item](https://nextcurve.hu/schemas/registry/registry-item.json)
20+
schemas.
1721

1822
Options:
1923
--output <path> Output path for the registry
20-
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the
21-
setup command.
24+
--instance <instance> The instance name. This is used to fetch the
25+
instance configuration. The value provided at
26+
the setup command.
2227
-h, --help display help for command
2328
```

0 commit comments

Comments
 (0)