|
@@ -106,10 +106,16 @@ upload_current_documentation() {
|
|
|
}
|
|
|
|
|
|
setup_s3
|
|
|
-build_current_documentation
|
|
|
-upload_current_documentation
|
|
|
+
|
|
|
+# Default to only building the version specific docs so we don't clober the latest by accident with old versions
|
|
|
+if [ "$BUILD_ROOT" == "yes" ]; then
|
|
|
+ echo "Building root documentation"
|
|
|
+ build_current_documentation
|
|
|
+ upload_current_documentation
|
|
|
+fi
|
|
|
|
|
|
#build again with /v1.0/ prefix
|
|
|
sed -i "s/^site_url:.*/site_url: \/$MAJOR_MINOR\//" mkdocs.yml
|
|
|
+echo "Building the /$MAJOR_MINOR/ documentation"
|
|
|
build_current_documentation
|
|
|
upload_current_documentation "/$MAJOR_MINOR/"
|