[FIXED JENKINS-12433] Fix documentation.

There is an issue with the documentation displaying if the Jenkins root url is empty. This PR uses the default method in Jenkins to obtain the documentation.