v0.3.0
* Getting environment variables and passwords from Vault (not tested yet) * Vault configuration to config (not tested yet) * Ability to run scripts from file on local machine on the remote host * Ability to get ouput in the notification of a list for individual commands or all commands * Make SSH connections close after all commands have been run; reuse previous connections if needed
This commit is contained in:
11
docs/themes/hugo-theme-relearn/layouts/shortcodes/attachments.html
vendored
Normal file
11
docs/themes/hugo-theme-relearn/layouts/shortcodes/attachments.html
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
{{- $_hugo_config := `{ "version": 1 }` }}
|
||||
{{- partial "shortcodes/attachments.html" (dict
|
||||
"context" .Page
|
||||
"color" (.Get "color")
|
||||
"content" .Inner
|
||||
"icon" (.Get "icon")
|
||||
"pattern" (.Get "pattern")
|
||||
"style" (.Get "style")
|
||||
"sort" (.Get "sort")
|
||||
"title" (.Get "title")
|
||||
) }}
|
9
docs/themes/hugo-theme-relearn/layouts/shortcodes/badge.html
vendored
Normal file
9
docs/themes/hugo-theme-relearn/layouts/shortcodes/badge.html
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
{{- $_hugo_config := `{ "version": 1 }` }}
|
||||
{{- partial "shortcodes/badge.html" (dict
|
||||
"context" .Page
|
||||
"color" (.Get "color")
|
||||
"content" .Inner
|
||||
"icon" (.Get "icon")
|
||||
"style" (.Get "style")
|
||||
"title" (.Get "title")
|
||||
) }}
|
13
docs/themes/hugo-theme-relearn/layouts/shortcodes/button.html
vendored
Normal file
13
docs/themes/hugo-theme-relearn/layouts/shortcodes/button.html
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
{{- $_hugo_config := `{ "version": 1 }` }}
|
||||
{{- partial "shortcodes/button.html" (dict
|
||||
"context" .Page
|
||||
"color" (.Get "color")
|
||||
"content" .Inner
|
||||
"href" (.Get "href")
|
||||
"icon" (.Get "icon")
|
||||
"iconposition" ((.Get "iconposition") | default (.Get "icon-position"))
|
||||
"style" (.Get "style")
|
||||
"title" (.Get "title")
|
||||
"target" (.Get "target")
|
||||
"type" (.Get "type")
|
||||
) }}
|
10
docs/themes/hugo-theme-relearn/layouts/shortcodes/children.html
vendored
Normal file
10
docs/themes/hugo-theme-relearn/layouts/shortcodes/children.html
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
{{- $_hugo_config := `{ "version": 1 }` }}
|
||||
{{- partial "shortcodes/children.html" (dict
|
||||
"context" .Page
|
||||
"containerstyle" (.Get "containerstyle")
|
||||
"description" (.Get "description")
|
||||
"depth" (.Get "depth")
|
||||
"showhidden" (.Get "showhidden")
|
||||
"sort" (.Get "sort")
|
||||
"style" (.Get "style")
|
||||
) }}
|
15
docs/themes/hugo-theme-relearn/layouts/shortcodes/expand.html
vendored
Normal file
15
docs/themes/hugo-theme-relearn/layouts/shortcodes/expand.html
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
{{- $_hugo_config := `{ "version": 1 }` }}
|
||||
{{- $version := split hugo.Version "." }}
|
||||
{{- $major := int (index $version 0) }}
|
||||
{{- $minor := int (index $version 1) }}
|
||||
{{- $id := "" }}
|
||||
{{- if or (and (eq $major 0) (ge $minor 108)) (gt $major 0) }}
|
||||
{{- $id = "" }}
|
||||
{{- end }}
|
||||
{{- partial "shortcodes/expand.html" (dict
|
||||
"context" .Page
|
||||
"content" .Inner
|
||||
"open" (.Get "open" | default (.Get 1))
|
||||
"title" (.Get "title" | default (.Get 0))
|
||||
"id" $id
|
||||
) }}
|
5
docs/themes/hugo-theme-relearn/layouts/shortcodes/icon.html
vendored
Normal file
5
docs/themes/hugo-theme-relearn/layouts/shortcodes/icon.html
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
{{- $_hugo_config := `{ "version": 1 }` }}
|
||||
{{- partial "shortcodes/icon.html" (dict
|
||||
"context" .Page
|
||||
"icon" (.Get "icon" | default (.Get 0))
|
||||
) }}
|
5
docs/themes/hugo-theme-relearn/layouts/shortcodes/include.html
vendored
Normal file
5
docs/themes/hugo-theme-relearn/layouts/shortcodes/include.html
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
{{- partial "shortcodes/include.html" (dict
|
||||
"context" .Page
|
||||
"file" (.Get "file" | default (.Get 0))
|
||||
"hidefirstheading" (.Get "hidefirstheading" | default (.Get 1))
|
||||
) }}
|
6
docs/themes/hugo-theme-relearn/layouts/shortcodes/math.html
vendored
Normal file
6
docs/themes/hugo-theme-relearn/layouts/shortcodes/math.html
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{{- $_hugo_config := `{ "version": 1 }` }}
|
||||
{{- partial "shortcodes/math.html" (dict
|
||||
"context" .Page
|
||||
"content" .Inner
|
||||
"align" (.Get "align")
|
||||
) }}
|
7
docs/themes/hugo-theme-relearn/layouts/shortcodes/mermaid.html
vendored
Normal file
7
docs/themes/hugo-theme-relearn/layouts/shortcodes/mermaid.html
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{{- $_hugo_config := `{ "version": 1 }` }}
|
||||
{{- partial "shortcodes/mermaid.html" (dict
|
||||
"context" .Page
|
||||
"content" .Inner
|
||||
"align" (.Get "align")
|
||||
"zoom" (.Get "zoom")
|
||||
) }}
|
9
docs/themes/hugo-theme-relearn/layouts/shortcodes/notice.html
vendored
Normal file
9
docs/themes/hugo-theme-relearn/layouts/shortcodes/notice.html
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
{{- $_hugo_config := `{ "version": 1 }` }}
|
||||
{{- partial "shortcodes/notice.html" (dict
|
||||
"context" .Page
|
||||
"color" (.Get "color")
|
||||
"content" .Inner
|
||||
"icon" (.Get "icon" | default (.Get 2))
|
||||
"style" (.Get "style" | default (.Get 0))
|
||||
"title" (.Get "title" | default (.Get 1))
|
||||
) }}
|
12
docs/themes/hugo-theme-relearn/layouts/shortcodes/openapi.html
vendored
Normal file
12
docs/themes/hugo-theme-relearn/layouts/shortcodes/openapi.html
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
{{- $version := split hugo.Version "." }}
|
||||
{{- $major := int (index $version 0) }}
|
||||
{{- $minor := int (index $version 1) }}
|
||||
{{- $id := "" }}
|
||||
{{- if or (and (eq $major 0) (ge $minor 108)) (gt $major 0) }}
|
||||
{{- $id = "" }}
|
||||
{{- end }}
|
||||
{{- partial "shortcodes/openapi.html" (dict
|
||||
"context" .Page
|
||||
"src" (.Get "src")
|
||||
"id" $id
|
||||
) }}
|
4
docs/themes/hugo-theme-relearn/layouts/shortcodes/siteparam.html
vendored
Normal file
4
docs/themes/hugo-theme-relearn/layouts/shortcodes/siteparam.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
{{- partial "shortcodes/siteparam.html" (dict
|
||||
"context" .Page
|
||||
"name" (.Get "name" | default (.Get 0))
|
||||
) }}
|
12
docs/themes/hugo-theme-relearn/layouts/shortcodes/swagger.html
vendored
Normal file
12
docs/themes/hugo-theme-relearn/layouts/shortcodes/swagger.html
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
{{- $version := split hugo.Version "." }}
|
||||
{{- $major := int (index $version 0) }}
|
||||
{{- $minor := int (index $version 1) }}
|
||||
{{- $id := "" }}
|
||||
{{- if or (and (eq $major 0) (ge $minor 108)) (gt $major 0) }}
|
||||
{{- $id = "" }}
|
||||
{{- end }}
|
||||
{{- partial "shortcodes/swagger.html" (dict
|
||||
"context" .Page
|
||||
"src" (.Get "src")
|
||||
"id" $id
|
||||
) }}
|
33
docs/themes/hugo-theme-relearn/layouts/shortcodes/tab.html
vendored
Normal file
33
docs/themes/hugo-theme-relearn/layouts/shortcodes/tab.html
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
{{- $_hugo_config := `{ "version": 1 }` }}
|
||||
{{- $color := (.Get "color") }}
|
||||
{{- $content := .Inner }}
|
||||
{{- $icon := (.Get "icon") }}
|
||||
{{- $name := (.Get "name") }}
|
||||
{{- $style := (.Get "style") }}
|
||||
{{- $title := (.Get "title") }}
|
||||
{{- $tabs := slice }}
|
||||
{{- if and .Parent (.Parent.Scratch.Get "tabs") }}
|
||||
{{- $tabs = .Parent.Scratch.Get "tabs" }}
|
||||
{{- end }}
|
||||
{{- $tabs = $tabs | append (dict
|
||||
"color" $color
|
||||
"content" $content
|
||||
"icon" $icon
|
||||
"name" $name
|
||||
"style" $style
|
||||
"title" $title
|
||||
) }}
|
||||
{{- if .Parent }}
|
||||
{{- $.Parent.Scratch.Set "tabs" $tabs }}
|
||||
{{- else }}
|
||||
{{- $c:=""}}{{/* if no containing tabs shortcode is present, we display this tab as single */}}
|
||||
{{- partial "shortcodes/tabs.html" (dict
|
||||
"context" .Page
|
||||
"color" ""
|
||||
"content" $tabs
|
||||
"groupid" ""
|
||||
"icon" ""
|
||||
"style" ""
|
||||
"title" ""
|
||||
) }}
|
||||
{{- end }}
|
22
docs/themes/hugo-theme-relearn/layouts/shortcodes/tabs.html
vendored
Normal file
22
docs/themes/hugo-theme-relearn/layouts/shortcodes/tabs.html
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
{{- $unused := .Inner }}
|
||||
{{- $version := split hugo.Version "." }}
|
||||
{{- $major := int (index $version 0) }}
|
||||
{{- $minor := int (index $version 1) }}
|
||||
{{- $color := (.Get "color") }}
|
||||
{{- $groupid := (.Get "groupid") }}
|
||||
{{- if or (and (eq $major 0) (ge $minor 108)) (gt $major 0) }}
|
||||
{{- $groupid = $groupid | default "" }}
|
||||
{{- end }}
|
||||
{{- $icon := (.Get "icon") }}
|
||||
{{- $style := (.Get "style") }}
|
||||
{{- $title := (.Get "title") }}
|
||||
{{- $tabs := (.Scratch.Get "tabs") }}
|
||||
{{- partial "shortcodes/tabs.html" (dict
|
||||
"context" .Page
|
||||
"color" $color
|
||||
"content" $tabs
|
||||
"groupid" $groupid
|
||||
"icon" $icon
|
||||
"style" $style
|
||||
"title" $title
|
||||
) }}
|
Reference in New Issue
Block a user