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
John MacFarlane
6e8fcda326
Makefile: add more prerelease checks.
...
Check for agreement of pandoc and pandoc-cli version.
Check for presence of changelog entry for this version.
Check that man pages specify this version.
2023-12-12 13:33:00 -08:00
John MacFarlane
55227a2027
Move man pages to pandoc-cli package.
...
Closes #9245 .
2023-12-09 09:55:13 -08:00
John MacFarlane
5fe3396a22
Add Makefile targets for pandoc-lua.1, pandoc-server.1.
...
Regenerate these man pages.
2023-08-31 17:57:01 -07:00
John MacFarlane
19385e1833
Clean up pandoc's own man page.
2023-08-31 17:49:30 -07:00
John MacFarlane
ccf72ddbd3
Set GHCOPTS and CABALOPTS in debpkg target.
2023-08-31 12:38:42 -07:00
John MacFarlane
889dcbe99c
Use ghc 9.6 for release builds.
...
See #8947 .
2023-08-04 13:54:04 -07:00
John MacFarlane
ca0564084a
Switch back to using ghc 9.2 for linux binary releases.
...
This should address the problem noted in #8947 . With ghc 9.4+,
we were getting AVX instructions in the amd64 binary, which aren't
supported on older hardware. For maximum compatibility we switch
back to ghc 9.2, which doesn't cause the problem. However, we haven't
fully diagnosed the problem, and as documented ghc shouldn't be doing
this.
Note that this doesn't fix the similar problem for the Windows
build (#8955 ), since that uses stack; we'd need to switch to cabal or
use an older version of stackage lts.
2023-07-17 22:40:37 -07:00
John MacFarlane
1d9112f602
Makefile: use -j instead of -j4
2023-06-28 15:17:48 -07:00
Olivier Benz
7cca27b67d
Use ghc-musl 9.6.2 docker image ( #8701 )
2023-06-26 09:12:31 -07:00
Olivier Benz
39d7d7afba
Use ghc-musl 9.4.5 docker image
2023-04-20 09:39:03 -07:00
Albert Krewinkel
ec1a06f5ef
lua-filters.md: autogenerate parts of the Lua API docs
2023-03-19 12:33:04 +01:00
John MacFarlane
c4e7723101
Linux builds: Update ghc-musl URL.
2023-03-14 09:56:35 -07:00
John MacFarlane
80c045fb02
Makefile: use -f-export-dynamic in CABALOPTS
...
This is helpful when building in nix shell.
2023-01-23 12:48:49 -08:00
John MacFarlane
8522676a11
Makefile: master -> main.
2023-01-12 12:05:21 -08:00
Olivier Benz
c4995fea41
Use ghc4pandoc 9.4.4 docker image
2023-01-04 07:58:41 -08:00
Olivier Benz
0eda40c93a
Use ghc4pandoc 9.4.3 docker image ( #8420 )
2022-11-04 08:52:33 -07:00
John MacFarlane
487d8003a5
Improve 'make lint'.
2022-10-30 12:39:37 -07:00
John MacFarlane
c7af10fe89
hlint suggestions.
2022-10-30 12:37:19 -07:00
John MacFarlane
55b8d0abee
make lint: remove apply-refact
2022-10-30 11:01:58 -07:00
John MacFarlane
9d8d1a0b9e
Use ghc4pandoc 9.4.2 docker image.
2022-10-28 09:19:13 -07:00
John MacFarlane
af12b56d06
Makeflie: add hie.yaml target.
2022-10-20 20:05:50 -07:00
John MacFarlane
db189498a8
Makefile: improve linecounts target.
2022-10-19 15:33:21 -07:00
John MacFarlane
656c329c3b
Makefile: exclude tests from SOURCEFILES
2022-10-19 13:34:46 -07:00
John MacFarlane
5faa6d22db
Makefile: and linecounts target
2022-10-19 13:33:32 -07:00
John MacFarlane
fc8b0c4540
Add repl target to Makefile
2022-10-19 13:07:13 -07:00
John MacFarlane
e10d6d8ff6
Makefile: make sure we run tests for pandoc-lua-engine too
2022-10-19 10:48:25 -07:00
John MacFarlane
4de3a9c2ca
Add tools/latex-package-dependencies.lua.
2022-10-17 21:59:44 -07:00
John MacFarlane
276335bcea
Makefile: add ghcid target
2022-10-16 19:57:16 -07:00
John MacFarlane
fa450607a8
Makefile: fix .PHONY for test and build.
2022-10-16 14:59:22 -07:00
John MacFarlane
c8ef079c0f
Makefile: hide command output for make binpath.
...
This allows:
alias pandoc=`make binpath`
for convenient local testing of a build.
2022-10-16 11:30:26 -07:00
John MacFarlane
d348dfa39e
'make help': add environment variables and default values.
2022-10-16 11:29:07 -07:00