Skip to content

Commit

Permalink
feat: 4bitcss json files and credits ( Fixes #79, Fixes #80 )
Browse files Browse the repository at this point in the history
Fixing json pathing
  • Loading branch information
James Brundage committed Oct 18, 2024
1 parent 17e2898 commit 5827492
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Build/4bitcss.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,18 @@ foreach ($jsonFile in $jsonFiles) {
$jsonPath = (Join-Path $pwd json)
# Export the theme to /css (so that repo-based CDNs have a logical link)
$jsonObject | Export-4BitCSS -OutputPath $cssPath -OutVariable colorSchemeCssFile
$jsonObject | Export-4BitJSON -OutputPath $jsonPath -OutVariable colorSchemeJsonFile
$jsonObject | Export-4BitJSON -OutputPath (
Join-Path $jsonPath "$colorSchemeFileName.json"
) -OutVariable colorSchemeJsonFile
$ColorSchemePath = Join-Path $docsPath $colorSchemeFileName
if (-not (Test-Path $ColorSchemePath)) {
$null = New-Item -ItemType Directory -Path $ColorSchemePath
}
# Then export it again to /docs (so the GitHub page works)
$jsonObject | Export-4BitCSS -OutputPath $ColorSchemePath
$jsonObject | Export-4BitJSON -OutputPath $jsonPath
$jsonObject | Export-4BitJSON -OutputPath (
Join-Path $ColorSchemePath "$colorSchemeFileName.json"
) -OutVariable colorSchemeJsonFile
$dotTextPath = Join-Path $ColorSchemePath "$colorSchemeFileName.txt"
$distinctColors -join ';' | Set-Content -Path $dotTextPath -Encoding utf8
Get-Item -Path $dotTextPath
Expand Down
1 change: 0 additions & 1 deletion json

This file was deleted.

0 comments on commit 5827492

Please sign in to comment.