Ignore example/ for building docs

This commit is contained in:
Marc Rousavy 2021-03-04 10:38:42 +01:00
parent 71b442aeb4
commit 138e7bd0ec
3 changed files with 7 additions and 9 deletions

View File

@ -40,13 +40,10 @@ jobs:
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install modules
run: yarn install --frozen-lockfile
- name: Install modules (example/)
run: yarn example --frozen-lockfile
- name: Test Docs Build
run: |
yarn install --frozen-lockfile
cd docs
yarn install --frozen-lockfile
yarn build
@ -82,10 +79,6 @@ jobs:
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install modules
run: yarn install --frozen-lockfile
- name: Install modules (example/)
run: yarn example --frozen-lockfile
- name: Release to GitHub Pages
env:

View File

@ -97,7 +97,7 @@ module.exports = {
{
entryPoints: ['../src'],
exclude: "../src/index.ts",
tsconfig: '../tsconfig.json',
tsconfig: '../tsconfig.docs.json',
readme: "none",
sidebar: {
sidebarFile: 'typedoc-sidebar.js',

5
tsconfig.docs.json Normal file
View File

@ -0,0 +1,5 @@
{
"extends": "./tsconfig",
"exclude": ["example"]
}