Skip to content

Commit 50c909d

Browse files
feat: `psturtle.com taskbar help ( Fixes #166 )
1 parent cf136fb commit 50c909d

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

psturtle.com/config.ps1

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ $Site.Description = 'Turtles in a PowerShell'
9999
$Site.Icon = [Ordered]@{
100100
'GitHub' = . $site.includes.Feather 'GitHub'
101101
'RSS' = . $site.includes.Feather 'RSS'
102+
'Settings' = . $site.includes.Feather 'Settings'
103+
'Help' = . $site.includes.Feather 'Help-Circle'
102104
}
103105
#endregion Site Icons
104106

@@ -126,6 +128,23 @@ $site.Taskbar = [Ordered]@{
126128
# 'BlueSky' = 'https://bsky.app/profile/mrpowershell.com'
127129
'GitHub' = 'https://github.com/PowerShellWeb/Turtle'
128130
'RSS' = 'https://psturtle.com/RSS/index.rss'
131+
'Help' = @(
132+
if ($site.Module) {
133+
"<h3>Installing</h3>"
134+
"<pre><code>Install-Module $($site.Module)</code></pre>"
135+
"<h3>Updating</h3>"
136+
"<pre><code>Install-Module $($site.Module) -Force</code></pre>"
137+
"<h3>Importing</h3>"
138+
"<pre><code>Import-Module $($site.Module)</code></pre>"
139+
"<h3>Basics</h3>"
140+
"<pre><code>turtle polygon 42 6</code></pre>"
141+
"$(turtle polygon 42 6)"
142+
"<h3>Fractals</h3>"
143+
"<pre><code>turtle SierpinskiTriangle 42 3</code></pre>"
144+
"$(turtle SierpinskiTriangle 42 3)"
145+
"<h3><a href='/Commands/Get-Turtle'>More Examples</a></h3>"
146+
}
147+
) -join [Environment]::NewLine
129148
}
130149

131150
<#$site.HeaderMenu = [Ordered]@{
@@ -298,7 +317,7 @@ $siteBackground = $sitebackgrounds | Get-Random
298317
$backgroundTurtle = . $siteBackground
299318
$site.Background = $backgroundTurtle |
300319
Set-Turtle PatternAnimation $backgroundPatternAnimations |
301-
Set-Turtle PathAttribute @{opacity=.2} |
320+
Set-Turtle PathAttribute @{opacity=.1} |
302321
Select-Object -ExpandProperty Pattern
303322

304323
$pngPreviewFile = 'Preview.png'

0 commit comments

Comments
 (0)