diff --git a/docs/build/provision/_index.md b/docs/build/provision/_index.md index 1343bc424a..287df94566 100644 --- a/docs/build/provision/_index.md +++ b/docs/build/provision/_index.md @@ -4,6 +4,7 @@ linkTitle: "Provision Machines" weight: 70 type: "docs" description: "Flexibly provision new machines using the Viam Agent." +images: ["/platform/provisioning-demo.gif"] videos: ["/platform/provisioning-demo.webm", "/platform/provisioning-demo.mp4"] tags: ["fleet management", "viam-server", "viam-agent"] # SME: James Otting diff --git a/layouts/partials/gif.html b/layouts/partials/gif.html index cae0d39c4f..17a39037c6 100644 --- a/layouts/partials/gif.html +++ b/layouts/partials/gif.html @@ -5,7 +5,10 @@ {{ $f := os.Stat $webmLink }} {{ $sizeInBytes := div $f.Size 1000 }} {{ if gt $sizeInBytes 1000 }} - {{ warnf "Size of video file %s was %d kB - please reduce file size" $webmLink $sizeInBytes }} + {{ if not hugo.IsProduction }} + {{ warnf "Size of video file %s was %d kB - please reduce file size. This will be an error on PRs." $webmLink $sizeInBytes }} + {{ else }} + {{ end }} {{ end }} {{ else }} {{errorf "File not found - did you use the absolute file path? %s" $webmLink}} @@ -14,7 +17,11 @@ {{ $f := os.Stat $mp4Link }} {{ $sizeInBytes := div $f.Size 1000 }} {{ if gt $sizeInBytes 1000 }} - {{ warnf "Size of video file %s was %d kB - please reduce file size" $mp4Link $sizeInBytes }} + {{ if not hugo.IsProduction }} + {{ warnf "Size of video file %s was %d kB - please reduce file size. This will be an error on PRs." $mp4Link $sizeInBytes }} + {{ else }} + {{ errorf "Size of video file %s was %d kB - please reduce file size" $mp4Link $sizeInBytes }} + {{ end }} {{ end }} {{end}} diff --git a/static/platform/provisioning-demo.gif b/static/platform/provisioning-demo.gif new file mode 100644 index 0000000000..1976f5d12c Binary files /dev/null and b/static/platform/provisioning-demo.gif differ diff --git a/static/platform/provisioning-demo.mp4 b/static/platform/provisioning-demo.mp4 index 8d0738449d..108e6c7288 100644 Binary files a/static/platform/provisioning-demo.mp4 and b/static/platform/provisioning-demo.mp4 differ diff --git a/static/platform/provisioning-demo.webm b/static/platform/provisioning-demo.webm index f192232821..afe0b7bbe9 100644 Binary files a/static/platform/provisioning-demo.webm and b/static/platform/provisioning-demo.webm differ