Skip to content

Commit 4702409

Browse files
committed
chore(docs): Move OpenAPI docs to docs/openapi
1 parent 78562fb commit 4702409

25 files changed

Lines changed: 22 additions & 11 deletions

‎.dockerignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
!crates/**/*.rs
44
!crates/*/Cargo.*
55
!crates/*/static/
6+
!docs/
7+
docs/tutorials/

‎.github/workflows/release.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020
# We changed how the workflow is ran:
2121
- ".github/workflows/release.yaml"
2222
# We changed some packaged documentation:
23+
- "docs/openapi/**"
2324
- "crates/*/static/**"
2425

2526
jobs:

‎.github/workflows/test.yaml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616
# We changed how the workflow is ran:
1717
- ".github/workflows/test.yaml"
1818
# We changed some packaged documentation:
19+
- "docs/openapi/**"
1920
- "crates/*/static/**"
2021
# We changed how tests are ran:
2122
- "crates/*/tests/**"
@@ -36,6 +37,7 @@ on:
3637
# We changed how the workflow is ran:
3738
- ".github/workflows/test.yaml"
3839
# We changed some packaged documentation:
40+
- "docs/openapi/**"
3941
- "crates/*/static/**"
4042
# We changed how tests are ran:
4143
- "crates/*/tests/**"
@@ -72,7 +74,7 @@ jobs:
7274
run: npm install -g @redocly/cli@latest
7375

7476
- name: Lint OpenAPI specification file
75-
run: scripts/openapi-lint
77+
run: docs/openapi/openapi-lint
7678

7779
smoke-test:
7880
if: github.event.pull_request.draft == false

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ RUN cargo install --path crates/rest-api --bin prose-pod-api --profile="${CARGO_
2424

2525
FROM redocly/cli:1.34.0 as api-docs
2626

27-
COPY crates/rest-api/static/api-docs .
27+
COPY docs/openapi .
2828
RUN redocly bundle openapi.yaml -o /usr/share/prose-pod-api/static/api-docs/openapi.json --config redocly.cfg.yaml
2929

3030
COPY crates/rest-api/static/api-docs/redoc* /usr/share/prose-pod-api/static/api-docs

‎Taskfile.dist.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ tasks:
135135

136136
openapi:lint:
137137
desc: Lint the OpenAPI specification file.
138-
cmd: "{{.ROOT_DIR}}/scripts/openapi-lint {{.CLI_ARGS}}"
138+
cmd: "{{.ROOT_DIR}}/docs/openapi/openapi-lint {{.CLI_ARGS}}"
139139

140140
openapi:preview-docs:
141141
desc: Preview the OpenAPI specification file in a graphical interface.
142-
cmd: "{{.ROOT_DIR}}/scripts/openapi-preview-docs {{.CLI_ARGS}}"
142+
cmd: "{{.ROOT_DIR}}/dosc/openapi/openapi-preview-docs {{.CLI_ARGS}}"
143143

144144
openapi:update-redoc:
145145
desc: Updates Redoc.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)