Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate and deploy documentation with Typedoc #666

Merged
merged 3 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/github-pages-deploy-action@4.1.4
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