Skip to content

Commit 1b32380

Browse files
committed
Version 3.0.0 - Adds a server stub generator
1 parent fc7455f commit 1b32380

Some content is hidden

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

62 files changed

+5139
-1896
lines changed

.github/workflows/pages.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Generate Documentation and Publish to Pages
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
pages:
8+
name: Generate Documentation and Publish to Pages
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check out repository
12+
uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: '3.10'
16+
- name: Install Sphinx Python Dependencies
17+
run: pip install -r requirements.txt
18+
working-directory: Documentation
19+
- name: Build Documentation
20+
run: make html
21+
working-directory: Documentation
22+
- name: Deploy Documentation to Pages
23+
uses: peaceiris/actions-gh-pages@v4
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
publish_dir: ./Documentation/_build/html

Documentation/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
_build/
2+

Documentation/BasicUsage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ For simplicity OAuth is disabled in this example using environment variable `DIS
1515
The MATLAB client code for this example can then be generated by running the following from a shell in the `Software` directory:
1616

1717
```bash
18-
npx @openapitools/openapi-generator-cli --custom-generator Java/target/MATLABClientCodegen-openapi-generator-0.0.1.jar generate -g MATLAB -i http://localhost:8080/openapi.json -o PetClient --package-name PetStore
18+
npx @openapitools/openapi-generator-cli --custom-generator Java/target/MATLAB-openapi-generator-3.0.0.jar generate -g matlab-client -i http://localhost:8080/openapi.json -o PetClient --package-name PetStore
1919
```
2020

2121
If not working in the package's `Software` directory, use full paths and add the following additional arguments:

Documentation/BuildClient.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ c.build;
3838
Additional builder properties can be used to set non default properties:
3939

4040
* templateDir: set the path to the Mustache files, e.g. if providing a customized version of those provided with the package.
41-
* jarPath: set the path to an alternative jar file, the default is `Software/MATLAB/lib/jar/MATLABClientCodegen-openapi-generator-0.0.1.jar`.
41+
* jarPath: set the path to an alternative jar file, the default is `Software/MATLAB/lib/jar/MATLAB-openapi-generator-3.0.0.jar`.
4242

4343
See [Generator Configuration Options](./Options.md) for a complete overview of all options.
4444

@@ -177,7 +177,7 @@ The following commands show how a MATLAB client can be generated from a given sp
177177
# Change to the packages software directory
178178
cd <package_dir>/Software
179179

180-
npx @openapitools/openapi-generator-cli --custom-generator MATLAB/lib/jar/MATLABClientCodegen-openapi-generator-0.0.1.jar generate -g MATLAB -i http://localhost:3000/api-json -o TestClient --package-name Test
180+
npx @openapitools/openapi-generator-cli --custom-generator MATLAB/lib/jar/MATLAB-openapi-generator-3.0.0.jar generate -g matlab-client -i http://localhost:3000/api-json -o TestClient --package-name Test
181181
```
182182

183183
If not working in the package's `Software` directory, use full paths and add the following additional arguments:

Documentation/BuildGenerator.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)