-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: generate-api-documentation | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
|
||
jobs: | ||
make: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Sage | ||
uses: einride/sage/actions/setup@master | ||
with: | ||
go-version: 1.19 | ||
|
||
- name: Setup Node | ||
# Latest version `v3.7.0` contains a bug, see the following issue: | ||
# https://github.com/actions/setup-node/issues/801 | ||
uses: actions/setup-node@v3.6.0 | ||
with: | ||
node-version: 18 | ||
#registry-url: https://registry.npmjs.org | ||
#cache: "yarn" | ||
#cache-dependency-path: frontend/yarn.lock | ||
|
||
- name: Generate PDF's | ||
run: make generate-pdf | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: auth-pdf | ||
path: auth.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"pdfSortTags": true, | ||
"localize": { | ||
"index": "INDEX", | ||
"api": "API", | ||
"apiList": "API List", | ||
"apiReference": "API Referenz", | ||
"apiVersion": "API Version", | ||
"contact": "KONTAKT", | ||
"name": "NAME", | ||
"email": "EMAIL", | ||
"url": "URL", | ||
"termsOfService": "Nutzungsbedingungen", | ||
"securityAndAuthentication": "Sicherheit und Authentifizierung", | ||
"securitySchemes": "SICHERHEIT SCHEMAS", | ||
"key": "SCHLÜSSEL", | ||
"type": "TYP", | ||
"example": "BEISPIEL", | ||
"description": "BESCHREIBUNG", | ||
"request": "REQUEST", | ||
"requestBody": "REQUEST BODY", | ||
"response": "RESPONSE", | ||
"responseModel": "RESPONSE MODEL", | ||
"statusCode": "STATUS CODE", | ||
"deprecated": "VERALTET", | ||
"allowed": "ERLAUBT", | ||
"default": "DEFAULT", | ||
"readOnly": "READ ONLY", | ||
"writeOnly": "WRITE ONLY", | ||
"enumValues": "ENUM", | ||
"pattern": "PATTERN", | ||
"parameters": "Parameter", | ||
"noRequestParameters": "Keine request parameter", | ||
"method": "METHOD", | ||
"pageNumber": "%d von %d", | ||
"createdDate": "Generiert am: %3$s.%2$s.%1$s" | ||
}, | ||
"pdfStyles": { | ||
"gray": {"color": "#b1b1b1"}, | ||
"darkgray": {"color": "#868686"}, | ||
"lightgray": {"color": "#d9d9d9"} | ||
}, | ||
"pdfFonts": { | ||
}, | ||
"pdfPrimaryColor": "#e0003c", | ||
"pdfAlternateColor": "#565656", | ||
"pdfTitle": "API Referenz", | ||
"pdfCoverText": "Cover-Text", | ||
"pdfSchemaStyle": "object", | ||
"includeToc": true, | ||
"includeApiList": false, | ||
"includeApiDetails": true, | ||
"includeSecurity": true, | ||
"includeInfo": true, | ||
"includeExample": true, | ||
"logoTop": "imgs/logo-top.png", | ||
"logoBottom": "imgs/logo-bottom.png" | ||
} |