Commit graph

236 commits

Author SHA1 Message Date
John MacFarlane
ce13579f8d Travis rc build: only copy pandoc executable. 2020-10-11 00:02:26 -07:00
John MacFarlane
e0984a43a9 Add built-in citation support using new citeproc library.
This deprecates the use of the external pandoc-citeproc
filter; citation processing is now built in to pandoc.

* Add dependency on citeproc library.
* Add Text.Pandoc.Citeproc module (and some associated unexported
  modules under Text.Pandoc.Citeproc).  Exports `processCitations`.
  [API change]
* Add data files needed for Text.Pandoc.Citeproc:  default.csl
  in the data directory, and a citeproc directory that is just
  used at compile-time.  Note that we've added file-embed as a mandatory
  rather than a conditional depedency, because of the biblatex
  localization files. We might eventually want to use readDataFile
  for this, but it would take some code reorganization.
* Text.Pandoc.Loging: Add `CiteprocWarning` to `LogMessage` and use it
  in `processCitations`. [API change]
* Add tests from the pandoc-citeproc package as command tests (including
  some tests pandoc-citeproc did not pass).
* Remove instructions for building pandoc-citeproc from CI and
  release binary build instructions.  We will no longer distribute
  pandoc-citeproc.
* Markdown reader: tweak abbreviation support.  Don't insert a
  nonbreaking space after a potential abbreviation if it comes right before
  a note or citation.  This messes up several things, including citeproc's
  moving of note citations.
* Add `csljson` as and input and output format. This allows pandoc
  to convert between `csljson` and other bibliography formats,
  and to generate formatted versions of CSL JSON bibliographies.
* Add module Text.Pandoc.Writers.CslJson, exporting `writeCslJson`. [API
  change]
* Add module Text.Pandoc.Readers.CslJson, exporting `readCslJson`. [API
  change]
* Added `bibtex`, `biblatex` as input formats.  This allows pandoc
  to convert between BibLaTeX and BibTeX and other bibliography formats,
  and to generated formatted versions of BibTeX/BibLaTeX bibliographies.
* Add module Text.Pandoc.Readers.BibTeX, exporting `readBibTeX` and
  `readBibLaTeX`. [API change]
* Make "standalone" implicit if output format is a bibliography format.
  This is needed because pandoc readers for bibliography formats put
  the bibliographic information in the `references` field of metadata;
  and unless standalone is specified, metadata gets ignored.
  (TODO: This needs improvement. We should trigger standalone for the
  reader when the input format is bibliographic, and for the writer
  when the output format is markdown.)
* Carry over `citationNoteNum` to `citationNoteNumber`.  This was just
  ignored in pandoc-citeproc.
* Text.Pandoc.Filter: Add `CiteprocFilter` constructor to Filter.
  [API change] This runs the processCitations transformation.
  We need to treat it like a filter so it can be placed
  in the sequence of filter runs (after some, before others).
  In FromYAML, this is parsed from `citeproc` or `{type: citeproc}`,
  so this special filter may be specified either way in a defaults file
  (or by `citeproc: true`, though this gives no control of positioning
  relative to other filters).  TODO: we need to add something to the
  manual section on defaults files for this.
* Add deprecation warning if `upandoc-citeproc` filter is used.
* Add `--citeproc/-C` option to trigger citation processing.
  This behaves like a filter and will be positioned
  relative to filters as they appear on the command line.
* Rewrote the manual on citatations, adding a dedicated Citations
  section which also includes some information formerly found in
  the pandoc-citeproc man page.
* Look for CSL styles in the `csl` subdirectory of the pandoc user data
  directory.  This changes the old pandoc-citeproc behavior, which looked
  in `~/.csl`.  Users can simply symlink `~/.csl` to the `csl`
  subdirectory of their pandoc user data directory if they want
  the old behavior.
* Add support for CSL bibliography entry formatting to LaTeX, HTML,
  Ms writers.  Added CSL-related CSS to styles.html.
2020-09-21 10:15:50 -07:00
John MacFarlane
c815d2f228 Travis: use all_branches: true for deploy. 2020-08-28 08:39:58 -07:00
John MacFarlane
0640c75dc7 Travis: remove deploy/on. 2020-08-27 22:33:32 -07:00
John MacFarlane
42d02aa347 Add .travis.yml for macos release candidate build.
We need to build the release candidate on Travis rather
than GitHub actions, because GH has macos 10.15, and
binaries compiled on that OS will not work with 10.13.
See #6622.

