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

View File

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

5
tsconfig.docs.json Normal file
View File

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