Skip to content

Commit

Permalink
Use cascadia code in site
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunLawrie committed Mar 20, 2024
1 parent f2bec10 commit 5b8730d
Show file tree
Hide file tree
Showing 35 changed files with 118 additions and 49 deletions.
Binary file not shown.
10 changes: 6 additions & 4 deletions PwshSpectreConsole.Docs/src/content/docs/guides/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ Write-SpectreHost "Your chosen color is '$color'"
src={readspectreselectionExample1}
settings={{
loop: false,
poster: 'npt:0:0',
terminalLineHeight: 1.1,
theme: "spectre"
theme: "spectre",
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand All @@ -64,9 +65,10 @@ Write-SpectreHost "Your favourite fruits are $($chosenItems -join ', ')"
src={readspectremultiselectionExample1}
settings={{
loop: false,
poster: 'npt:0:0',
terminalLineHeight: 1.1,
theme: "spectre"
theme: "spectre",
fit: "none",
terminalFontFamily: "'Cascadia CodeCascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ Write-SpectreRule "This is a rule with a specified color" -Color "Yellow"
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ Write-SpectreHost "Result:`n$result"
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ Write-SpectreHost "Result:`n$result"
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ Get-SpectreDemoColors -Count 4
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ Get-SpectreDemoEmoji -Count 5
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ Format-SpectreBarChart -Data $data -Title "Fruit Sales" -Width 50
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ Format-SpectreBreakdownChart -Data $data -Width 50
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ Format-SpectreJson -Data $data -Title "Employee Data" -Border "Rounded" -Color "
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ Format-SpectrePanel -Data "Hello, world!" -Title "My Panel" -Border "Rounded" -C
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>
> EXAMPLE 2
Expand All @@ -47,7 +48,8 @@ Format-SpectrePanel -Data "Hello, big panel!" -Title "My Big Panel" -Border "Dou
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ Format-SpectreTable -Data $data
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>
> EXAMPLE 2
Expand All @@ -60,7 +61,8 @@ Get-ChildItem | Format-SpectreTable -Property $Properties -AllowMarkup
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>
> EXAMPLE 3
Expand All @@ -74,7 +76,8 @@ Get-ChildItem | Format-SpectreTable -Property $Properties -AllowMarkup
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ Format-SpectreTree -Data $data -Guide BoldLine -Color "Green"
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ $data | Format-SpectreBreakdownChart
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ Get-SpectreImage -ImagePath "..\..\..\PwshSpectreConsole\private\images\smiley.p
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ Get-SpectreImageExperimental -ImagePath "..\..\..\PwshSpectreConsole\private\ima
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>
> EXAMPLE 2
Expand All @@ -55,7 +56,8 @@ Get-SpectreImageExperimental -ImagePath "..\..\..\PwshSpectreConsole\private\ima
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ $jobOutcomes | Format-SpectreTable -Property Id, Name, PSJobTypeName, State, Com
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ Invoke-SpectreCommandWithProgress -ScriptBlock {
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>
> EXAMPLE 2
Expand Down Expand Up @@ -90,7 +91,8 @@ Invoke-SpectreCommandWithProgress -ScriptBlock {
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>
> EXAMPLE 3
Expand All @@ -113,7 +115,8 @@ Write-SpectreHost "Result: $result"
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>
> EXAMPLE 4
Expand Down Expand Up @@ -143,7 +146,8 @@ Write-SpectreHost "Result: $result"
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ Write-SpectreHost "Result: $result"
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ Write-SpectreHost "Result: $result"
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ Invoke-SpectreCommandWithProgress -ScriptBlock {
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ Write-Host "Your answer was '$answer'"
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ Write-SpectreHost "Your favourite fruits are $($fruits -join ', ')"
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ Write-SpectreHost "Your favourite colors are $($selected -join ', ')"
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ Read-SpectrePause -Message "Press the [red]enter[/] key to continue, when you pr
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>
> EXAMPLE 2
Expand All @@ -49,7 +50,8 @@ Read-SpectrePause -Message "Press the [red]ANY[/] key to continue, when you pres
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ Write-SpectreHost "Your chosen color is '$color'"
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ Write-SpectreHost "Your name is '$name'"
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>
> EXAMPLE 2
Expand All @@ -57,7 +58,8 @@ Write-SpectreHost "Your favourite color is '$favouriteColor'"
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>
> EXAMPLE 3
Expand All @@ -73,7 +75,8 @@ Write-SpectreHost "Your favourite color is '$favouriteColor'"
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ Format-SpectrePanel -Title "Unescaped data" -Data "I want escaped $($data | Get-
loop: false,
terminalLineHeight: 1.1,
theme: "spectre",
fit: "none"
fit: "none",
terminalFontFamily: "'Cascadia Code', monospace"
}}
/>

Expand Down
Loading

0 comments on commit 5b8730d

Please sign in to comment.