Commit Graph

147 Commits

Author SHA1 Message Date
Simon Michael
7af5ee4863 tools: move site.sh into shake; stop running just-pushed shakefile
Running the just pushed Shake.hs was too insecure.

[ci skip]
2019-03-06 09:30:54 -08:00
Simon Michael
61e053bd8e tools: make site.sh mac compatible 2019-03-06 08:48:48 -08:00
Simon Michael
51d3395564 make: rename sub-makefiles; start moving site script to make/shake
[ci skip
2019-03-05 18:43:04 -08:00
Simon Michael
1062331f7e tools: commit missing pandoc filters (#981)
[ci skip]
2019-03-04 08:07:01 -08:00
Simon Michael
2530d9b853 site: fix TOC in contributing, manuals
[ci skip]
2019-02-12 09:58:22 -08:00
Simon Michael
2364a53f49 site: add table of contents to all wiki pages with 2+ headings
[ci skip]
2019-02-11 14:12:48 -08:00
Simon Michael
b3dd667feb site: update deploy script 2019-02-09 19:48:01 -08:00
Simon Michael
7dfd921992 tools: drop old alternate hunit runner 2018-09-04 13:54:22 -07:00
Everett Hildenbrandt
16200908e8 Shake, tools/pandoc-site.{hs => lua}: switch to building site with Lua filter 2018-05-21 08:35:49 -07:00
Everett Hildenbrandt
f3d81631e9 tools/pandoc-site: avoid calling HTML writer directly 2018-05-21 08:35:49 -07:00
Everett Hildenbrandt
1c561c2270 tools/pandoc-site: switch to using Pandoc builtin function hierarchicalize 2018-05-21 08:35:49 -07:00
Everett Hildenbrandt
78e10f7663 tools/pandoc-site: remove unused datastructure TOCAlignment and function ignoreTOC 2018-05-21 08:35:49 -07:00
Everett Hildenbrandt
946fa1d498 tools/pandoc-{site,drop-toc}, Shake, site/, doc/: switch from bulletlist to metainline toc marker
Files `site/doc/{1.0,1.1}/hledger-ui.md` had to be treated specially because
thay had some other elements inside the same `BulletList` that the `toc` lived
inside. Because only the first element of the `BulletList` is compared, these
extra HTML elements were either dropped or replaced with a TOC at compile time.
By switching to the meta-inline `\$toc\$`, they started to persist into the
resulting HTML. The fix was to drop them from the source markdown.
2018-05-21 08:35:49 -07:00
Everett Hildenbrandt
ae987b236b tools/pandoc-site: pass in generated toc from top-level filter 2018-05-21 08:35:49 -07:00
Everett Hildenbrandt
e2a322283a tools/pandoc-site: remove attribution 2018-05-21 08:35:49 -07:00
Simon Michael
f5e28ee8ce site: deploy: be sure main repo is pulled
[ci skip]
2018-05-16 18:33:23 -07:00
Simon Michael
38e7e378bd make deploy: also do a push if we updated wiki links, to allow pulls 2018-05-16 11:58:08 -07:00
Simon Michael
e1230d9929 site: home: also commit when updating wiki links
[ci skip]
2018-05-14 18:07:53 -07:00
Simon Michael
e0c6a18199 tools: deploy tweaks
[ci skip]
2018-05-14 17:57:25 -07:00
Simon Michael
d710bfc7f9 tools: deploy.sh site update script
[ci skip]
2018-05-14 10:52:33 -07:00
Everett Hildenbrandt
bac12543df tools/pandoc-site.hs, Shake.hs: pandoc filter version of hakyll-std website builder 2018-05-09 10:13:02 -07:00
Everett Hildenbrandt
563d78df66 tools/pandoc-*.hs, doc/.gitignore: remove haskell pandoc filters and references to them 2018-04-25 17:25:09 -07:00
Everett Hildenbrandt
ddaea7cffc Shake.hs, tools/pandoc-drop-toc: switch to lua script filter 2018-04-25 17:25:09 -07:00
Everett Hildenbrandt
95c9af5664 Shake.hs, tools/pandoc-drop-notes: remove unused filter 2018-04-25 17:25:09 -07:00
Everett Hildenbrandt
fbc9c63c62 Shake.hs, tools/pandoc-drop-notes: switch to lua script filter 2018-04-25 17:25:09 -07:00
Everett Hildenbrandt
364d3dc756 Shake.hs, tools/pandoc-drop-links: switch to lua script filter 2018-04-25 17:25:09 -07:00
Everett Hildenbrandt
79e46bb0fb Shake.hs, tools/pandoc-drop-html-inlines: switch to lua script filter 2018-04-25 17:25:09 -07:00
Everett Hildenbrandt
b83240ab6d Shake.hs, tools/pandoc-drop-html-blocks: switch to lua script filter 2018-04-25 17:25:09 -07:00
Everett Hildenbrandt
33e08a7d86 Shake.hs, tools/pandoc-demote-headers: switch to lua script filter 2018-04-25 17:25:09 -07:00
Simon Michael
8ce5c84f35 tools: misc Shake, pandoc filter fixes 2018-03-31 02:43:28 +01:00
Simon Michael
84579bb1b4 silence redundant import warnings with ghc 8.4 2018-03-24 22:51:56 +00:00
Simon Michael
6aa35b5cb8 lib: move easytest tests to lib, depend on released version 2018-03-05 17:27:13 -08:00
Simon Michael
e92130228b tools: easytest: some sample tests
[ci skip]
2018-03-04 12:31:16 -08:00
Simon Michael
9a5d9c6235 tools: add easytest (github) as an extra dep, for experiments 2018-02-15 16:30:50 -08:00
Simon Michael
b3ab3b392d tools: remove outdated pandoc-types version from pandoc filters 2017-03-29 21:06:07 -07:00
Simon Michael
aae61f46e2 tools: some pandoc filter fixes
[ci skip]
2017-01-10 12:36:15 -08:00
Simon Michael
ad34e4aa42 tools: remove accidentally committed pandoc executables
[ci skip]
2017-01-10 12:35:58 -08:00
Simon Michael
e881a29b0e tools: move pandoc filters out of docs/
[ci skip]
2017-01-10 08:49:05 -08:00
Simon Michael
792c807f2c tools readme 2017-01-08 07:28:23 -08:00
Simon Michael
843c417079 tools: simplebench is now quickbench 2016-10-21 11:46:50 -07:00
Simon Michael
588f36d662 rename timelog format to timeclock 2016-04-12 21:13:19 -07:00
Simon Michael
bba7909165 doc: m4-based man pages pt 2, missing files 2016-04-06 09:03:01 -07:00
Simon Michael
9b492325da tools: rename pandoc filters 2016-04-05 16:17:08 -07:00
Simon Michael
099870e96a tools: shake file requires pandoc, filters use current snapshot 2016-04-05 16:17:08 -07:00
Simon Michael
df3cb6d334 tools: use latest pandoc, avoiding SoftBreak error
Require a recent snapshot with the latest pandoc-types for the pandoc
filters (may be different from the snapshot used to build hledger).
2016-04-05 16:17:08 -07:00
Simon Michael
e1c9e51775 tools: new build system for man/web docs
Goal:

Generate man pages and web docs from one source.

Current plan:

The master docs for each package are now the pandoc-style
manpage-markdown files in the package directories -
hledger/hledger.1.md, hledger-lib/hledger_journal.5.md, etc.

Parts of these will be marked as web-only, and parts as man-only, using
divs recognisable by custom pandoc filters.

When generating man pages we strip the web-only parts, and all html
blocks, inline html and hyperlinks.

When generating web docs we strip the man-only parts and apply any other
tweaks needed for easy presentation, perhaps combining them into a
single web page similar to the old user manual.

Shake:

This was hard to do with GNU Make, and so I've introduced Shake, which
is working very well. Both coexist for now but it's probably time to
switch.
2016-02-21 02:21:41 -08:00
Simon Michael
3762ae8f70 tools: pandoc filters used when making man pages 2015-10-26 06:56:33 -07:00
Simon Michael
e6d8a9d1bc tools: add sample journals with wide characters
generatejournal now has --chinese and --mixed options, which are used to
generate some additional small sample journals.
2015-10-10 11:51:07 -07:00
Simon Michael
523ab4331a tools: update profiling rules
A bunch of cleanups to make profiling possible again, and easier.

"make quickprof-CMD" generates a profile for CMD, which must be one
word and runs against one of the sample journals (the usual
quickprof-"SOME WORDS" quoting trick isn't working here for some
reason)

Also,

"make hledgerprof" builds the hledgerprof executable (in stack's bin dir) for profiling.

"make hledgercov" builds the hledgercov executable (in ./bin) for coverage reports
(renamed from hledgerhpc to remind me that HPC is nothing to do with heap coverage)
2015-07-22 08:52:30 -07:00
Simon Michael
c4e2c4e56c tools: generatetimelog 2015-07-12 12:32:53 -07:00
Simon Michael
f4842726e0 tools: fix warnings in simplebench 2014-10-19 09:34:46 -07:00
gwern
d1618aaca8 strip trailing whitespace from all Haskell files 2014-10-14 18:48:24 -07:00
Simon Michael
edf0d1053b tools: make tools/* executable 2014-05-01 08:14:04 -07:00
Simon Michael
8139528e83 tools: clarify tools/simplebench.hs's required libs 2013-05-04 09:07:00 -07:00
Simon Michael
7e753e13b5 tools: dayssincerelease.hs -> dayssincetag.hs 2011-09-25 18:29:23 +00:00
Simon Michael
c8e84b3a3a tools: clean up coverage report scripts 2011-04-22 18:47:12 +00:00
Simon Michael
d0efde5429 tools: fix up the releasestats make rule 2011-04-22 18:47:57 +00:00
Simon Michael
7d7159609b refactor: much renaming of ledger -> journal, hopefully the right amount 2010-07-13 06:30:06 +00:00
Simon Michael
8ed15c2e99 tools: update simplebench for current tabular 2010-05-22 21:13:11 +00:00
Simon Michael
38665bd1bc tools: fix coverage script and stats make rule 2010-05-23 22:46:40 +00:00
Simon Michael
aaa8b369fa tools: benchmarking updates, add experimental criterion/progression runners 2010-02-13 18:39:49 +00:00
gwern0
357f56d0f4 de-haskell98 2010-03-09 01:51:21 +00:00
Simon Michael
d6ef9f3436 tools: update hledgermac rule 2009-12-12 15:58:52 +00:00
Simon Michael
9ff4a23492 note doctest.hs issue 2009-06-22 19:46:31 +00:00
marko.kocic
3341ad197f Hlint: Error: Use . 2009-09-22 12:19:38 +00:00
marko.kocic
efa31c05b9 Hlint: Error: Use mapM 2009-09-22 12:30:17 +00:00
marko.kocic
d0baf650f2 Hlint: Error: Use mapMaybe 2009-09-22 12:35:31 +00:00
marko.kocic
8414f06416 Hlint: Warning: Use liftM 2009-09-23 09:35:50 +00:00
marko.kocic
d6393f5f63 Hlint: Warning: Use list comprehension 2009-09-23 09:45:39 +00:00
marko.kocic
1690de8d00 Hlint: Warning: Use string literal 2009-09-23 09:56:17 +00:00
Simon Michael
73bc81cd7e add missing test runner 2009-11-25 11:30:50 +00:00
marko.kocic
c6eac33d32 Hlint: Warning: Use : 2009-09-23 09:22:53 +00:00
marko.kocic
b197693197 Hlint: Warning: Redundant brackets 2009-09-22 16:51:27 +00:00
marko.kocic
8fdd28d446 Hlint: Error: Redundant $ 2009-09-22 11:55:11 +00:00
Simon Michael
cb0a90cbd7 shelltestrunner now packaged separately, update tests for it 2009-07-11 22:30:10 +00:00
Simon Michael
f1f4a0c023 shelltest: use test-framework as test runner
We can now run shell tests in parallel which seems to be a big win. 
Tests which took 3.5s now run in .13s.
2009-06-28 02:31:36 +00:00
Simon Michael
e11c828aaf shelltest: show filename, not command, when running tests 2009-06-27 10:35:10 +00:00
Simon Michael
ba47853501 shelltest: make fields in .test files optional 2009-06-27 10:18:34 +00:00
Simon Michael
2ae609fee6 add a shell test runner like ledger's, and "make functest" rule 2009-06-27 08:15:00 +00:00
marko.kocic
ddc176d83e Hlint: Warning: Eta reduce 2009-09-22 15:56:59 +00:00
Simon Michael
29cc846dc0 avoid exitSuccess for base 3 compatibility (issue #2) 2009-06-22 15:47:05 +00:00
Simon Michael
22c6d62907 generateledger tool, creates test ledgers of specified size 2009-05-29 08:23:59 +00:00
Simon Michael
6958d47329 make bench tests with command arguments work 2009-05-29 12:09:39 +00:00
Simon Michael
72ad595542 reflect success/failure in doctest and unittest runners' exit codes 2009-06-05 17:29:20 +00:00
Simon Michael
5e08ad821e show doctest failures on stderr, less verbose make doctest 2009-06-05 18:59:59 +00:00
Simon Michael
6c6eb2691e drop old-locale dependency 2009-06-03 23:44:01 +00:00
Simon Michael
7aaa2c5ad0 "make coverage" now generates a nice html report of test coverage 2009-06-04 01:33:31 +00:00
Simon Michael
f1ab2fcdbb tweak doctest output, and compile it 2009-03-15 08:47:23 +00:00
Simon Michael
5fb256b582 a simple doctest implementation for functional/shell testing 2009-03-15 05:06:36 +00:00
Simon Michael
f794445451 update simplifyprof.hs 2008-12-05 00:37:47 +00:00
Simon Michael
61b288bf05 easier options for bench.hs 2008-12-10 20:45:09 +00:00
Simon Michael
cd41128620 left-justify arguments in benchmark summary 2008-11-27 06:29:46 +00:00
Simon Michael
2092ed85ae preserve args' whitespace layout in benchmark summary 2008-12-05 08:59:56 +00:00
Simon Michael
77a543e7b7 benchresults instead of summary for bench results filename 2008-12-05 09:01:42 +00:00
Simon Michael
b61c4f85e6 "make bench" runs some benchmark tests and saves results 2008-11-26 19:00:55 +00:00
Simon Michael
1421fb6b0b remove overview.hs 2008-09-28 03:27:17 +00:00
Simon Michael
34ebd9e3df support tools cleanup 2008-05-26 21:19:21 +00:00