diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-14 20:42:20 +0800 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-14 20:42:20 +0800 |
| commit | 8489f70166c99f1cc6fb2eba38446fd615909437 (patch) | |
| tree | 4042558e9254f719d4cae1caa8089597e9197103 | |
| parent | dc86a4c2bf6a87c06cd5a1f32bd69fdb0a20781a (diff) | |
docs(build): document Pandoc download with wget in MINGW64
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
| -rw-r--r-- | doc/build.md | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/doc/build.md b/doc/build.md index 1af8a81..d686689 100644 --- a/doc/build.md +++ b/doc/build.md @@ -260,16 +260,21 @@ macOS: HOMEBREW_CACHE="$PWD/build/deps/packages" brew fetch --force-bottle pandoc gmp ``` -Windows has no MSYS2 Pandoc package. Download the official x86_64 ZIP from -PowerShell, without running an installer: +Windows has no MSYS2 Pandoc package. After configuring the build above, run +these commands in the MSYS2 MINGW64 shell to download the official x86_64 ZIP +and generate the manual without running an installer: -```powershell -New-Item -ItemType Directory -Force build/deps/packages | Out-Null -$release = Invoke-RestMethod https://api.github.com/repos/jgm/pandoc/releases/latest -$asset = $release.assets | Where-Object { $_.name -like 'pandoc-*-windows-x86_64.zip' } -Invoke-WebRequest -UseBasicParsing $asset.browser_download_url -OutFile "build/deps/packages/$($asset.name)" +```bash +mkdir -p build/deps/packages +wget -O build/deps/packages/pandoc-3.12.1-windows-x86_64.zip \ + https://github.com/jgm/pandoc/releases/download/3.12.1/pandoc-3.12.1-windows-x86_64.zip +cmake -S . -B build +mingw32-make -C build doc ``` +CMake extracts the ZIP into `build/deps/root/` during reconfiguration and finds +the local Pandoc automatically. + The ZIP is provided on the [official Pandoc download page](https://pandoc.org/installing.html). Reconfigure using your platform's build command above, then generate the manual: |
