Skip to content

Commit

Permalink
Generate and deploy documentation with Typedoc (#666)
Browse files Browse the repository at this point in the history
Co-Authored-By: Jolie Rabideau <[email protected]>
  • Loading branch information
jolierabideau and Jolie Rabideau authored Dec 5, 2023
2 parents 8d33e3a + a25dbf3 commit b2a63c1
Show file tree
Hide file tree
Showing 23 changed files with 594 additions and 415 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Publish documentation

on:
push:
branches:
- main

jobs:
publish-docs:
runs-on: ubuntu-latest

strategy:
matrix:
node_version: [18.x]

steps:
- name: Checkout git repo
uses: actions/checkout@v3

- name: Install Node and NPM
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
cache: npm

- name: Install and build
run: |
npm install
npm run build
- name: Build documentation
run: | # renaming the folders so that pages links at /{their name} instead of at /docs
cd ~/lib/papi-components
npm run build:docs
mv docs papi-components
cd ~/lib/papi-dts
npm run build:docs
mv docs papi-dts
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: github-pages
folder: |
lib/papi-components/papi-components
lib/papi-dts/papi-dts
3 changes: 3 additions & 0 deletions lib/papi-components/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ node_modules

# Built files
dist

# Doc files
docs
1 change: 1 addition & 0 deletions lib/papi-components/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ build
# dist # We want these commited so developers don't need to build the package.
dist-ssr
*.local
docs

# logs
logs
Expand Down
3 changes: 3 additions & 0 deletions lib/papi-components/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ node_modules

# Built files
dist

# Doc files
docs
3 changes: 3 additions & 0 deletions lib/papi-components/.stylelintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ node_modules

# Built files
dist

# Doc files
docs
132 changes: 66 additions & 66 deletions lib/papi-components/dist/index.cjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/papi-components/dist/index.cjs.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit b2a63c1

Please sign in to comment.