mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Updated build doc script
Replaced testapp README by openvidu-angular README with the aim of showing it on the docs. (Compodoc shows the README file which stay on the main path)pull/766/head
parent
170c835e3b
commit
453c9576ea
|
@ -8,12 +8,20 @@ fi
|
||||||
# Replace version from "stable" to the specified one in all TypeDoc links
|
# Replace version from "stable" to the specified one in all TypeDoc links
|
||||||
grep -rl '/en/stable/' projects 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'
|
||||||
|
|
||||||
|
# Replace testapp README by openvidu-angular README
|
||||||
|
mv README.md README-testapp.md
|
||||||
|
cp ./projects/openvidu-angular/README.md .
|
||||||
|
|
||||||
# Generate Compodoc
|
# Generate Compodoc
|
||||||
npm run doc:build
|
npm run doc:build
|
||||||
|
|
||||||
# Return links to "stable" version
|
# Return links to "stable" version
|
||||||
grep -rl '/en/'${BASEHREF_VERSION}'/' projects 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'
|
||||||
|
|
||||||
|
# Undo changes with READMEs
|
||||||
|
rm README.md
|
||||||
|
mv README-testapp.md README.md
|
||||||
|
|
||||||
# Clean previous docs from openvidu.io-docs repo and copy new ones
|
# Clean previous docs from openvidu.io-docs repo and copy new ones
|
||||||
npm run doc:clean-copy
|
npm run doc:clean-copy
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue