Skip to content

Commit d3a647f

Browse files
committed
0.1.1
Fixes: - Linux compatibility
1 parent 2b9575f commit d3a647f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pester.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ Invoke-Pester -Configuration $config
1313
if (Test-Path -Path $Global:jacocoxml2htmlConfig.destination_directory) {
1414
Remove-Item -Path $Global:jacocoxml2htmlConfig.destination_directory -Recurse -Force
1515
}
16-
& .\constup-jacoco-xml-to-html -config .\config.ps1
16+
& .\constup-jacoco-xml-to-html.ps1 -config .\config.ps1

src/render.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function Render-Groups {
2525

2626
foreach ($group in $groups) {
2727
$groupName = $group.'@name'
28-
$destination = "$destinationDirectory\groups\$groupName.html"
28+
$destination = "$destinationDirectory/groups/$groupName.html"
2929
$directoryDepth = ($destination -split '[\\/]').Count - ($destinationDirectory -split '[\\/]').Count - 1
3030

3131
$content = Render-IndexPage `
@@ -78,7 +78,7 @@ function Render-Sourcefiles {
7878
)
7979
foreach ($sourcefile in $sourcefiles) {
8080
$sourcefileName = $sourcefile.'@name'
81-
$destination = "$destinationDirectory\sources\$sourcefileName.html"
81+
$destination = "$destinationDirectory/sources/$sourcefileName.html"
8282
$directoryDepth = ($destination -split '[\\/]').Count - ($destinationDirectory -split '[\\/]').Count - 1
8383
$sourceCodePath = (Resolve-Path "$sourcesDirectory/$sourcefileName").Path
8484
$sourceCode = Get-Content -Raw -Path $sourceCodePath
@@ -118,7 +118,7 @@ function Render-Packages {
118118

119119
foreach ($package in $packages) {
120120
$packageName = $package.'@name'
121-
$destination = "$destinationDirectory\packages\$packageName.html"
121+
$destination = "$destinationDirectory/packages/$packageName.html"
122122
$directoryDepth = ($destination -split '[\\/]').Count - ($destinationDirectory -split '[\\/]').Count - 1
123123

124124
$content = Render-IndexPage `

0 commit comments

Comments
 (0)