Skip to content

Commit d2e8927

Browse files
fix(docs): organize exports into namespaces for better typedocs (#1269)
1 parent 29ac682 commit d2e8927

File tree

86 files changed

+1028
-45824
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+1028
-45824
lines changed

.github/workflows/publish-docs.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: PUBLISH DOCS
2+
on:
3+
workflow_dispatch:
4+
workflow_call:
5+
# or set up your own custom triggers
6+
permissions:
7+
contents: write # allows the 'Commit' step without tokens
8+
9+
jobs:
10+
get_history: # create an artifact from the existing documentation builds
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: get the gh-pages repo
14+
uses: actions/checkout@v4
15+
with:
16+
ref: gh-pages
17+
18+
- name: tar the existing docs
19+
run: |
20+
mkdir -p ./docs
21+
tar -cvf documentation.tar ./docs
22+
23+
- name: create a document artifact
24+
uses: actions/upload-artifact@v4
25+
with:
26+
name: documentation
27+
path: documentation.tar
28+
29+
build: # builds the distribution and then the documentation
30+
needs: get_history
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout src
34+
uses: actions/checkout@v4
35+
36+
- run: mkdir -p ./docs
37+
- name: Download the existing documents artifact
38+
uses: actions/download-artifact@v4
39+
with:
40+
name: documentation
41+
- run: tar -xf documentation.tar -C ./docs
42+
43+
- name: Setup
44+
uses: ./.github/actions/setup
45+
46+
- name: Build documents
47+
run: yarn docs #set up 'docs' build script in your package.json
48+
49+
- name: Run cleanup and manage document versions
50+
run: node scripts/manage-doc-versions.js
51+
52+
- name: tar the new docs
53+
run: tar -cvf newdocumentation.tar ./docs
54+
55+
- name: create a new document artifact
56+
uses: actions/upload-artifact@v4
57+
with:
58+
name: newdocumentation
59+
path: newdocumentation.tar
60+
61+
commit: # commit the old and new merged documents to gh-pages/docs
62+
needs: build
63+
runs-on: ubuntu-latest
64+
steps:
65+
- name: checkout the gh-pages repo
66+
uses: actions/checkout@v4
67+
with:
68+
ref: gh-pages
69+
70+
- run: mkdir -p ./docs
71+
- name: Download the new documents artifact
72+
uses: actions/download-artifact@v4
73+
with:
74+
name: newdocumentation
75+
- run: tar -xf newdocumentation.tar -C ./docs
76+
77+
- name: commit
78+
run: |
79+
git config --global user.email "[email protected]"
80+
git config --global user.name "Continuous Integration"
81+
git add .
82+
git commit -m "CI updated the documentation"
83+
git push

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
permissions:
1010
contents: write
1111
id-token: write # For publishing to npm using --provenance
12+
pages: write # For publishing documentation
1213

1314
### TODO: Replace instances of './.github/workflows/' w/ `auth0/dx-sdk-actions/workflows/` and append `@latest` after the common `dx-sdk-actions` repo is made public.
1415
### TODO: Also remove `get-prerelease`, `get-release-notes`, `get-version`, `npm-publish`, `release-create`, and `tag-exists` actions from this repo's .github/actions folder once the repo is public.
@@ -20,3 +21,12 @@ jobs:
2021
secrets:
2122
npm-token: ${{ secrets.NPM_TOKEN }}
2223
github-token: ${{ secrets.GITHUB_TOKEN }}
24+
25+
publish-docs:
26+
needs: release
27+
if: success()
28+
uses: ./.github/workflows/publish-docs.yml
29+
permissions:
30+
contents: write
31+
pages: write
32+
id-token: write

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,5 @@ android/generated
9494
# Other
9595
dist/
9696
out/
97-
coverage/
97+
coverage/
98+
docs/

.shiprc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
"files": {
33
"src/core/utils/telemetry.ts": [],
44
".version": []
5-
},
6-
"postbump": "node scripts/jsdocs.js"
5+
}
76
}

docs/assets/hierarchy.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/assets/highlight.css

Lines changed: 0 additions & 173 deletions
This file was deleted.

0 commit comments

Comments
 (0)