Commit graph

14264 commits

Author SHA1 Message Date
John MacFarlane
87eb8dfda4 Revert the -j related changes in make_artifacts.sh.
This led to very slow build times.
2021-03-18 14:59:50 -07:00
John MacFarlane
4c51fa1d55 Change -A256m to -A8m in GHCOPTS 2021-03-18 13:07:54 -07:00
John MacFarlane
c7230182a0 pandoc.cabal: bake in -A8m to rtsopts.
This reserves a larger allocation area and reduces GC,
speeding up execution.
2021-03-18 11:02:46 -07:00
John MacFarlane
0012750c42 build-arm.sh : remove strict checking on first ssh access 2021-03-18 10:22:49 -07:00
John MacFarlane
89a89a8cf3 make_artifacts.sh: try using -j for cabal rather than -j4 ghc-options. 2021-03-18 09:14:12 -07:00
John MacFarlane
27d7652329 Use random 1.2.0 in stack.yaml. 2021-03-17 22:49:50 -07:00
John MacFarlane
c3f9e8c122 Docx writer: make nsid in abstractNum deterministic.
Previously we assigned a random number (though in a deterministic
way).  But changes in the random package mean we get different
results now on different architectures, even with the same random
seed. We don't need random values; so now we just assign a value
based on the list number id, which is guaranteed to be unique
to the list marker.
2021-03-17 22:31:20 -07:00
Alexey Kuleshevich
613c070cbd
Update bounds for random (#7156) 2021-03-17 18:57:32 -07:00
John MacFarlane
0075a456cc Fix benchmark in ci. 2021-03-17 17:08:42 -07:00
John MacFarlane
c6e5cf2e74 Benchmark improvements.
* Build `+RTS -A256m -RTS` into default ghc-options for benchmark,
  so we don't have to specify this separately on the command line.
  This is necessary to get accurate benchmark results; otherwise
  we are largely measuring garbage collecting, some not related
  to the current benchmark.
* Switch back from gauge to tasty-bench.
* Allow specifying BASELINE file in 'make bench' for comparison
  (otherwise the latest is chosen by default).
* Remove obsolete reference to weigh-pandoc from CONTRIBUTING.md.
* Remove `-Rghc-timing` from 'make bench'.
2021-03-17 13:34:17 -07:00
John MacFarlane
84836719aa Makefile: Add comment documenting benchmark settings. 2021-03-17 09:25:39 -07:00
John MacFarlane
7bf4be04b0 Fix regression with tex_math_backslash in Markdown reader.
Added regression test.  Closes #7155.
2021-03-17 09:10:44 -07:00
John MacFarlane
e66bf891ec Add test for #7155. 2021-03-17 09:10:37 -07:00
John MacFarlane
0b1869fd42 Remove unnecessary tasty-bench from extra-deps 2021-03-17 09:01:43 -07:00
John MacFarlane
f54e218bf8 Revert "Makefile: add --static to quick target"
This reverts commit 6075b17ae1.
2021-03-17 08:57:25 -07:00
John MacFarlane
6075b17ae1 Makefile: add --static to quick target 2021-03-16 18:04:39 -07:00
John MacFarlane
956355f821 Disable redundant brackets check in .hlint.yaml. 2021-03-16 16:01:30 -07:00
John MacFarlane
1ef3534328 Increase heap space in runtime for benchmarks.
Otherwise we're essentially benchmarking garbage collecting,
which can give very inconsistent results.
2021-03-16 15:59:50 -07:00
John MacFarlane
94c917c13f Use -j4 for linux release build. 2021-03-16 13:16:29 -07:00
John MacFarlane
2e6561fe91 .hlint.yaml - fix more false positives for redundant brackets. 2021-03-16 13:12:40 -07:00
John MacFarlane
fdaa56cbcd Makefile: set -j4 in default GHCOPTS 2021-03-16 13:08:32 -07:00
John MacFarlane
7698918330 make quick: re-use GHCOPTS for tests 2021-03-16 13:08:01 -07:00
John MacFarlane
b6b40de7fc Use BENCHARGS in 'make bench'. 2021-03-16 13:07:37 -07:00
John MacFarlane
a366e2b574 cabal.project: remove -j, which means -j1! 2021-03-16 13:06:38 -07:00
John MacFarlane
5ae8b8e586 Update .hlint.yaml to avoid false positives on redundant brackets.
These brackets are not redundant, it's a bug in hlint:

    $(deriveJSON ... )
2021-03-16 13:05:56 -07:00
John MacFarlane
87538966a0 Removed unused LANGUAGE pragmas. 2021-03-16 13:05:29 -07:00
John MacFarlane
2770f88d53 Fix benchmark CI to use gauge options. 2021-03-16 13:01:38 -07:00
John MacFarlane
d0af5795f1 make quick: use -j4 to speed up build 2021-03-16 10:38:51 -07:00
Florian Kohrt
afa801ed3f
Remove JS comment from HTML (#7154)
Illegal, turn into HTML comment
2021-03-16 09:20:54 -07:00
Albert Krewinkel
84b7a15375
CONTRIBUTING: suggest using a cabal.project.local file (#7153) 2021-03-16 08:34:38 -07:00
John MacFarlane
ff0fcedcb3 Switch to gauge for now for benchmarks.
tasty-bench is displaying odd behavior, with different
timings depending on the `--pattern` specified.
2021-03-15 22:50:18 -07:00
Bodigrim
d94f9b930a Force readFile in benchmarks early 2021-03-15 18:50:21 -07:00
John MacFarlane
78775751d9 Add compiler timings to 'make bench' 2021-03-15 18:50:21 -07:00
John MacFarlane
63a6059790 Update tests for new texmath. 2021-03-15 18:22:38 -07:00
John MacFarlane
5f94dd74f1 Require texmath 0.12.2 2021-03-15 15:36:57 -07:00
John MacFarlane
a9ef6b4380 Use doclayout 0.3.0.2.
This further reduces time and memory needed to compile pandoc.
2021-03-15 15:35:15 -07:00
John MacFarlane
805d12ac9c Remove an unneeded import 2021-03-15 14:21:52 -07:00
John MacFarlane
24191a2a27 Use foldl' instead of foldl everywhere. 2021-03-15 10:37:35 -07:00
John MacFarlane
39934c8851 Require latest doclayout and skylighting. 2021-03-14 15:48:01 -07:00
John MacFarlane
3622097da3 Handle 'nocite' better with --biblatex and --natbib.
Previously the nocite metadata field was ignored with
these formats.  Now it populates a `nocite-ids` template
variable and causes a `\nocite` command to be issued.

Closes #4585.
2021-03-14 00:10:37 -08:00
John MacFarlane
c55a73b642 Use latest dev version of doclayout.
This reduces compile time/memory consumption for pandoc considerably.
See jgm/doclayout#1.
2021-03-14 00:10:37 -08:00
Albert Krewinkel
35688c4262
T.P.App.FormatHeuristics: shorten code, improve docs. 2021-03-13 22:06:43 +01:00
John MacFarlane
35b66a7671 MediaWiki reader: Allow block-level content in notes (ref).
Closes #7145.
2021-03-13 12:50:44 -08:00
John MacFarlane
eed18d231c Use integral values for w:tblW in docx.
Cloess #7141.
2021-03-13 12:05:52 -08:00
John MacFarlane
9bd36b03e9 Add ghcid-test to Makefile 2021-03-13 11:58:31 -08:00
John MacFarlane
3519d6f3b4 Use eciteproc >= 0.3.0.9 2021-03-13 11:27:05 -08:00
Albert Krewinkel
777f8ec20b
stack.yaml: add jira-wiki-markup-1.3.4 to extra-deps 2021-03-13 15:41:47 +01:00
Albert Krewinkel
f8b49e77f8
Use jira-wiki-markup 1.3.4
Jira reader:

* Fixed parsing of autolinks (i.e., of bare URLs in the text).
  Previously an autolink would take up the rest of a line, as spaces
  were allowed characters in these items.

* Emoji character sequences no longer cause parsing failures. This was
  due to missing backtracking when emoji parsing fails.

Jira writer:

* Block quotes are only rendered as `bq.` if they do not contain a
  linebreak.
2021-03-13 14:53:58 +01:00
Albert Krewinkel
00e8d0678e
Jira reader: mark divs created from panels with class "panel".
Closes: tarleb/jira-wiki-markup#2
2021-03-13 14:29:47 +01:00
Albert Krewinkel
a8aa301428
Jira writer: improve div/panel handling
Include div attributes in panels, always render divs with class `panel`
as panels, and avoid nesting of panels.
2021-03-13 12:10:02 +01:00