Fix the dependencies on the docs-* targets.

Refs #9593
Merge branch 'feature/9593_docs_build_in_jenkins_scripts' into develop