-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API Docs - Section - Introduction, Authentication & others (#858)
* ci: add dev-only API generation * ci: use the new rdme API v7.x * doc: port content from readme to github * doc: refactore logs.md * doc: update Bearer Auth * doc: add PMM server configuration page * fix: typo in basic auth * ci: add api version parameter * fix: swagger validate typo
- Loading branch information
Alex Tymchuk
authored
Apr 4, 2022
1 parent
304df07
commit 638c904
Showing
10 changed files
with
12,064 additions
and
31 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 |
---|---|---|
|
@@ -3,21 +3,30 @@ on: | |
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "API Version on readme.io" | ||
required: true | ||
default: "v1.0" # v0.0 stands for the dev version | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: percona-platform/checkout@v2 | ||
- uses: percona-platform/github-readme-sync@v2 | ||
- uses: percona-platform/checkout@v3 | ||
|
||
- name: Sync GA API to Readme | ||
uses: percona-platform/[email protected] | ||
with: | ||
readme-oas-key: ${{ secrets.README_TOKEN }} | ||
rdme: openapi ./api/swagger/swagger.json --id=61deab764c98639400162c1b --key=${{ secrets.README_TOKEN }} | ||
|
||
# OPTIONAL CONFIG, use if necessary | ||
oas-file-path: "./api/swagger/swagger.json" | ||
api-version: "v1.0.0" #TODO: get version from branch | ||
- name: Sync non-GA API to Readme | ||
uses: percona-platform/[email protected] | ||
with: | ||
rdme: openapi ./api/swagger/swagger-dev-only.json --id=6248ad743930240056ce27b6 --key=${{ secrets.README_TOKEN }} | ||
|
||
- uses: percona-platform/setup-node@v2 | ||
- name: Upload markdown content | ||
uses: percona-platform/[email protected] | ||
with: | ||
node-version: "14" | ||
- run: npm install -g rdme | ||
- run: rdme docs markdowns --version=v1.0.0 --key=${{ secrets.README_TOKEN }} | ||
rdme: docs markdown --version=${{ github.event.inputs.version }} --key=${{ secrets.README_TOKEN }} |
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
Oops, something went wrong.