You've already forked SharedScripts
mirror of
https://github.com/jaapbrasser/SharedScripts.git
synced 2026-04-18 19:01:56 +02:00
Merge branch 'master' into jaap-dev
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
function New-GitHubMarkdownIndex {
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Function to generate an index to be used in markdown files
|
||||
#>
|
||||
param(
|
||||
# The path of the file structure that will be mapped in markdown
|
||||
[string] $Path = 'C:\Temp\Events',
|
||||
@@ -18,7 +22,7 @@ function New-GitHubMarkdownIndex {
|
||||
$_
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$BuildMarkDown = {
|
||||
Get-ChildItem -LiteralPath $Path | ForEach-Object {
|
||||
$GHPath = $_.FullName -replace [regex]::Escape($Path) -replace '\\','/' -replace '\s','%20'
|
||||
@@ -41,4 +45,4 @@ function New-GitHubMarkdownIndex {
|
||||
$BuildMarkDown.Invoke() | clip.exe
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user