Skip to content

Commit

Permalink
feat(ngdoc): ignore site typescript error
Browse files Browse the repository at this point in the history
  • Loading branch information
yunyuyuan authored and why520crazy committed Sep 3, 2022
1 parent 87b4a82 commit 5ee49ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/en-us/guides/advance/customize.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ assets/content

## Step 4
We need to modify the entry `index.html` and `styles.scss`,change the `app-root` to `dg-root`in `index.html`,import `@docgeni/template/styles/index.scss` to `style.scss`
Note: If some typescript errors occurred when `npm run start:docs`, you may need to modify the entry `tsconfig.app.json`, add `"strict": false` to `compilerOptions`.

```html
// index.html
Expand Down
1 change: 1 addition & 0 deletions docs/guides/advance/customize.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ assets/content

## 第四步
需要修改生成站点的入口`index.html``styles.scss`,`index.html`中的`app-root`修改为`dg-root``style.scss`引入`@docgeni/template/styles/index.scss`
注意:如果运行时报typescript相关的错误,则需要修改生成站点的入口的`tsconfig.app.json`文件,在`compilerOptions`里加上`"strict": false`

```html
// index.html
Expand Down

0 comments on commit 5ee49ad

Please sign in to comment.