diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index a7063434f..d1332c7d1 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -39,10 +39,10 @@ jobs: run: | grunt webpack - tsc --stripInternal + tsc --project tsconfig.docs.json --stripInternal - name: Generate all documentation - run: yarn doc:all + run: yarn doc - name: Prepare deployment structure run: | diff --git a/tsconfig.docs.json b/tsconfig.docs.json new file mode 100644 index 000000000..04a20945b --- /dev/null +++ b/tsconfig.docs.json @@ -0,0 +1,18 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "skipLibCheck": true, + "types": [] + }, + "include": [ + "./src/**/*.ts" + ], + "exclude": [ + "./src/**/*.spec.ts", + "./src/**/*.test.ts", + "./spec/**/*", + "./angular/**/*", + "./demo/**/*", + "./node_modules/**/*" + ] +} diff --git a/typedoc.html.json b/typedoc.html.json index 46651938d..cb6c98586 100644 --- a/typedoc.html.json +++ b/typedoc.html.json @@ -1,6 +1,7 @@ { "$schema": "https://typedoc.org/schema.json", "entryPoints": ["src/gridstack.ts"], + "tsconfig": "tsconfig.docs.json", "excludeExternals": false, "out": "doc/html", "exclude": [ diff --git a/typedoc.json b/typedoc.json index 9b949f035..16a413246 100644 --- a/typedoc.json +++ b/typedoc.json @@ -1,6 +1,7 @@ { "$schema": "https://typedoc.org/schema.json", "entryPoints": ["src/gridstack.ts"], + "tsconfig": "tsconfig.docs.json", "excludeExternals": false, "out": "doc", "plugin": ["typedoc-plugin-markdown"],