Skip to content

Commit

Permalink
added support for more doc
Browse files Browse the repository at this point in the history
  • Loading branch information
on committed Aug 26, 2024
1 parent d22c2a2 commit cfcaf05
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/feide-microsoft.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
![alt text](feide-microsoft.gif)
![Login GIF](feide-microsoft.gif)
![Login GIF](feide-microsoft.gif)
![Login GIF](doc/feide-microsoft.gif)
13 changes: 13 additions & 0 deletions generate-readme.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,19 @@ foreach ($file in $userJsFiles) {
}
$scriptList += " - **Match:** ``$match```n"
$scriptList += " - **Description:** $description`n"

$baseName = $file.Name -replace '\.user\.js$', ''

if (Test-Path "doc/$baseName.md") {
$scriptList += "`n"
$extraDoc = Get-Content "doc/$baseName.md"

# Replace relative image links with absolute links
$extraDoc = $extraDoc -replace '\!\[(.+)\]\((?!doc\/)(.+)\)', '![$1](doc/$2)'

$scriptList += $extraDoc
}

}

#$tableRows | ForEach-Object { Write-Output $_ }
Expand Down

0 comments on commit cfcaf05

Please sign in to comment.