Skip to content

Commit 64a7e72

Browse files
committed
fix: Switch redocly build with standalone html
1 parent 06efa18 commit 64a7e72

8 files changed

Lines changed: 1002 additions & 4285 deletions

File tree

.cargo/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[alias]
2+
generate_openapi = "run --example generate_openapi -- ./docs/openapi.json"

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,10 @@ node_modules
4141

4242
# Ignore local signer keystore files everywhere
4343
**/local-signer.json
44-
4544
**/config/keys/*.json
45+
46+
# Ignore generated OpenAPI files
47+
openapi.json
48+
49+
# Exclude generated OpenAPI files from the docs directory
50+
!docs/openapi.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-
[[gen-openapi]]
118+
[[example]]
119119
name = "generate_openapi"
120120
path = "helpers/generate_openapi.rs"
121121

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
- To update openapi documentation, run:
2020
2121
```sh
22-
cargo run --gen-openapi generate_openapi -- ./docs/openapi.json
22+
cargo generate_openapi
2323
```

0 commit comments

Comments
 (0)