Commit graph

41 commits

Author SHA1 Message Date
John MacFarlane
99f8923f20 Revert stack->cabal change in nightly.yml. 2020-09-23 09:30:14 -07:00
John MacFarlane
e2e6dbc3a6 Nightly process improvements.
- Use cabal for windows.
- Use most recent cabal/ghc.
- Udd sha1 to executable name.
2020-09-22 09:41:40 -07:00
John MacFarlane
5f33df322c CI: use checkout@v2, and use haskell-setup to install stack. 2020-09-22 09:13:48 -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
43787143d2 CI: use ubuntu-18.04 instead of 20.04. 2020-06-14 16:45:01 -07:00
John MacFarlane
c449788440 CI: use cabal 3.2, also specify OS versions instead of 'latest.' 2020-06-14 16:41:12 -07:00
John MacFarlane
f699d64a1a Switch CI to use ghc 8.8.3.
This should fix CI failures.
2020-06-14 10:06:21 -07:00
John MacFarlane
eacd17c867 nightly: add ls statements to diagnose linux build failure. 2020-06-13 11:43:49 -07:00
John MacFarlane
9e5ccaca61 Revert "Use 'set __COMPAT_LAYER=' in Windows CI builds."
This reverts commit 030c23e049.
2020-05-04 09:34:26 -07:00
John MacFarlane
030c23e049 Use 'set __COMPAT_LAYER=' in Windows CI builds.
It is suggested at
https://github.com/commercialhaskell/stack/issues/3765
that this may solve the "access violation" we're currently
getting on Windows CI with ghc 8.8.
2020-05-04 08:44:59 -07:00
John MacFarlane
f623db1d85 Fix path for nightly linux build. 2020-04-17 07:37:22 -07:00
John MacFarlane
d7cd612904 nightly: don't need to apt-get install. ci: test on ghc 8.10.1. 2020-04-16 08:54:42 -07:00
John MacFarlane
cc7e6d8280 nightly: ensure that ghc 8.8.1 is used for linux.
Previously it was using 8.10 which is suprisingly already installed.
2020-04-16 08:49:14 -07:00
John MacFarlane
b64ece76cb nightly build: print ghc, cabal versions for diagnostics. 2020-04-15 10:41:47 -07:00
John MacFarlane
f429863271 Use ghc 8.8.1 for nightly linux build. 2020-04-15 09:43:18 -07:00
John MacFarlane
88ba9a3127 Nightly - removed diagnostics. 2019-09-21 21:01:38 -07:00
John MacFarlane
21b6bd623c Nightly - another attempt to fix windows. 2019-09-21 17:33:34 -07:00
John MacFarlane
e3a6648e8f Nightlies - another attempt to fix windows build. 2019-09-21 10:35:31 -07:00
John MacFarlane
5ab14bfc0b Nightlies - 6 hour schedule for now. 2019-09-20 23:16:28 -07:00
John MacFarlane
5ebd5105ad Nightly - more windows tweaks. 2019-09-20 22:02:13 -07:00
John MacFarlane
e8f57ea1a4 Nightlies - more windows diagnostics. 2019-09-20 17:25:40 -07:00
John MacFarlane
a69d52c031 Nightlies - run every hour for debug. 2019-09-20 14:48:26 -07:00
John MacFarlane
bc3caaa795 nightlies - more windows diagnostics. 2019-09-20 14:44:21 -07:00
John MacFarlane
5f0e185a13 Nightly - use directory instead of suffix with date. 2019-09-20 08:25:46 -07:00
John MacFarlane
d617f59c2b Nightly - fix windows renaming with suffix. 2019-09-20 07:11:16 -07:00
John MacFarlane
3b457da6dc Nightly - windows diagnostics. 2019-09-19 23:30:15 -07:00
John MacFarlane
f7183e57fb Windows nightly - avoid double quotes in README.nightly. 2019-09-19 22:46:56 -07:00
John MacFarlane
e435943ed4 Restore nightly to once per day. 2019-09-19 18:53:03 -07:00
John MacFarlane
6e462a7040 Nightly - more windows tweaks. 2019-09-19 18:51:38 -07:00
John MacFarlane
be30b01935 Nightly - some windows fixes. 2019-09-19 15:57:48 -07:00
John MacFarlane
961e57c038 Nightly - strip linux executables. 2019-09-19 15:51:28 -07:00
John MacFarlane
7744f3f92b Nightly: Fix macos file finding. 2019-09-19 09:35:07 -07:00
John MacFarlane
f150ec04a0 Nightly - fix date setting on windows. 2019-09-19 09:09:41 -07:00
John MacFarlane
1f069cf64e Nightly improvements. 2019-09-19 00:16:28 -07:00
John MacFarlane
ebfa7d61f8 Nightly fixes. for now, run every 6 hours for debugging. 2019-09-18 11:22:14 -07:00
John MacFarlane
3bdc947b2e Stop nightly from running every hour. 2019-09-18 11:11:43 -07:00
John MacFarlane
78f552e24c Improvements to nightly.yml. 2019-09-18 09:08:45 -07:00
John MacFarlane
98808f3f8d Change nightly timing so it's at night. 2019-09-17 22:21:44 -07:00
John MacFarlane
852415a66f GitHub nightly - fix linux target. 2019-09-17 22:21:03 -07:00
John MacFarlane
d6c50af221 Fixes to nightly workflow. 2019-09-17 21:14:06 -07:00
John MacFarlane
369d348a9b Add nightly, move haskell.yml -> ci.yml. 2019-09-17 10:01:09 -07:00