openvidu-browser: fix TypeDoc config to properly exclude unwanted folders

pull/681/head
pabloFuente 2022-01-12 03:38:45 +01:00
parent 3763904f73
commit 200c1db526
3 changed files with 21 additions and 18 deletions

View File

@ -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
}
}

View File

@ -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
}

View File

@ -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'