Skip to content

Commit

Permalink
chore: Moving 4bitcss.PSSVG into /Build ( Fixes #45 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Apr 20, 2024
1 parent 175ffe9 commit bb2731d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions 4bitcss.PSSVG.ps1 → Build/4bitcss.PSSVG.ps1
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#requires -Module PSSVG
Push-Location $PSScriptRoot
Push-Location ($PSScriptRoot | Split-Path)


$assetsRoot = Join-Path $PSScriptRoot "Assets"
$assetsRoot = Join-Path $pwd "Assets"
if (-not (Test-Path $assetsRoot)) {
$null = New-Item -ItemType Directory -Path $assetsRoot
}

$docsRoot = Join-Path $PSScriptRoot "docs"
$docsRoot = Join-Path $pwd "docs"
if (-not (Test-Path $docsRoot)) {
$null = New-Item -ItemType Directory -Path $docsRoot
}
Expand All @@ -24,8 +24,8 @@ $fontSettings = [Ordered]@{
}

$assetFile =
=<svg> -ViewBox 400,400 @(
=<svg.defs> @(
svg -ViewBox 400,400 @(
svg.defs @(
SVG.GoogleFont -FontName Abel
)

Expand All @@ -42,9 +42,9 @@ $assetFile =
$assetFile
$assetFile | Copy-Item -Destination (Join-Path $docsRoot .\4bitcss.svg) -PassThru

=<svg> -ViewBox 640, 640 @(
svg -ViewBox 640, 640 @(
foreach ($n in 16..1) {
=<svg.rect> -X (
svg.rect -X (
((16 - $n - 1 ) * 20)
) -Y (
((16 - $n - 1 ) * 20)
Expand Down

0 comments on commit bb2731d

Please sign in to comment.