Skip to content

Commit

Permalink
Update per feedback & fix prev and next (#3738)
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Dec 6, 2024
1 parent 4f4e8f6 commit ce35ee7
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 13 deletions.
6 changes: 5 additions & 1 deletion assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2699,7 +2699,11 @@ a.tree-root {
clear: both;
}

#next-page > div.left-only {
#next-page > div {
flex-direction: row;
}

#next-page > div.right-only {
flex-direction: row-reverse;
}

Expand Down
4 changes: 2 additions & 2 deletions docs/manage/fleet/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
linkTitle: "Deploy fleet"
title: "Deploy fleet"
linkTitle: "Manage fleet"
title: "Manage fleet"
weight: 10
layout: "empty"
type: "docs"
Expand Down
2 changes: 2 additions & 0 deletions docs/manage/fleet/provision/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ images: ["/platform/provisioning-demo.gif"]
videos: ["/platform/provisioning-demo.webm", "/platform/provisioning-demo.mp4"]
tags: ["fleet management", "viam-server", "viam-agent"]
# SMEs: James, Ale
prev: "/manage/fleet/setup/"
next: "/manage/fleet/provision/provision-setup"
aliases:
- "/build/provision/"
- "/fleet/provision/"
Expand Down
1 change: 1 addition & 0 deletions docs/manage/fleet/provision/provision-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ viamresources: []
platformarea: ["fleet"]
level: "Intermediate"
date: "2024-08-21"
prev: "/manage/fleet/provision/"
# updated: "" # When the tutorial was last entirely checked
cost: "0"
---
Expand Down
4 changes: 2 additions & 2 deletions docs/manage/manage/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
linkTitle: "Manage"
title: "Manage and organize"
linkTitle: "Manage workspace"
title: "Manage and organize your workspace"
weight: 20
layout: "empty"
type: "docs"
Expand Down
5 changes: 5 additions & 0 deletions docs/manage/troubleshoot/alert.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ date: "2024-10-17"
# updated: "" # When the content was last entirely checked
---

{{< alert title="Note" color="note" >}}
TODO: Mke this more about performance metrics.
{{< /alert >}}


You can receive alerts for the following machine events:

- **Data has been synced to the cloud**: receive an email or webhook when data from the machine is synced
Expand Down
25 changes: 17 additions & 8 deletions layouts/docs/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,28 @@ <h4 class="alert-heading">DRAFT</h4>
<hr>
{{ $pages := .CurrentSection.Pages.ByWeight }}
<!-- These are swapped in order -->
{{ if ($pages.Next .) }}
{{ if ($pages.Next . ) }}
<div class="row-no-margin">
{{ else }}
<div class="row-no-margin left-only">
<div class="row-no-margin {{ if not .Params.prev }}right-only{{ end }}">
{{ end }}
{{ with $pages.Next . }}
{{ if not .Params.toc_hide }}
{{ partial "nextcard.html" (dict "link" (.Page.File.Path) "class" "left" "customCanonicalLink" (.Page.Params.canonical) ) }}
{{ if .Params.prev }}
{{ partial "nextcard.html" (dict "link" (.Params.prev) "class" "left" "customCanonicalLink" (.Page.Params.canonical) ) }}
{{ else }}
{{ with $pages.Next . }}
{{ if not .Params.toc_hide }}
{{ partial "nextcard.html" (dict "link" (.Page.File.Path) "class" "left" "customCanonicalLink" (.Page.Params.canonical) ) }}
{{ end }}
{{ end }}
{{ end }}
{{ with $pages.Prev . }}
{{ if not .Params.toc_hide }}
{{ partial "nextcard.html" (dict "link" (.Page.File.Path) "class" "right" "customCanonicalLink" (.Page.Params.canonical) ) }}

{{ if .Params.next }}
{{ partial "nextcard.html" (dict "link" (.Params.next) "class" "right" "customCanonicalLink" (.Page.Params.canonical) ) }}
{{ else }}
{{ with $pages.Prev . }}
{{ if not .Params.toc_hide }}
{{ partial "nextcard.html" (dict "link" (.Page.File.Path) "class" "right" "customCanonicalLink" (.Page.Params.canonical) ) }}
{{ end }}
{{ end }}
{{ end }}
</div>
Expand Down

0 comments on commit ce35ee7

Please sign in to comment.