Skip to content

Commit a6de901

Browse files
authored
refactor: documentation enhancements & move to turbo (#111)
2 parents f28d62d + c0f5379 commit a6de901

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+682
-271
lines changed

.changeset/eight-states-hear.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@calycode/core': patch
3+
'@calycode/cli': patch
4+
---
5+
6+
feat: improvements to the documentation generation, added changelog links, full-text search, pagination plugin, terminaly plugin, flexible callouts plugin, dark mode support and mermaid support plugins
7+
refactor: rearranged the repo to be more like a proper turbo powered monorepo. Build times are much faster as before...
8+
refactor: adjustments to the github workflows to match turborepo (without remote cache)

.github/workflows/add-docs-to-release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,22 @@ jobs:
2424
- uses: actions/setup-node@v4
2525
with:
2626
node-version: 20.x
27+
cache: 'pnpm'
2728

2829
- name: Install packages
29-
run: pnpm install
30+
run: pnpm install --frozen-lockfile
3031

3132
- name: Build packages
32-
run: pnpm build:packages
33+
run: pnpm build
3334

3435
- name: Build Docs
3536
run: pnpm build:docs
3637

38+
- name: Add GH Identity
39+
run: |
40+
git config --global user.email "[email protected]"
41+
git config --global user.name "Mihály Tóth"
42+
3743
- name: Commit docs
3844
id: commit_docs
3945
run: |
@@ -52,4 +58,3 @@ jobs:
5258
git config user.name "github-actions[bot]"
5359
git config user.email "github-actions[bot]@users.noreply.github.com"
5460
git push origin HEAD:${GITHUB_HEAD_REF} --force-with-lease
55-

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,26 @@ jobs:
2626
uses: actions/setup-node@v4
2727
with:
2828
node-version: 20.x
29+
cache: 'pnpm'
2930
registry-url: 'https://registry.npmjs.org'
3031
scope: '@calycode'
3132
always-auth: true
3233
env:
3334
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3435

3536
- name: Install dependencies
36-
run: pnpm install
37+
run: pnpm install --frozen-lockfile
3738

3839
- name: Build packages
39-
run: pnpm build:packages
40+
run: pnpm build
4041

4142
- name: Publish to npm
4243
id: changesets
4344
uses: changesets/action@v1
4445
with:
4546
commit: 'changeset-release'
4647
title: 'Release Version'
47-
publish: pnpm -r publish --access restricted
48+
publish: pnpm -r publish
4849
env:
4950
GITHUB_TOKEN: ${{ secrets.CHANGESETS_GH_TOKEN }}
5051
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/upload-docs.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,15 @@ jobs:
2222
uses: actions/setup-node@v4
2323
with:
2424
node-version: 20.x
25+
cache: 'pnpm'
2526
registry-url: 'https://registry.npmjs.org'
2627
scope: '@calycode'
2728
always-auth: true
2829
env:
2930
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3031

3132
- name: Install dependencies
32-
run: pnpm install
33-
34-
- name: Build packages
35-
run: pnpm build:packages
33+
run: pnpm install --frozen-lockfile
3634

3735
- name: Update the docs
3836
run: pnpm build:docs

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ project-plan.md
3030
*.tsbuildinfo
3131
calyInstance.config.js
3232
calyInstance.test.setup.json
33+
34+
**/.turbo/

docs/_media/logo.png

171 KB
Loading

docs/_sidebar.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
- ### Core Commands:
1+
- Core command
22

33
- [xano - the core command](xano.md)
44

5-
- ### Features
5+
- Commands
66

77
- [`setup`](commands/setup.md)
8-
- [`switch-context`](commands/switch-context.md)
98
- [`generate-oas`](commands/generate-oas.md)
109
- [`serve-oas`](commands/serve-oas.md)
1110
- [`generate-code`](commands/generate-code.md)
@@ -19,8 +18,11 @@
1918
- [`run-test`](commands/run-test.md)
2019
- [`current-context`](commands/current-context.md)
2120

22-
---
21+
- Changelog
2322

24-
<small>Made with💖by the [OSOI.IO](https://osoi.io) Team</small>
23+
- [CLI](https://github.com/calycode/xano-tools/blob/main/packages/cli/CHANGELOG.md)
24+
- [CORE](https://github.com/calycode/xano-tools/blob/main/packages/core/CHANGELOG.md)
2525

26+
27+
<small>For devs with 💖 by devs at [calycode](https://calycode.com).</small>
2628
<small>Documentation powered by [Docsify.js](https://docsifyjs.org)</small>

docs/commands/current-context.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# current-context
2-
```sh
3-
xano current-context [options]
2+
```term
3+
$ xano current-context [options]
44
```
55
### Options
66

77

88
### current-context --help
9-
```sh
9+
```term
10+
$ xano current-context --help
1011
Usage: xano current-context [options]
1112
1213
Options:

docs/commands/export-backup.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# export-backup
2+
>[!NOTE|label:Description]
23
> #### Backup Xano Workspace via Metadata API
34
4-
```sh
5-
xano export-backup [options]
5+
```term
6+
$ xano export-backup [options]
67
```
78
### Options
89

@@ -16,19 +17,16 @@ xano export-backup [options]
1617
**Description:** Expose usable output path for further reuse.
1718

1819
### export-backup --help
19-
```sh
20+
```term
21+
$ xano export-backup --help
2022
Usage: xano export-backup [options]
2123
2224
Backup Xano Workspace via Metadata API
2325
2426
Options:
25-
--instance <instance> The instance name. This is used to fetch the instance
26-
configuration. The value provided at the setup
27-
command.
28-
--workspace <workspace> The workspace name. This is used to fetch the
29-
workspace configuration. Same as on Xano interface.
30-
--branch <branch> The branch name. This is used to select the branch
31-
configuration. Same as on Xano Interface.
27+
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the setup command.
28+
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on Xano interface.
29+
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano Interface.
3230
--print-output-dir Expose usable output path for further reuse.
3331
-h, --help display help for command
3432
```

docs/commands/generate-code.md

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# generate-code
2+
>[!NOTE|label:Description]
23
> #### Create a library based on the OpenAPI specification. If the openapi specification has not yet been generated, this will generate that as well as the first step.
34
4-
```sh
5-
xano generate-code [options]
5+
```term
6+
$ xano generate-code [options]
67
```
78
### Options
89

@@ -26,30 +27,21 @@ xano generate-code [options]
2627
**Description:** Specify this flag in order to allow logging. Logs will appear in output/_logs. Default: false
2728

2829
### generate-code --help
29-
```sh
30+
```term
31+
$ xano generate-code --help
3032
Usage: xano generate-code [options]
3133
32-
Create a library based on the OpenAPI specification. If the openapi
33-
specification has not yet been generated, this will generate that as well as the
34-
first step.
34+
Create a library based on the OpenAPI specification. If the openapi specification has not yet been generated, this will generate that as well as the first step.
3535
3636
Options:
37-
--instance <instance> The instance name. This is used to fetch the instance
38-
configuration. The value provided at the setup
39-
command.
40-
--workspace <workspace> The workspace name. This is used to fetch the
41-
workspace configuration. Same as on Xano interface.
42-
--branch <branch> The branch name. This is used to select the branch
43-
configuration. Same as on Xano Interface.
37+
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the setup command.
38+
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on Xano interface.
39+
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano Interface.
4440
--group <name> API group name. Same as on Xano Interface.
45-
--all Regenerate for all API groups in the workspace /
46-
branch of the current context.
41+
--all Regenerate for all API groups in the workspace / branch of the current context.
4742
--print-output-dir Expose usable output path for further reuse.
48-
--generator <generator> Generator to use, see all options at:
49-
https://openapi-generator.tech/docs/generators
50-
--args <args> Additional arguments to pass to the generator. See
51-
https://openapi-generator.tech/docs/usage#generate
52-
--debug Specify this flag in order to allow logging. Logs
53-
will appear in output/_logs. Default: false
43+
--generator <generator> Generator to use, see all options at: https://openapi-generator.tech/docs/generators
44+
--args <args> Additional arguments to pass to the generator. See https://openapi-generator.tech/docs/usage#generate
45+
--debug Specify this flag in order to allow logging. Logs will appear in output/_logs. Default: false
5446
-h, --help display help for command
5547
```

0 commit comments

Comments
 (0)