This build is only triggered on rc/ branches.
2020-08-27 18:09:49 -07:00
John MacFarlane
c32bcaa2d3 Remove travis.yml. 2019-01-25 09:11:05 -08:00
Albert Krewinkel
a4968d775d
.travis.yml: test deriving via generics with GHC 8.4 2018-11-04 20:51:08 +01:00
Albert Krewinkel
b088af559a
.travis.yml: test with GHC 8.6.1 2018-10-27 20:35:21 +02:00
Albert Krewinkel
ebb35e613c
.travis.yml: simplify GHC and cabal package handling
This reduces duplicate information on GHC and cabal versions when
defining build environments.
2018-10-27 20:35:20 +02:00
Albert Krewinkel
dc4b5cb0e5
.travis.yml: define GHC_OPTIONS global variable 2018-10-27 20:35:20 +02:00
Albert Krewinkel
fc3f055baa
.travis.yml: remove redundant compiler options
Additional compiler warnings are enabled via the cabal file.
2018-10-27 20:35:20 +02:00
Albert Krewinkel
106f8496c0
.travis.yml: break long commands into multiple lines 2018-10-27 20:35:20 +02:00
Albert Krewinkel
f0bc235c82
.travis.yml: break *env* definitions into multiple lines 2018-10-27 20:35:20 +02:00
John MacFarlane
2bc429a57c Travis: give up again on ghc 8.6.1 with cabal. 2018-10-14 12:57:36 -07:00
John MacFarlane
0326d370e9 Travis - another try, without targets. 2018-10-14 12:48:19 -07:00
John MacFarlane
983277c6eb Travis: don't use targets in install deps. 2018-10-14 12:11:17 -07:00
John MacFarlane
c6f9ee64ae Travis: another try. 2018-10-14 12:05:08 -07:00
John MacFarlane
225474879c Another attempt to make travis work on cabal/ghc 8.6.1. 2018-10-14 10:57:20 -07:00
John MacFarlane
412c162601 Travis: removed quotes. 2018-10-14 10:14:25 -07:00
John MacFarlane
68e6866a01 Another try at ghc 8.6.1/cabal on travis. 2018-10-14 10:05:04 -07:00
John MacFarlane
8f5cd39534 Revert "Travis: add ghc 8.6.1 build."
This reverts commit 8cee5b183e.
2018-10-14 09:54:55 -07:00
John MacFarlane
d534346084 Revert "Tweak travis for ghc 8.6.1."
This reverts commit eed4514c4c.
2018-10-14 09:47:31 -07:00
John MacFarlane
eed4514c4c Tweak travis for ghc 8.6.1. 2018-10-14 00:01:24 -07:00
John MacFarlane
8cee5b183e Travis: add ghc 8.6.1 build. 2018-10-13 23:13:53 -07:00
John MacFarlane
fbc733d3a8 Travis: comment out 8.6.1 for now.
We'll need to use new-build.
2018-10-03 09:33:55 -07:00
John MacFarlane
75706135e3 Add ghc 8.6.1 to travis. 2018-10-02 21:15:55 -07:00
John MacFarlane
fd107145e6 Another try at skipping round-trip tests in CI. 2018-09-13 12:33:52 -07:00
John MacFarlane
ed2cd734eb Revert TESTPATTERN stuff from .travis.yml. 2018-09-13 12:23:15 -07:00
John MacFarlane
67bcb3d6b5 Revert test-pattern changes to .travis.yml. 2018-09-10 23:40:24 -07:00
John MacFarlane
97a13fe717 Travis: Another try on stack. 2018-09-10 23:14:11 -07:00
John MacFarlane
9f96a5e091 Travis: Fix stack build. 2018-09-10 22:56:13 -07:00
John MacFarlane
867a529189 Travis: remove --hide-successes temporarily again. 2018-09-10 21:57:52 -07:00
John MacFarlane
0f180be19b Another try. 2018-09-10 21:56:35 -07:00
John MacFarlane
ee4e658693 travis: Fix ghc version label for stack build. 2018-09-10 21:41:41 -07:00
John MacFarlane
8dcb41f1ba Revert "travis: Temporarily remove --hide-successes."
This reverts commit bf2b4f95ff.
2018-09-10 21:41:14 -07:00
John MacFarlane
bf2b4f95ff travis: Temporarily remove --hide-successes. 2018-09-10 21:34:54 -07:00
John MacFarlane
2295b60a31 Another try. 2018-09-10 21:17:51 -07:00
John MacFarlane
838bb87fba Another try. 2018-09-10 20:52:43 -07:00
John MacFarlane
3aabc96d5a Attempt to fix travis build. 2018-09-10 20:11:00 -07:00
John MacFarlane
ce6042fb20 Travis: exclude round-trip tests, except for nightly test which can fail. 2018-09-10 17:37:56 -07:00
John MacFarlane
49cfcc9c74 Travis: use more compiler warnings. 2018-08-10 22:39:27 -07:00
John MacFarlane
d6cbc7ba37 Travis: Use system ghc. And use ghc-8.4.3 instead of 8.4.2. 2018-07-13 10:28:29 -07:00
John MacFarlane
3cdc5a02e0 Travis: Use lts-12 resolver. 2018-07-13 10:14:37 -07:00
John MacFarlane
732e66d4c4 travis: small simplification. 2018-06-30 23:08:17 +02:00
John MacFarlane
3b2ab75712 Revert "Travis: use -j2 for dependencies installation."
This reverts commit ae9d9138c3.
2018-06-30 22:35:56 +02:00
John MacFarlane
ae9d9138c3 Travis: use -j2 for dependencies installation.
Remove special clause for ghc 7.10.
2018-06-30 12:12:36 +02:00
John MacFarlane
ce83a128e1 Use ghc 8.4.2 in travis and tested-with.
8.4.1 shipped with the wrong version of mtl, which didn't
match its documented API.
2018-06-30 10:00:28 +02:00
John MacFarlane
afb1241edc Revert "travis: try adding 'ghc-pkg recache'."
This reverts commit 57978fa3b3.
2018-06-29 19:56:20 +02:00
John MacFarlane
57978fa3b3 travis: try adding 'ghc-pkg recache'. 2018-06-29 19:51:12 +02:00
John MacFarlane
f0a1c42e4e travis: try installing specific yaml version... 2018-06-29 19:42:48 +02:00