Skip to content

Commit

Permalink
fix: Fixing Nested Permalinks ( Fixes #30 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Jan 15, 2024
1 parent 511b133 commit 8f5ffae
Show file tree
Hide file tree
Showing 947 changed files with 4 additions and 70,347 deletions.
7 changes: 4 additions & 3 deletions 4bitcss.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ foreach ($jsonFile in $jsonFiles) {
# and determine the name of the scheme and it's files.
$colorSchemeName = $jsonObject.Name
$colorSchemeFileName =
$jsonObject.Name -replace '\s','_' -replace '\p{P}','-' -replace '-+','-' -replace '-$'
$jsonObject.Name -replace '\s','-' -replace '\p{P}','-' -replace '-+','-' -replace '-$'
# If the name wasn't there, continue.
if (-not $jsonObject.Name) { continue }
# If it wasn't legal, continue.
Expand Down Expand Up @@ -76,11 +76,12 @@ foreach ($jsonFile in $jsonFiles) {
$previewFilePath = Join-Path $ColorSchemePath "$colorSchemeFileName.md"
@"
---
stylesheet: $colorSchemeFileName.css
stylesheet: /$colorSchemeFileName/$colorSchemeFileName.css
colorSchemeName: $colorSchemeName
colorSchemeFileName: $colorSchemeFileName
image: $colorSchemeFileName.png
image: /$colorSchemeFileName/$colorSchemeFileName.png
description: $colorSchemeName color scheme
permalink: /$colorSchemeFileName/
---
$transpiledText
"@ |
Expand Down
53 changes: 0 additions & 53 deletions docs/3024-Day/3024-Day.md

This file was deleted.

27 changes: 0 additions & 27 deletions docs/3024-Day/3024-Day.svg

This file was deleted.

143 changes: 0 additions & 143 deletions docs/3024-Day/3024Day.css

This file was deleted.

53 changes: 0 additions & 53 deletions docs/3024-Night/3024-Night.md

This file was deleted.

Loading

0 comments on commit 8f5ffae

Please sign in to comment.