45 Commits
Author SHA1 Message Date
Albert Krewinkel 7d3db1dd2d Lua docs: fix typos, missing links 2022-02-07 09:30:12 +01:00
Albert Krewinkel 49f1e7608e Lua: add module pandoc.layout to format and layout text 2022-02-06 16:01:24 -08:00
Albert Krewinkel 3169367475 Lua docs: allow to auto-generate Lua module documentations
No documentations are generated for now, this just adds the necessary
code and auto-formats file `doc/lua-filters.md`.
2022-02-05 13:32:02 +01:00
John MacFarlane d2a9562554 Omit --enable-doc in the cabal haddock invocation.
tools/build-and-upload-api-docs.sh.  I'm not sure what
this was supposed to do but it seems undocumented.
2022-01-17 21:03:25 -08:00
John MacFarlane 5811baf80f Update build-and-upload-api-docs.sh.
Using the template at https://hackage.haskell.org/upload

It still fails because of a missing doc-index.json for Glob?
2022-01-17 21:03:25 -08:00
John MacFarlane 4a2a068a8b Add tools/build-and-upload-api-docs.sh. 2022-01-07 11:50:02 -08:00
John MacFarlane 40a78ea05d Upgrade Debian 10 AMI for build-arm.sh. 2021-07-03 11:38:04 -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 cac796e1ab ARM build script: more reliable detection of completion.
Previously we downloaded the tar.gz before it was complete.
2021-03-08 14:51:03 -08:00
John MacFarlane 7683912591 build-arm.sh: fix elapsed time. 2021-03-08 11:57:52 -08:00
John MacFarlane 459085c642 build-arm.sh: env variable for ARTIFACTS. 2021-03-07 20:58:36 -08:00
John MacFarlane f8e848094c build-arm.sh: print total build time 2021-03-07 19:02:36 -08:00
John MacFarlane 7eb4662df4 Fixed build-arm script.
Use environment variables which can be set to use different
AMIs, keys, or instance types.

Correctly detect successful build.
2021-03-07 18:06:38 -08:00
John MacFarlane 75d4bca862 build-arm.sh: retrieve build artifacts after success. 2021-03-07 13:27:55 -08:00
John MacFarlane d560038342 Add script to build an ARM binary on AWS. 2021-03-07 13:10:27 -08:00
John MacFarlane e798db14e8 Add tools/parseTimings.pl.
A script to help pin down which modules take the most time
and memory to compile.
2021-02-26 23:52:28 -08:00
John MacFarlane aae1e617a6 Fix changelog-helper.sh 2021-02-21 19:02:28 -08:00
John MacFarlane 004907f4f2 make changes_github: use details tag to make changelog collapsible. 2020-03-15 11:23:55 -07:00
Albert Krewinkel 9ffa8100d7 tools: delete Lua documentation helper cruft
The tools were useful to generate documentation from the Lua sources.
However, most Lua functions are defined in Haskell, and the even
documentation of functions written in Lua has been updated manually for
quite a while now. The unused helper scripts, which have bit-rot to the
point that they now produce broken links, are therefore removed.
2020-03-13 14:22:23 +01:00
John MacFarlane a0df2f676c Fix README.md so that relative links from manual become absolute.
Previously they'd be broken links when viewed on GitHub or Hackage.
So we add the base URL for the pandoc manual.
2019-12-10 14:46:33 -08:00
John MacFarlane 0d0ec98dd5 Generate Emoji module with TH.
- Add Text.Pandoc.Emoji.TH.
- Replace long literal list in Text.Pandoc.Emoji with one-liner
  generating it from data/emoji.json using TH.
- Add Makefile target to download data/emoji.json.
- Remove tools/emoji.hs.
2019-11-27 21:31:53 -08:00
John MacFarlane 415ddbe228 Fix extract-changes.hs to use new changelog.md format. 2019-11-22 09:42:04 -08:00
John MacFarlane 36f02e1673 Fix extract-changes.hs so it uses stack as interpreter. 2019-11-22 09:33:32 -08:00
John MacFarlane c7c7664403 Update emoji list in Text.Pandoc.Emoji.
Done using tools/emojis.hs, which uses the list from the
gem GitHub uses.  Future updates can be done with this tool.

