Skip to content

Commit 105494f

Browse files
committed
fix(docs): add github-pages build configuration with correct baseHref
- Added github-pages configuration to docs angular.json with baseHref /ngx-tailwindcss/ - Updated CI and release workflows to use github-pages configuration
1 parent 110f5d0 commit 105494f

3 files changed

Lines changed: 21 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
run: cd docs && pnpm install --frozen-lockfile
115115

116116
- name: Build docs
117-
run: cd docs && pnpm run build
117+
run: cd docs && pnpm run build --configuration github-pages
118118

119119
- name: Upload docs artifacts
120120
uses: actions/upload-artifact@v4

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ jobs:
5454
with:
5555
body: |
5656
## What's Changed
57-
57+
5858
See the [CHANGELOG](https://github.com/pegasusheavy/ngx-tailwindcss/blob/main/CHANGELOG.md) for details.
59-
59+
6060
### Installation
61-
61+
6262
```bash
6363
npm install @pegasusheavy/ngx-tailwindcss@${{ github.ref_name }}
6464
```
@@ -108,7 +108,7 @@ jobs:
108108
run: cd docs && pnpm install --frozen-lockfile
109109

110110
- name: Build docs
111-
run: cd docs && pnpm run build --base-href /ngx-tailwindcss/
111+
run: cd docs && pnpm run build --configuration github-pages
112112

113113
- name: Setup Pages
114114
uses: actions/configure-pages@v4

docs/angular.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,22 @@
5656
],
5757
"outputHashing": "all"
5858
},
59+
"github-pages": {
60+
"budgets": [
61+
{
62+
"type": "initial",
63+
"maximumWarning": "1MB",
64+
"maximumError": "2MB"
65+
},
66+
{
67+
"type": "anyComponentStyle",
68+
"maximumWarning": "4kB",
69+
"maximumError": "8kB"
70+
}
71+
],
72+
"outputHashing": "all",
73+
"baseHref": "/ngx-tailwindcss/"
74+
},
5975
"development": {
6076
"optimization": false,
6177
"extractLicenses": false,

0 commit comments

Comments
 (0)