forked from medusajs/medusa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): Refactor API Reference (medusajs#1883)
- Loading branch information
1 parent
b126ab4
commit 73383cc
Showing
625 changed files
with
53,159 additions
and
12,461 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,51 @@ | ||
name: Generate API Reference | ||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: | ||
- "master" | ||
paths: | ||
- packages/medusa/src/api/routes/** | ||
- '!packages/medusa/src/api/routes/**/index.ts' | ||
- '!packages/medusa/src/api/routes/**/index.js' | ||
jobs: | ||
api: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/cancel-workflow-action@0.9.1 | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2.3.5 | ||
with: | ||
token: ${{ secrets.REFERENCE_PAT }} | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v2.4.1 | ||
with: | ||
node-version: "14" | ||
cache: "yarn" | ||
|
||
- name: Install dependencies | ||
uses: ./.github/actions/cache-deps | ||
with: | ||
extension: reference | ||
|
||
- name: Build Packages | ||
run: yarn build | ||
|
||
- name: Generate API Reference | ||
run: yarn openapi:generate | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
commit-message: 'chore(docs): Generated API Reference' | ||
base: 'master' | ||
title: 'chore(docs): Updated API Reference' | ||
labels: 'type: chore' | ||
add-paths: docs/api/* |
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,34 @@ | ||
name: OAS Comments Format Validation | ||
on: | ||
pull_request: | ||
paths: | ||
- packages/medusa/src/api/routes/** | ||
|
||
jobs: | ||
docs-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/cancel-workflow-action@0.9.1 | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2.3.5 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v2.4.1 | ||
with: | ||
node-version: "14" | ||
cache: "yarn" | ||
|
||
- name: Install dependencies | ||
uses: ./.github/actions/cache-deps | ||
with: | ||
extension: oas | ||
|
||
- name: Build OAS | ||
run: | | ||
yarn openapi:generate |
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 |
---|---|---|
|
@@ -20,4 +20,4 @@ lerna-debug.log | |
|
||
.idea | ||
.turbo | ||
build/** | ||
build/** |
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.