diff --git a/openvidu-browser/config/tsconfig.json b/openvidu-browser/config/tsconfig.json new file mode 100644 index 00000000..e7f7ecae --- /dev/null +++ b/openvidu-browser/config/tsconfig.json @@ -0,0 +1,20 @@ +{ + "include": ["../src"], + "exclude": ["../config", "../docs", "../lib", "../node_modules", "../ts4.4"], + "typedocOptions": { + "name": "OpenVidu Browser", + "entryPoints": ["../src/index.ts"], + "out": "../docs", + "theme": "default", + "readme": "none", + "includeVersion": true, + "validation": { + "notExported": true, + "invalidLink": true + }, + "excludeExternals": true, + "excludePrivate": true, + "excludeProtected": true, + "excludeInternal": true + } +} \ No newline at end of file diff --git a/openvidu-browser/config/typedoc.json b/openvidu-browser/config/typedoc.json deleted file mode 100644 index aea665c6..00000000 --- a/openvidu-browser/config/typedoc.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "OpenVidu Browser", - "entryPoints": ["src/index.ts"], - "out": "../docs", - "theme": "default", - "readme": "none", - "includeVersion": true, - "validation": { - "notExported": true, - "invalidLink": true - }, - "excludeExternals": true, - "excludePrivate": true, - "excludeProtected": true, - "excludeInternal": true -} \ No newline at end of file diff --git a/openvidu-browser/generate-docs.sh b/openvidu-browser/generate-docs.sh index 3d3b4866..4b75d815 100755 --- a/openvidu-browser/generate-docs.sh +++ b/openvidu-browser/generate-docs.sh @@ -9,8 +9,7 @@ fi grep -rl '/en/stable/' src | xargs sed -i -e 's|/en/stable/|/en/'${BASEHREF_VERSION}'/|g' # Generate TypeDoc -rm -rf ./docs -./node_modules/typedoc/bin/typedoc --options ./config/typedoc.json ./src +./node_modules/typedoc/bin/typedoc --tsconfig ./config/tsconfig.json # Return links to "stable" version grep -rl '/en/'${BASEHREF_VERSION}'/' src | xargs sed -i -e 's|/en/'${BASEHREF_VERSION}'/|/en/stable/|g'