From 1655335aa7132009767eb1f35c8e8b055e2bb26e Mon Sep 17 00:00:00 2001 From: cruizba Date: Tue, 26 Apr 2022 18:27:57 +0200 Subject: [PATCH] Update generate docs and package.json --- openvidu-components-angular/generate-docs.sh | 16 ++++++++-------- openvidu-components-angular/package.json | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/openvidu-components-angular/generate-docs.sh b/openvidu-components-angular/generate-docs.sh index 763db82d..a34aa2aa 100644 --- a/openvidu-components-angular/generate-docs.sh +++ b/openvidu-components-angular/generate-docs.sh @@ -1,19 +1,19 @@ #!/bin/bash -# if [[ -z "$BASEHREF_VERSION" ]]; then -# echo "Example of use: \"BASEHREF_VERSION=2.12.0 ${0}\"" 1>&2 -# exit 1 -# fi +if [[ -z "$BASEHREF_VERSION" ]]; then + echo "Example of use: \"BASEHREF_VERSION=2.12.0 ${0}\"" 1>&2 + exit 1 +fi # Replace version from "stable" to the specified one in all TypeDoc links -# grep -rl '/en/stable/' src | xargs sed -i -e 's|/en/stable/|/en/'${BASEHREF_VERSION}'/|g' +grep -rl '/en/stable/' projects src | xargs sed -i -e 's|/en/stable/|/en/'${BASEHREF_VERSION}'/|g' # Generate Compodoc -npm run lib:doc-build +npm run doc:build # Return links to "stable" version -# grep -rl '/en/'${BASEHREF_VERSION}'/' src | xargs sed -i -e 's|/en/'${BASEHREF_VERSION}'/|/en/stable/|g' +grep -rl '/en/'${BASEHREF_VERSION}'/' projects src | xargs sed -i -e 's|/en/'${BASEHREF_VERSION}'/|/en/stable/|g' # Clean previous docs from openvidu.io-docs repo and copy new ones -npm run lib:clean-copy +npm run doc:clean-copy diff --git a/openvidu-components-angular/package.json b/openvidu-components-angular/package.json index b46e0e97..c8cec1d0 100644 --- a/openvidu-components-angular/package.json +++ b/openvidu-components-angular/package.json @@ -1,6 +1,6 @@ { "name": "openvidu-components-testapp", - "version": "0.0.0", + "version": "2.21.0", "scripts": { "ng": "ng", "start": "ng serve --configuration development",