Skip to content

Commit 41be31e

Browse files
committed
docs: fix generate docs + publish to github pages
1 parent 3806ab7 commit 41be31e

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

.github/workflows/test-and-release.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,15 @@ jobs:
5151
yarn run compile
5252
yarn run compile:forDatasource
5353
yarn run compile:datasource
54-
yarn run build
5554
cp README.md dist/akita-filters-plugin/README.md
5655
cp LICENSE.md dist/akita-filters-plugin/LICENSE.md
56+
cp LICENSE.md dist/akita-filters-mat-datasource/LICENSE.md
57+
- name: Pages
58+
if: success()
59+
run: |
60+
yarn run build
61+
cp README.md docs/assets/README.md
62+
cp -r tmp/browser/* docs/
5763
- name: Semantic Release
5864
if: success()
5965
env:

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ Thumbs.db
4343
.angular
4444
docs
4545
.nx
46+
tmp

angular.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
"with": "src/environments/environment.prod.ts"
5353
}
5454
],
55+
"outputPath": {
56+
"base": "tmp"
57+
},
5558
"optimization": true,
5659
"outputHashing": "all",
5760
"sourceMap": false,
@@ -65,7 +68,7 @@
6568
},
6669
{
6770
"type": "anyComponentStyle",
68-
"maximumWarning": "6kb"
71+
"maximumWarning": "10kb"
6972
}
7073
]
7174
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve --port 4949",
7-
"build": "ng build --configuration production --output-path docs --base-href /akita-filters-plugin/",
7+
"build": "ng build --configuration production --output-path tmp --base-href /akita-filters-plugin/",
88
"compile": "ng-packagr -p ./projects/akita-filters-plugin/ng-package.json",
99
"compile:forDatasource": "ng-packagr -p ./projects/akita-filters-plugin/ng-package2.json",
1010
"compile:datasource": "ng-packagr -p ./projects/akita-mat-datasource/ng-package.json",

0 commit comments

Comments
 (0)