Closes #5666.
2019-07-29 11:17:22 -07:00
John MacFarlane 4d65bbf0df Fix diff-zip.sh so it works on Darwin.
BSD find is slightly different and doesn't have -regextype option.
2019-07-17 09:22:07 -07:00
Agustín Martín Barbero 6134616352 Update diff-zip to support windows (#5641)
Trying to use this script on windows (git-bash) gave several errors:

- *mktemp* complained about missing XXXs in the template (fixed by adding XXX)
- *find* didn't understand the -E switch (fixed by using the equivalent arguments)
- *terminal codes* were not being recognized by the console (-e added to echo)
2019-07-12 09:08:27 -07:00
John MacFarlane 83a0104d5b Improve diff-docx.sh -> diff-zip.sh.
It now can be used on odts, docx, or epubs.
2019-07-10 20:53:40 -07:00
John MacFarlane 2c2d4e2138 Add diff-docx.sh to tools. 2019-07-10 20:28:21 -07:00
Alexander Krotov c0e4f66eb3 tools/changelog-helper.sh: use %aN instead of %an to respect .mailmap 2019-01-07 09:18:11 +03:00
Alexander Krotov a92d6fa5be tools/changelog-helper.sh: remove [[ bashism 2019-01-07 09:17:21 +03:00
John MacFarlane 9df4c7f57b Added tools/changelog-helper.sh. 2018-10-02 22:41:41 -07:00
John MacFarlane 72bdac3036 New README template, take in/out formats from manual. 2018-04-22 11:36:47 -07:00
John MacFarlane d5d6c9876d Fixed small bug in README generation. 2017-12-30 10:46:08 -08:00
John MacFarlane 81b0b20827 Generate README.md from template and MANUAL.txt.
`make README.md` will generate the README.md after changes
to MANUAL.txt have been made.
2017-12-29 16:41:51 -08:00
Albert Krewinkel 7fa286fff1 Update tool which generates lua module docs
All "helper functions" are not part of the Lua code for module pandoc,
but are added in Haskell. The respective documentation section must
therefore be excluded from automatic regeneration.
2017-12-29 10:04:55 +01:00
John MacFarlane 246e8f081a Update lua-filters.md and the tool that generates it. 2017-12-28 22:02:59 -08:00
Albert Krewinkel 5026dfaedf lua-filters.md: add documentation for pandoc.List 2017-12-01 17:14:28 +01:00
Vaclav Haisman 916a80ea76 pandoc-template-mode.el: Improve.
Avoid highlighting of "strings" by deriving from
`text-mode-syntax-table`. This fixes missing highlighting in default.html5
tag attributes.

Define comment starting and ending sequences to allow use of M-q (auto-fill)
on comments.
2017-11-03 01:16:26 +01:00
Vaclav Haisman 733ccbafc6 Support comments in Pandoc templates in Emacs pandoc-template-mode. 2017-10-22 01:16:03 +02:00
Albert Krewinkel c363519302 Provide make target to update lua module docs (#3946)
The pandoc module documentation in doc/lua-filters.md was automatically
generated from `data/pandoc.lua`.  A make target is provided which uses
a lua filter to update the documentation.
2017-09-30 10:45:31 -04:00
John MacFarlane 9add713654 Moved ldoc.ltp from doc to tools.
doc should be reserved for actual documents, I think.

@tarleb - will this cause a problem?
2017-09-16 22:47:49 -07:00
Václav Haisman 19a06b0c83 Add simple Emacs mode to help with Pandoc templates editing. (#3889)
tools/pandoc-template-mode.el
2017-09-06 15:28:37 -07:00
John MacFarlane 19d86132a8 Makefile: Separate refactor and reformat targets.
Removed tools/refactor.sh.
2017-03-04 13:13:12 +01:00
John MacFarlane 0edfbf1478 Added 'make refactor' using hlint, stylish-haskell. 2017-03-04 12:49:14 +01:00
John MacFarlane be140ab496 Moved extract-changes.hs and github-upload.sh to tools/. 2017-01-25 17:07:41 +01:00