Skip to content

Commit

Permalink
add multiple packages docs
Browse files Browse the repository at this point in the history
  • Loading branch information
leordev committed Dec 15, 2023
1 parent dad5114 commit 094eed9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 19 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/docs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,17 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
report_changed_scope_only: false
fail_on_error: false
group_docs: true
entry_points: |
- file: packages/api/src/index.ts
docsReporter: api-extractor
docsGenerator: typedoc-html
- file: packages/crypto/src/index.ts
docsReporter: api-extractor
docsGenerator: typedoc-html
- file: packages/dids/src/index.ts
docsReporter: api-extractor
docsGenerator: typedoc-html
- name: Save Artifacts
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 #v3.1.3
Expand Down
42 changes: 23 additions & 19 deletions .github/workflows/docs-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
name: Build and Deploy Docs

on:
# TODO: uncomment before merging
# Runs on new released versions
# release:
# types:
# - published
release:
types:
- published

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -51,12 +50,18 @@ jobs:
- file: packages/api/src/index.ts
docsReporter: api-extractor
docsGenerator: typedoc-html
- file: packages/crypto/src/index.ts
docsReporter: api-extractor
docsGenerator: typedoc-html
- file: packages/dids/src/index.ts
docsReporter: api-extractor
docsGenerator: typedoc-html
- name: Upload documentation artifacts
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 #v3.1.3
with:
name: web5-api-docs
path: ./packages/api/.tbdocs/docs
name: tbdocs-output
path: ./.tbdocs

deploy:
# Add a dependency to the build job
Expand All @@ -82,18 +87,17 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@v3

- name: Download JSDoc artifacts
- name: Download TBDocs Artifacts
uses: actions/download-artifact@v3
with:
name: web5-api-docs
path: ./web5-api-docs

# TODO: uncomment and adjust path before merging
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v1
# with:
# path: "./docs"

# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v2
name: tbdocs-output
path: ./tbdocs

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: "./.tbdocs/docs"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 094eed9

Please sign in to comment.