Skip to content

Commit 06efa18

Browse files
committed
chore: Merge branch 'fix-api-docs' into adjust-api-docs
2 parents f3bbe1d + 91501a9 commit 06efa18

8 files changed

Lines changed: 7944 additions & 21 deletions

File tree

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,4 @@ node_modules
4242
# Ignore local signer keystore files everywhere
4343
**/local-signer.json
4444

45-
openapi.json
46-
4745
**/config/keys/*.json

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ path = "helpers/create_key.rs"
115115
name = "generate_uuid"
116116
path = "helpers/generate_uuid.rs"
117117

118-
[[example]]
118+
[[gen-openapi]]
119119
name = "generate_openapi"
120120
path = "helpers/generate_openapi.rs"
121121

Makefile.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
description = "Build Antora site and copy rust_docs"
33
script = [
44
"cargo doc --target-dir docs/rust_docs --release --no-deps --quiet --locked",
5-
"cargo run --example generate_openapi",
6-
"npx -y @redocly/cli@latest build-docs openapi.json --output docs/api_docs.html",
75
"bash scripts/rust_antora.sh"
86
]
97
[tasks.docker-compose-up]

docs/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@
1515
```
1616

1717
- You can view the site `localhost:8080` or other port if it's in use.
18+
19+
- To update openapi documentation, run:
20+
21+
```sh
22+
cargo run --gen-openapi generate_openapi -- ./docs/openapi.json
23+
```

0 commit comments

Comments
 (0)