Skip to content

Commit

Permalink
feat: Making ColorTable an Include ( Fixes #35 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Feb 1, 2024
1 parent e6ec3df commit 38e5dc5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions docs/_includes/ColorTable.ps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
~~~PipeScript{
$colors = 'Black', 'Red', 'Green', 'Yellow', 'Blue', 'Purple', 'Cyan', 'White',
'BrightBlack', 'BrightRed', 'BrightGreen', 'BrightYellow', 'BrightBlue', 'BrightPurple', 'BrightCyan', 'BrightWhite'
[PSCustomObject]@{
Table = @(foreach ($n in 0..15) {
[PSCustomObject]@{
"CSS Class" = "ANSI$n"
Color = $colors[$n]
Sample = "<span class='ANSI$n'>*</span>"
}
})
}
}
~~~

3 changes: 2 additions & 1 deletion docs/index.ps.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ Get-Content .\4bitpreview.svg |
<a id='feelingLucky' href="javascript:feelingLucky(document.getElementById('themeSelector'))" class='padded'>
{% include shuffle-icon.svg %}
</a>

</div>

{% include ColorTable.md %}

~~~PipeScript{
$colors = 'Black', 'Red', 'Green', 'Yellow', 'Blue', 'Purple', 'Cyan', 'White',
'BrightBlack', 'BrightRed', 'BrightGreen', 'BrightYellow', 'BrightBlue', 'BrightPurple', 'BrightCyan', 'BrightWhite'
Expand Down

0 comments on commit 38e5dc5

Please sign in to comment.