Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Docs/New-HTMLFrame.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ Allows to inline other HTML files into the current HTML file. This can be useful
```powershell
New-HTML {
New-HTMLSection {
New-HTMLFrame -SourcePath "$PSSCriptRoot\GPOZaurr.html" -Scrolling Auto
New-HTMLFrame -SourcePath "$PSScriptRoot/GPOZaurr.html" -Scrolling Auto
} -HeaderText 'Test'
New-HTMLSection {
New-HTMLFrame -SourcePath "$PSSCriptRoot\GPOZaurr.html" -Scrolling Auto -Height 1500px
New-HTMLFrame -SourcePath "$PSScriptRoot/GPOZaurr.html" -Scrolling Auto -Height 1500px
} -HeaderText 'Test'
New-HTMLSection {
New-HTMLFrame -SourcePath "C:\Support\GitHub\PSWriteHTML\Examples\Example-Maps\Example-Maps.html"
New-HTMLFrame -SourcePath "${PSScriptRoot}/../Example-Maps/Example-Maps.html"
} -HeaderText 'Test' -Height 100vh
} -Online -TitleText 'Test Inline' -ShowHTML -FilePath "$PSScriptRoot\Example-InlineHTML01.html" -AddComment
```
Expand Down
4 changes: 2 additions & 2 deletions Examples/Example-GenerateHelp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ New-HTML -TitleText 'This is a test' -FilePath "$PSScriptRoot\..\ShowMe.html" {
New-HTMLSection {
New-HTMLTree -Checkbox none {
New-HTMLTreeChildCounter -Deep -HideZero -HideExpanded
New-HTMLTreeFileNodes -Path 'C:\Support\GitHub\PSWriteHTML\Examples' -Filter *.html -IsExpanded
New-HTMLTreeFileNodes -Path $PSScriptRoot -Filter *.html -IsExpanded
} -EnableChildCounter -AutoScroll
New-HTMLSection -Invisible {
New-HTMLFrame -Name 'contentFrame' -Scrolling Auto -Height 550px
}
}
}
} -Online -ShowHTML
} -Online -ShowHTML
4 changes: 2 additions & 2 deletions Examples/Example-GenerateHelpCalendar.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Import-Module .\PSWriteHTML.psd1 -Force

$Files = Get-ChildItem -Path 'C:\Support\GitHub\PSWriteHTML\Examples' -Filter *.html -Recurse
$Files = Get-ChildItem -Path $PSScriptRoot -Filter *.html -Recurse

New-HTML -TitleText 'This is a test' -FilePath "$PSScriptRoot\ShowMeCalendar.html" {
New-HTMLSection -Invisible {
Expand Down Expand Up @@ -29,4 +29,4 @@ New-HTML -TitleText 'This is a test' -FilePath "$PSScriptRoot\ShowMeCalendar.htm
New-HTMLSection -Invisible {
New-HTMLFrame -Name 'contentFrame' -Scrolling Auto -Height 1500px
}
} -Online -ShowHTML
} -Online -ShowHTML
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

New-HTML {
New-HTMLSection {
New-HTMLFrame -SourcePath "$PSSCriptRoot\GPOZaurr.html" -Scrolling Auto
New-HTMLFrame -SourcePath "$PSScriptRoot/GPOZaurr.html" -Scrolling Auto
} -HeaderText 'Test'
New-HTMLSection {
New-HTMLFrame -SourcePath "$PSSCriptRoot\GPOZaurr.html" -Scrolling Auto -Height 1500px
New-HTMLFrame -SourcePath "$PSScriptRoot/GPOZaurr.html" -Scrolling Auto -Height 1500px
} -HeaderText 'Test'
New-HTMLSection {
New-HTMLFrame -SourcePath "C:\Support\GitHub\PSWriteHTML\Examples\Example-Maps\Example-Maps.html"
New-HTMLFrame -SourcePath "$PSScriptRoot/../Example-Maps/Example-Maps.html"
} -HeaderText 'Test' -Height 100vh
} -Online -TitleText 'Test Inline' -ShowHTML -FilePath "$PSScriptRoot\Example-InlineHTML01.html" -AddComment

Expand Down Expand Up @@ -42,4 +42,4 @@ function Set-HTMLInline {
}
}

