John MacFarlane
4410eb7e61
Don't regen flake.lock automatically
2026-07-24 00:24:01 +02:00
John MacFarlane
ef74647068
Fix make prerelease so it can accept things is stack.yaml
...
that are also in the resolver. (We need these for nix flake.)
2026-07-22 00:23:01 +02:00
John MacFarlane
42ab4f1c99
Makefile: Fix flake.lock rule.
2026-07-21 13:39:23 +02:00
John MacFarlane
6df62cb613
Add Makefile rule to update all-cabal-hashes in flake.lock.
2026-07-21 09:23:31 +02:00
John MacFarlane
54630ed3fe
Makefile CABALOPTS - set http.
2026-02-02 22:59:06 +01:00
John MacFarlane
51b54857f4
Makefile: add cabal update for pandoc.wasm.
2026-02-01 15:04:19 +01:00
John MacFarlane
a192f95aa9
Makefile: remove some obsolete targets.
2026-02-01 14:50:50 +01:00
John MacFarlane
4b26f50118
Add support for compiling pandoc.wasm.
...
'make pandoc.wasm' will compile a wasm version of pandoc.
This also adds a 'repl' flag to pandoc-lua-engine, so that
support for a Lua repl can be disabled for the wasm build.
A new wasm directory contains:
- pandoc.js, a JavaScript wrapper for pandoc.wasm
- index.html + index.js, a web app exposing all of pandoc's
functionality in a GUI interface
- a set of illustrative examples that can be loaded from the web app
Most of the code in index.html and index.js has been produced in
interaction with Claude code.
2026-02-01 14:50:50 +01:00
John MacFarlane
eea72420fc
Use ghc 9.10 (not 9.12) for releases and nightlies.
2025-12-11 23:07:06 +01:00
John MacFarlane
c04c5ad16d
Makefile: Use python3 in update-translations.
2025-11-02 15:40:09 +01:00
John MacFarlane
fb28952bec
Revise Makefile and CI treatment of --ghc-options.
...
Previously we set `--ghc-options` in Makefile and CI; but this
overrides the ghc-options set in the pandoc.cabal file.
Better to add options one-by-one using `--ghc-option`.
We no longer use GHC_OPTIONS and just put these extra options
in CABAL_OPTIONS.
2025-07-23 14:10:43 -07:00
John MacFarlane
b683726447
Makefile: add -Wall to ghc options.
2025-07-23 09:09:50 -07:00
John MacFarlane
241ddad023
Fix regexes in prelease check.
2025-05-28 15:30:17 -07:00
John MacFarlane
97b6e7660d
Makefile: tweaks in prerelease
2025-05-14 17:30:35 -07:00
John MacFarlane
f37b12d941
Use jq instead of json_reformat in validate-docx-golden-tests2.
2025-05-11 11:01:44 -07:00
John MacFarlane
bd7d5ae7f1
Makefile: fix typo in latex-package-dependencies target.
2025-05-11 10:41:25 -07:00
John MacFarlane
c355be2a8e
Makefile: use pandoc lua instead of lua.
...
Reduces dependencies.
2025-05-11 10:38:03 -07:00
John MacFarlane
de13b8338f
Makefile: install @daisy/ace from npm if not present.
2025-05-11 10:30:55 -07:00
Olivier Benz
a32a9ff7e9
Revert "Use int-native subtagged image ( #10799 )" ( #10804 )
...
This reverts commit a14997f92e .
2025-04-25 08:04:07 -07:00
Olivier Benz
a14997f92e
Use int-native subtagged image ( #10799 )
2025-04-23 10:39:33 -07:00
John MacFarlane
c589a89d8f
Tweaks to release process.
2025-04-09 11:22:43 -07:00
John MacFarlane
961b5642a2
Improve 'make authors'.
2025-04-08 14:52:24 -07:00
John MacFarlane
97a5285a4f
RELEASE-CHECKLIST-TEMPLATE.org: minor changes.
2025-04-08 13:44:28 -07:00
John MacFarlane
8303783a69
Makefile: rename version -> VERSION.
2025-04-08 13:27:52 -07:00
John MacFarlane
836ef914bc
Minor Makefile syntax.
2025-04-08 13:24:34 -07:00
John MacFarlane
20b2e5ff4e
Add Makefile target release-checkist.
...
Make RELEASE-CHECKLIST.org into RELEASE-CHECKLIST-TEMPLATE.org.
The makefile target will fill in version numbers in this template.
2025-04-07 11:53:36 -07:00
John MacFarlane
8e04bab8c1
Release builds: build with ghc 9.8.
2025-03-27 16:11:41 -06:00
John MacFarlane
7140861a0a
Makefile - ignore missing upper bounds in cabal check.
2025-03-16 11:00:40 -07:00
John MacFarlane
fc6e4956dd
Makefile: make make binpath quiet.
2025-01-31 09:07:22 -08:00
John MacFarlane
7b873ac790
Makefile add prof target
2024-12-20 10:01:01 -08:00
Stephen Huan
d945c989eb
Makefile: add update-translations target
2024-07-05 13:04:15 -07:00
John MacFarlane
23337fe9dc
Makefile: improve epub-validation target.
...
Use `--epub-cover-image` to catch issues that only arise with that.
See #9493 .
2024-02-22 23:12:15 -06:00
John MacFarlane
b506171578
Makefile: improve validate-epub.
2024-02-16 13:42:19 -08:00
John MacFarlane
9f8344d54e
Makefile: make validate-epub check v2 output too.
...
See #9469 .
2024-02-16 11:51:28 -08:00
Olivier Benz
822480c4c8
Use images from Quay ( #9411 )
2024-02-05 09:04:30 -08:00
John MacFarlane
2f45f1e232
Makefile: Validate generated EPUB as part of prerelease checks.
2024-01-30 08:33:16 -08:00
John MacFarlane
8b539dbf1d
Makefile: change default rule to build THEN test.
...
That way we can play with the executable while the tests complete.
2024-01-29 11:11:39 -08:00
John MacFarlane
6fe94a316a
make validate-epub - produce HTML ace report in ace subdirectory.
2024-01-27 10:57:27 -08:00
John MacFarlane
caa73134bc
Regenerate epub tests with latest changes to EPUB reader.
2024-01-27 10:34:00 -08:00
John MacFarlane
ebed209627
Add ace check to validate-epub Makefile target.
2024-01-26 10:48:48 -08:00
John MacFarlane
6533296fae
Fix make binpath target.
2024-01-05 14:50:27 -08:00
Edwin Török
c6892bec24
ci(validate-docx-golden-tests2): fail on errors
...
The validator just prints errors, but always exited with nonzero.
Signed-off-by: Edwin Török <edwin@etorok.net >
2023-12-19 15:00:23 -08:00
Edwin Török
95432d3f4e
test(docx): add workaround for mc:Ignorable
...
`make validate-docx-golden-tests` now passes
Fixes https://github.com/jgm/pandoc/issues/9269
Signed-off-by: Edwin Török <edwin@etorok.net >
2023-12-18 17:15:03 -08:00
Edwin Török
3e360f5a3e
test(Makefile): add validate-docx-golden-test2
...
Add a validation rule based on OOXML-Validator which uses the
Open-XML-SDK shipped and maintained as part of dotnet.
This catches a few more issues compared to the .xsd.
Unfortunately currently this executable always exits with 0 even when
validation failed. That can be fixed later by invoking it from a script.
Signed-off-by: Edwin Török <edwin@etorok.net >
2023-12-18 17:15:03 -08:00
Edwin Török
806740805d
fix(Makefile): make quick-stack was failing, "j" was expecting a number
...
Fixes:
```
pandoc-lua-engine> option -j: Could not parse num-threads
pandoc-lua-engine>
pandoc-lua-engine> Usage: test-pandoc-lua-engine [-p|--pattern PATTERN] [-t|--timeout DURATION]
pandoc-lua-engine> [-l|--list-tests] [-j|--num-threads NUMBER]
pandoc-lua-engine> [-q|--quiet] [--hide-successes]
pandoc-lua-engine> [--color never|always|auto] [--ansi-tricks ARG]
pandoc-lua-engine> [--accept] [--no-create] [--size-cutoff n]
pandoc-lua-engine> [--delete-output never|onpass|always]
```
Signed-off-by: Edwin Török <edwin@etorok.net >
2023-12-18 14:08:53 -08:00
John MacFarlane
0849baef1e
Add custom validate-docx.sh script.
...
This checks files other than document.xml in a docx container.
Thanks to @edwintorok.
2023-12-18 12:06:59 -08:00
John MacFarlane
1d2ccb41ed
Makefile: Run built pandoc (instead of pandoc in path).
2023-12-18 11:39:07 -08:00
John MacFarlane
4ed45d6447
Makefile: Add validate-epub target.
2023-12-18 11:35:18 -08:00
John MacFarlane
72b9b3b70f
Makefile: add validate-docx-golden-tests target.
2023-12-18 10:53:18 -08:00
John MacFarlane
24c50b9730
Makefile: add check that pandoc-cli depends on exact version of pandoc.
2023-12-12 13:40:42 -08:00