Skip to content

update \C description #786

update \C description

update \C description #786

Workflow file for this run

name: Build Static HTML For Verification
on: [pull_request, workflow_dispatch]
jobs:
build:
runs-on: windows-latest
steps:
- name: 🚚 Checkout repo
uses: actions/checkout@v4
- name: 📡 Install hugo extended and httrack via chocolatey
working-directory: .
run: |
choco install hugo-extended --version 0.57.2
choco install httrack
- name: 🔨 Build static HTML for site
working-directory: .
run: |
cmd /c start hugo.exe server --theme book
$env:Path += ";C:\Program Files\WinHTTrack\"
httrack.exe "http://127.0.0.1:1313/" -O "./httrack_output"
Set-Location -Path httrack_output
Rename-Item -Path 127.0.0.1_1313 -NewName nppUserManual
Get-ChildItem -Recurse "./nppUserManual" -Filter index.html | Foreach-Object {
$orgname = $_.FullName
$tmpname = "$($orgname).unedited"
echo $tmpname
Copy-Item $orgname $tmpname
get-content $tmpname |
%{$_ -replace 'id="book-search-input" maxlength="64" readonly','id="book-search-input" maxlength="64" readonly hidden'} |
%{$_ -replace 'href="http://localhost:1313/"','href="./index.html"'} |
%{$_ -replace 'href="http://localhost:1313/','href="'} |
set-content $orgname
Remove-Item $tmpname
}
- name: 🎉 Store zipfile as artifact
uses: actions/upload-artifact@v4
with:
name: nppUserManual
path: ./httrack_output/nppUserManual/