Set-HTMLInline -FilePath 'C:\Support\GitHub\PSWriteHTML\Examples\Example-InlineOtherHTMLFile.ps1\GPOZaurr.html' -Search 'iframeResizer.contentWindow.min.js' -Replace '<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/davidjbradshaw/iframe-resizer@4.3.2/js/iframeResizer.contentWindow.min.js"></script>'
Set-HTMLInline -FilePath "$PSScriptRoot/GPOZaurr.html" -Search 'iframeResizer.contentWindow.min.js' -Replace '<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/davidjbradshaw/iframe-resizer@4.3.2/js/iframeResizer.contentWindow.min.js"></script>'
2 changes: 1 addition & 1 deletion Examples/Example-Table/Example7_02_DataStoreJava.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ $DataTable3 = @(

}
)
$DataTable3 | Out-HtmlView -FilePath C:\Support\GitHub\PSWriteHTML\Examples\Example-Table\Example7_02_DataStoreJava.html -Online -DataStore JavaScript
$DataTable3 | Out-HtmlView -FilePath "$PSScriptRoot/Example7_02_DataStoreJava.html" -Online -DataStore JavaScript
2 changes: 1 addition & 1 deletion Examples/Example39-TableColumnOption/Example39_01.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Import-Module "$PSSCriptRoot\..\..\PSWriteHTML.psd1" -Force
Import-Module "$PSScriptRoot/../../PSWriteHTML.psd1" -Force

$Process = Get-Process | Select-Object -First 20
$ProcessesLimited = $Process | Select-Object -Property Id, Name, PriorityClass, ProductVersion, Company, Path, Description
Expand Down
6 changes: 3 additions & 3 deletions Examples/Example41-Navigation01/Example41-Navigation01.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ New-HTML {
# This adds more pages with different content
New-HTMLPage -Name 'Page2' {
New-HTMLSection -Invisible {
New-HTMLFrame -SourcePath "C:\Support\GitHub\PSWriteHTML\Examples\Example-Maps\Example-Maps.html"
New-HTMLFrame -SourcePath "$PSScriptRoot/../Example-Maps/Example-Maps.html"
} -Height 93vh
}
New-HTMLPage -Name 'Page3' {
New-HTMLSection {
New-HTMLFrame -SourcePath "C:\Support\GitHub\PSWriteHTML\Examples\Example-InlineOtherHTMLFile.ps1\GroupMembership-CriticalGroups_2021-05-20_002030.html"
New-HTMLFrame -SourcePath "$PSScriptRoot/../Example-InlineOtherHTMLFile.ps1/GroupMembership-CriticalGroups_2021-05-20_002030.html"
} -HeaderText 'Test' -Height 100vh
}
} -ShowHTML -Online -FilePath $PSScriptRoot\Example41-Navigation01.html
} -ShowHTML -Online -FilePath $PSScriptRoot\Example41-Navigation01.html
2 changes: 0 additions & 2 deletions Private/Parameters.Configuration.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2201,5 +2201,3 @@
# 'JSXSS'
# 'Mermaid'
# )
# Import-Module "C:\Support\GitHub\PSWriteHTML.Helper\PSWriteHTML.Helper.psd1" -Force
# Save-HTMLResource -Configuration $Configuration -Keys $Keys -PathToSave 'C:\Support\GitHub\PSWriteHTML\Resources\CSS' -Verbose
8 changes: 4 additions & 4 deletions Public/New-HTMLFrame.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@
.EXAMPLE
New-HTML {
New-HTMLSection {
New-HTMLFrame -SourcePath "$PSSCriptRoot\GPOZaurr.html" -Scrolling Auto
New-HTMLFrame -SourcePath "$PSScriptRoot/GPOZaurr.html" -Scrolling Auto
} -HeaderText 'Test'
New-HTMLSection {
New-HTMLFrame -SourcePath "$PSSCriptRoot\GPOZaurr.html" -Scrolling Auto -Height 1500px
New-HTMLFrame -SourcePath "$PSScriptRoot/GPOZaurr.html" -Scrolling Auto -Height 1500px
} -HeaderText 'Test'
New-HTMLSection {
New-HTMLFrame -SourcePath "C:\Support\GitHub\PSWriteHTML\Examples\Example-Maps\Example-Maps.html"
New-HTMLFrame -SourcePath "${PSScriptRoot}/../Example-Maps/Example-Maps.html"
} -HeaderText 'Test' -Height 100vh
} -Online -TitleText 'Test Inline' -ShowHTML -FilePath "$PSScriptRoot\Example-InlineHTML01.html" -AddComment

Expand Down Expand Up @@ -95,4 +95,4 @@
} -NewLine
$Script
}
}
}