Skip to content

Commit

Permalink
Update build-typescript-docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
joethei authored Feb 21, 2024
1 parent a584d19 commit 4c1adff
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions .github/workflows/build-typescript-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,31 @@ jobs:
with:
node-version: "16.x"

- name: Install API Extractor
run: npm install -g @microsoft/api-extractor

- name: Run API Extractor
run: |
cd config
api-extractor run --local --verbose
- name: Pre-Process API Extractor output
working-directory: ./config
run: node pre-process.js

- name: Clone API Documenter fork
run: git clone https://github.com/ericaxu/rushstack-obsidian.git
- name: Clone rushstack fork
run: git clone https://github.com/joethei/rushstack.git

- name: Install Rush
run: npm install -g @microsoft/rush

- name: Build Rushstack
working-directory: ./rushstack-obsidian
working-directory: ./rushstack
continue-on-error: true
run: |
rush update --bypass-policy
rush build
- name: Run API Extractor
run: |
cd config
../rushstack/apps/api-extractor/bin/api-extractor run --local --verbose
- name: Pre-Process API Extractor output
working-directory: ./config
run: node pre-process.js

- name: Generate API docs
working-directory: ./config
run: ../rushstack-obsidian/apps/api-documenter/bin/api-documenter markdown --output ../en/Reference/TypeScript\ API
run: ../rushstack/apps/api-documenter/bin/api-documenter markdown --output ../en/Reference/TypeScript\ API

- name: Post-process Markdown
working-directory: ./config
Expand Down

0 comments on commit 4c1adff

Please sign in to comment.