From 38e5dc51820d3a796488a0c91bc013bef070bb7a Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Thu, 1 Feb 2024 12:47:52 -0800 Subject: [PATCH] feat: Making ColorTable an Include ( Fixes #35 ) --- docs/_includes/ColorTable.ps.md | 16 ++++++++++++++++ docs/index.ps.markdown | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 docs/_includes/ColorTable.ps.md diff --git a/docs/_includes/ColorTable.ps.md b/docs/_includes/ColorTable.ps.md new file mode 100644 index 0000000000..df40016f3b --- /dev/null +++ b/docs/_includes/ColorTable.ps.md @@ -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 = "*" + } + }) +} + +} +~~~ + diff --git a/docs/index.ps.markdown b/docs/index.ps.markdown index cc1ca77e36..52d00ff83b 100644 --- a/docs/index.ps.markdown +++ b/docs/index.ps.markdown @@ -22,9 +22,10 @@ Get-Content .\4bitpreview.svg | {% include shuffle-icon.svg %} - +{% include ColorTable.md %} + ~~~PipeScript{ $colors = 'Black', 'Red', 'Green', 'Yellow', 'Blue', 'Purple', 'Cyan', 'White', 'BrightBlack', 'BrightRed', 'BrightGreen', 'BrightYellow', 'BrightBlue', 'BrightPurple', 'BrightCyan', 'BrightWhite'