-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/rohit-gohri/redocusaurus in…
…to releases/v1
- Loading branch information
Showing
20 changed files
with
472 additions
and
84 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,47 @@ | ||
name: E2E | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
YARN_COMPRESSION_LEVEL: 0 | ||
YARN_ENABLE_GLOBAL_CACHE: true | ||
PERCY_POSTINSTALL_BROWSER: true | ||
|
||
jobs: | ||
percy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
cache: 'yarn' | ||
|
||
- name: Install Dependencies 📦 | ||
run: yarn install --immutable | ||
|
||
- name: Wait for Vercel Preview | ||
uses: patrickedqvist/wait-for-vercel-preview@v1.2.0 | ||
id: vercel-preview | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
max_timeout: 200 | ||
check_interval: 5 | ||
|
||
- name: Run Percy | ||
run: yarn test | ||
working-directory: website | ||
env: | ||
TARGET_URL: ${{ steps.vercel-preview.outputs.url }} | ||
PERCY_TOKEN: ${{ secrets.PERCY_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
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
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
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
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,29 @@ | ||
--- | ||
title: Plugin Options | ||
sidebar_position: 1 | ||
author: Rohit Gohri | ||
author_url: https://rohit.page | ||
--- | ||
|
||
Either of `spec` or `specUrl` is required. | ||
|
||
### spec | ||
|
||
A path to a OpenAPI yaml or json file. Will be parsed and forwarded to Redoc component. This has higher priority over specUrl. | ||
|
||
### specUrl | ||
|
||
A url pointing to an OpenAPI spec. | ||
|
||
### layout | ||
|
||
An object to pass as layout props. Useful to set title/description of the page. See all properties available [here](https://github.com/rohit-gohri/redocusaurus/blob/releases/v0/packages/docusaurus-plugin-redoc/src/options.ts#L3). | ||
|
||
### routePath (default: `/api/`) | ||
|
||
Route URL at which docs would be available | ||
|
||
### apiDocComponent (default: `@theme/ApiDoc`) | ||
|
||
If you want to use a custom component to render the spec instead of the one with `docusaurus-theme-redoc` then overwrite this with a path to the component. | ||
It will be forwarded a single prop, see [ApiDoc](https://github.com/rohit-gohri/redocusaurus/blob/releases/v0/packages/docusaurus-theme-redoc/src/theme/ApiDoc/ApiDoc.tsx) for example. |
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,16 @@ | ||
--- | ||
title: Theme Options | ||
sidebar_position: 2 | ||
author: Rohit Gohri | ||
author_url: https://rohit.page | ||
--- | ||
|
||
### primaryColor | ||
|
||
Hex code to be passed as the `main` color to [RedocStandalone](https://github.com/redocly/redoc#usage-as-a-react-component) | ||
|
||
### redocOptions | ||
|
||
Override the default redoc options passed to the [RedocStandalone](https://github.com/redocly/redoc#usage-as-a-react-component) component. | ||
|
||
See the defaults [here](https://github.com/rohit-gohri/redocusaurus/blob/releases/v0/packages/docusaurus-theme-redoc/src/redocData.ts#L5-L12). |
Oops, something went wrong.