-
Notifications
You must be signed in to change notification settings - Fork 0
chore(docs): add docusaurus-plugin-openapi-docs and docusaurus-theme-openapi-docs
#109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
820fa2c
Run 'npm add docusaurus-theme-openapi-docs'
b-long 3e71327
Add helper commands to package.json
b-long e6f94c7
Document helper commands
b-long 74742ab
WIP: minimal ~working configuration
b-long ca09ba4
WIP: Using local swagger files
b-long 9c1f610
WIP: Configuration
b-long b4824ab
Adjust 'vale' config
b-long 8eae92e
Disable false-positive machine
b-long a1af6a5
Hard-code to each using the same outputDir
b-long d549381
Build dynamically, allows disabling DEFAULT_OPENAPI_SIDEBAR_OPTIONS
b-long bf50877
Use YAML instead of JSON
b-long c2bdfe9
Revert: Use YAML instead of JSON
b-long a902747
Add generated content
b-long 8f1b2f7
Use original (vendored) openapi specs
b-long d846b41
package.json that works
b-long 648fb16
Add a preprocessing to fill OpenTDF openapi gaps
b-long 91e02cc
Add 'launch.json' file for debugging build pipeline
b-long 4332948
Remove commented code
b-long 0b7e701
Add openapi.json
b-long dc07376
Add option to include timestamp in OpenAPI description during preproc…
b-long 5895cb1
Update output & base64-encoded OpenAPI spec
b-long f6231b2
Control languages shown in the UI
b-long de35a5e
Add sample files, to help debugging
b-long 9e9ac8e
Use sample files, to help debugging
b-long 1b6e511
Declare 'sampleConfig' at the start
b-long af1774c
Move languages to distinct file
b-long 8309a53
specify 'outputDir' explicitly
b-long b987fed
Comment sidebar
b-long eb23e64
Remove cruft
b-long 143ed20
Explicitly state 'sidebarOptions'
b-long 2ebd313
Cleanup
b-long 73a70a6
Remove old generated content
b-long 4d47ba2
Cleanup
b-long 2e30edb
Don't use spaces in outputDir
b-long e4f7ec1
Add sample files, to help debugging
b-long 49ed163
Add sample files, to help debugging
b-long e14e675
Fix preprocessing
b-long File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,7 +3,7 @@ name: Vale | |
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| - disabled | ||
|
|
||
| jobs: | ||
| vale-check: | ||
|
|
||
This file contains hidden or 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,20 @@ | ||
| { | ||
| "version": "0.2.0", | ||
| "configurations": [ | ||
| { | ||
| "type": "node", | ||
| "request": "launch", | ||
| "name": "Debug gen-api-docs-all", | ||
| "runtimeExecutable": "npm", | ||
| "runtimeArgs": ["run", "gen-api-docs-all"], | ||
| "cwd": "${workspaceFolder}", | ||
| "skipFiles": [ | ||
| "<node_internals>/**" | ||
| ], | ||
| "outFiles": [ | ||
| "${workspaceFolder}/**/*.js" | ||
| ], | ||
| "console": "integratedTerminal" | ||
| } | ||
| ] | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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,96 @@ | ||
| const languageTabs = [ | ||
| { | ||
| highlight: "python", | ||
| language: "python", | ||
| logoClass: "python", | ||
| }, | ||
| { | ||
| highlight: "bash", | ||
| language: "curl", | ||
| logoClass: "curl", | ||
| }, | ||
| { | ||
| highlight: "csharp", | ||
| language: "csharp", | ||
| logoClass: "csharp", | ||
| }, | ||
| // { | ||
| // highlight: "go", | ||
| // language: "go", | ||
| // logoClass: "go", | ||
| // }, | ||
| // { | ||
| // highlight: "javascript", | ||
| // language: "nodejs", | ||
| // logoClass: "nodejs", | ||
| // }, | ||
| { | ||
| highlight: "ruby", | ||
| language: "ruby", | ||
| logoClass: "ruby", | ||
| }, | ||
| { | ||
| highlight: "php", | ||
| language: "php", | ||
| logoClass: "php", | ||
| }, | ||
| // { | ||
| // highlight: "java", | ||
| // language: "java", | ||
| // logoClass: "java", | ||
| // variant: "unirest", | ||
| // }, | ||
| { | ||
| highlight: "powershell", | ||
| language: "powershell", | ||
| logoClass: "powershell", | ||
| }, | ||
| { | ||
| highlight: "dart", | ||
| language: "dart", | ||
| logoClass: "dart", | ||
| }, | ||
| // { | ||
| // highlight: "javascript", | ||
| // language: "javascript", | ||
| // logoClass: "javascript", | ||
| // }, | ||
| { | ||
| highlight: "c", | ||
| language: "c", | ||
| logoClass: "c", | ||
| }, | ||
| { | ||
| highlight: "objective-c", | ||
| language: "objective-c", | ||
| logoClass: "objective-c", | ||
| }, | ||
| { | ||
| highlight: "ocaml", | ||
| language: "ocaml", | ||
| logoClass: "ocaml", | ||
| }, | ||
| { | ||
| highlight: "r", | ||
| language: "r", | ||
| logoClass: "r", | ||
| }, | ||
| { | ||
| highlight: "swift", | ||
| language: "swift", | ||
| logoClass: "swift", | ||
| }, | ||
| { | ||
| highlight: "kotlin", | ||
| language: "kotlin", | ||
| logoClass: "kotlin", | ||
| }, | ||
| { | ||
| highlight: "rust", | ||
| language: "rust", | ||
| logoClass: "rust", | ||
| }, | ||
| ]; | ||
|
|
||
| // export it | ||
| export default languageTabs; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.