Skip to content

Commit

Permalink
add some docu
Browse files Browse the repository at this point in the history
  • Loading branch information
CubicrootXYZ committed Oct 5, 2024
1 parent ce6a76d commit 742c253
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,20 @@ jobs:
uses: CubicrootXYZ/Workflows/.github/workflows/[email protected]
with:
workdir: "tests/jinja/"
```

## OpenAPI

### Render OpenAPI 2 specs with redoc

Render an OpenAPI 2 spec with `redoc`. The spec file needs to be present in the given artifact. The rendered `index.html` will be added to the artifact `rendered-api-docu`.

```yaml
jobs:
render:
uses: CubicrootXYZ/Workflows/.github/workflows/openapi2_render.yaml
with:
spec_artifact_name: spec
spec_artifact_path: tests/openapi2/
spec_filename: petstore.yaml
```

0 comments on commit 742c253

Please sign in to comment.