mirror of https://github.com/OpenVidu/openvidu.git
openvidu-java-client: JavaDoc script extended (versioned links)
parent
d838518ae3
commit
ae92f7d06b
|
@ -1,8 +1,20 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
|
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 Javadoc links
|
||||||
|
grep -rl 'href="/en/stable/' ./src | xargs sed -i -e 's|href="/en/stable/|href="/en/'${BASEHREF_VERSION}'/|g'
|
||||||
|
|
||||||
|
# Generate JavaDoc
|
||||||
mvn javadoc:javadoc
|
mvn javadoc:javadoc
|
||||||
rm -rf ../../openvidu.io/api/openvidu-java-client/*
|
rm -rf ../../openvidu.io/api/openvidu-java-client/*
|
||||||
cp -R ./target/site/apidocs/. ../../openvidu.io-docs/docs/api/openvidu-java-client
|
cp -R ./target/site/apidocs/. ../../openvidu.io-docs/docs/api/openvidu-java-client
|
||||||
|
|
||||||
|
# Return links to "stable" version
|
||||||
|
grep -rl 'href="/en/'${BASEHREF_VERSION}'/' ./src | xargs sed -i -e 's|href="/en/'${BASEHREF_VERSION}'/|href="/en/stable/|g'
|
||||||
|
|
||||||
# Add favicon to index.html
|
# Add favicon to index.html
|
||||||
sed -i -e 's/<head>/<head><link rel=\"shortcut icon\" href=\"\/img\/favicon.ico\" type=\"image\/x-icon\">/g' ../../openvidu.io/api/openvidu-java-client/index.html
|
sed -i -e 's/<head>/<head><link rel=\"shortcut icon\" href=\"\/img\/favicon.ico\" type=\"image\/x-icon\">/g' ../../openvidu.io-docs/docs/api/openvidu-java-client/index.html
|
||||||
|
|
|
@ -117,8 +117,7 @@ public class Connection {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the data associated to the connection on the client-side. This value
|
* Returns the data associated to the connection on the client-side. This value
|
||||||
* is set with second parameter of method <a href=
|
* is set with second parameter of method <a href="/en/stable/api/openvidu-browser/classes/session.html#connect"
|
||||||
* "https://docs.openvidu.io/en/stable/api/openvidu-browser/classes/session.html#connect"
|
|
||||||
* target="_blank">Session.connect</a> in OpenVidu Browser
|
* target="_blank">Session.connect</a> in OpenVidu Browser
|
||||||
*/
|
*/
|
||||||
public String getClientData() {
|
public String getClientData() {
|
||||||
|
|
Loading…
Reference in New Issue