Commit Graph

469 Commits

Author SHA1 Message Date
ryneeverett 7e2a3c3e7e Add option to pass wkhtmltopdf options. Fix #176.
It seems that some time in the last couple years wkhtmltopdf's default
margins were changed from '10mm' to zero. As an alternative to #177,
this PR adds an option to pass in arbitrary wkhtmltopdf long arguments
and sets the default top and bottom margin to '10mm'.
2017-01-06 19:10:27 -05:00
ryneeverett 406d3358eb Don't do html escaping. Fix #157. 2016-12-14 21:14:45 -05:00
Daniele Rapagnani 3c166a21a0 Removed the forced private option from the CONVERT verb as it is now the default behaviour 2016-02-14 22:10:30 +01:00
Daniele Rapagnani fe46d15031 The ANALYZE command now excludes private fields by default for consistency. 2016-02-14 21:53:10 +01:00
Daniele Rapagnani 664eea752f parseJSON has been modified to always include private fields if not otherwise instructed. This is to ensure back-compatibility. The BUILD command instead, excludes private fields by default 2016-02-14 21:50:13 +01:00
Daniele Rapagnani fed59b704e Implemented private fields that can be included or excluded with cli switch 2016-02-14 19:15:47 +01:00
hacksalot 917fd8e3f3 Refactor helpers.
Rebind Handlebars helpers to drop the pesky options hash for standalone
helpers that don't need it. Move block helpers (which do need the
Handlebars options/context) to a separate file for special handling.
2016-02-14 04:10:23 -05:00
hacksalot 7c36ff8331 Introduce "date" helper. 2016-02-13 22:54:07 -05:00
hacksalot 2d595350c6 Escape LaTeX during generation. 2016-02-13 20:40:17 -05:00
hacksalot ca92d41d9e Numerous fixes. 2016-02-13 16:08:45 -05:00
hacksalot 3f8e795c61 Fix generation glitches.
Fix output file name glitch, writing CSS files to destination folder,
and an issue where the process would evaporate before PDF/PNG generation
could complete.
2016-02-13 03:27:11 -05:00
hacksalot 9927e79900 Clean up CoffeeScript. 2016-02-13 00:40:10 -05:00
hacksalot dbef9f0a35 Improve VALIDATE error handling. 2016-02-13 00:11:52 -05:00
hacksalot c889664c31 More VALIDATE fixups. 2016-02-12 23:47:08 -05:00
hacksalot 7a60cd0bab Fixup VALIDATE command.
Introduce MISSING and UNKNOWN states alongside BROKEN, VALID, and
INVALID and fix regressions introduced in previous refactorings.
2016-02-12 22:49:56 -05:00
hacksalot b26799f9fc Improve JSON error handling.
Add support for detection of invalid line breaks in JSON string values.
Fixes #137. Could be improved to fetch the column number and drop the
messy grabbing of the line number from the exception message via regex,
but currently the "jsonlint" library (not to be confused with
"json-lint") only emits an error string. Since this is also the library
that drives http://jsonlint.com, we'll accept the messy regex in return
for more robust error checking when our default json-lint path fails.

All of the above only necessary because standard JSON.parse error
handling is broken in all environments. : )
2016-02-12 17:11:11 -05:00
hacksalot daeffd27b5 Remove HB reference from generic helpers. 2016-02-11 22:06:43 -05:00
hacksalot f87eb46549 Fix theme generation error. 2016-02-11 22:04:11 -05:00
hacksalot da7cd28734 Remove unused var. 2016-02-11 22:03:49 -05:00
hacksalot 31e0bb69cc Introduce "pad()" helper.
Introduce a helper to emit padded strings / arrays of strings.
2016-02-11 22:02:50 -05:00
hacksalot 317a250917 Gather. 2016-02-11 11:48:44 -05:00
hacksalot aaa5e1fc1f Refactor generation.
Merge implicit and explicit generation paths, start emitting file
transform & copy signals, fix various bugs, introduce new bugs, support
better --debug outputs in the future.
2016-02-09 15:27:34 -05:00
hacksalot 1bc4263a46 Aerate. 2016-02-09 10:50:10 -05:00
hacksalot e191af1fb0 Fix glitch in converted CoffeeScript.
Replace naked ternary with if then else.
2016-02-09 10:41:48 -05:00
hacksalot 7c0a9bcc02 Aerate. 2016-02-09 10:37:33 -05:00
hacksalot d894f62607 Add ResumeFactory to facade.
Until facade is decommissioned and mothballed
2016-02-09 08:55:00 -05:00
hacksalot 2758038858 Cleanup and bug fixes.
Remove file-based open methods from resume classes; force clients to use
clean string-based or JSON overloads; fix processing glitch in
validate(); tweak outputs; adjust tests; update CHANGELOG; etc.
2016-02-04 18:49:16 -05:00
hacksalot 661fb91861 Aerate. 2016-02-04 15:23:47 -05:00
hacksalot 5bf4bda6de Fix PEEK command. 2016-02-03 20:08:17 -05:00
hacksalot 49ae016f08 Deglitch. 2016-02-02 19:02:56 -05:00
hacksalot 89957aed76 Scrub.
Adding slightly heavier function-level comments as a start for API docs.
2016-02-02 17:47:32 -05:00
hacksalot 233025ddcc Fix indentation. 2016-02-02 17:46:38 -05:00
hacksalot 11dd8952d8 Improve PEEK behavior. 2016-02-02 17:34:10 -05:00
hacksalot a456093f13 Clean up a couple regressions. 2016-02-02 14:13:38 -05:00
hacksalot dd4851498a Remove Resig's class implementation.
Fun while it lasted.
2016-02-02 13:49:02 -05:00
hacksalot f72b02a0f4 Refactor generators to CoffeeScript classes. 2016-02-02 13:38:12 -05:00
hacksalot 63a0c78fc5 Refactor verbs to CoffeeScript classes.
Retire Resig's class implementation.
2016-02-01 23:16:49 -05:00
hacksalot fd39cc9fd9 Adjust error handling / tests. 2016-02-01 22:56:08 -05:00
hacksalot 70f45d468d Asynchrony. 2016-02-01 22:52:13 -05:00
hacksalot 212b01092c Improve proc spawn behavior.
Interim until async / promises support is in.
2016-02-01 09:25:22 -05:00
hacksalot ed0792e8f8 Fix YML/JSON/PNG invalid output format warning.
Fixes #97 but we still need to support standalone PNG (ie, a PNG not
generated as part of a .all output target).
2016-01-31 09:41:00 -05:00
hacksalot 90765bf90b Refactor verb invocations to base. 2016-01-31 08:37:12 -05:00
hacksalot 27c7a0264a Improve date handling. 2016-01-30 20:06:04 -05:00
hacksalot 8e806dc04f Improve duration calcs, intro base resume class. 2016-01-30 16:40:22 -05:00
hacksalot 1c416f39d3 Fix JSON Resume theme breakage.
Fixes #128.
2016-01-30 11:31:39 -05:00
hacksalot 896b7055c1 Fix issue with undefined sections.
Fixes #127.
2016-01-29 15:50:21 -05:00
hacksalot 0f65e4c9f3 Finish HackMyCore reshaping.
Reintroduce HackMyCore, dropping the interim submodule, and reorganize
and improve tests.
2016-01-29 15:23:57 -05:00
hacksalot e9971eb882 Bump version to 1.7.2. 2016-01-28 07:05:27 -05:00
hacksalot beb60d4074 Integrate HMC. 2016-01-27 05:29:26 -05:00
hacksalot 4440d23584 Move HackMyCore submodule to /src. 2016-01-27 04:33:45 -05:00
hacksalot 15a0af8410 Fix output glitches. 2016-01-26 14:43:48 -05:00
hacksalot a07faf6d50 ... 2016-01-26 11:43:49 -05:00
hacksalot f098ed507f ... 2016-01-26 11:39:24 -05:00
hacksalot 80c36b96bc ... 2016-01-26 10:58:10 -05:00
hacksalot 630cf59cfb Caffeinate. 2016-01-26 06:59:34 -05:00
hacksalot 165eb5d9cd Remove extraneous console.log added by Calhoun. 2016-01-25 20:57:21 -05:00
hacksalot d007bd9bf6 Introduce CoffeeScript and build step. 2016-01-25 10:34:57 -05:00
hacksalot 5838b085c7 Fix console helpers path. 2016-01-24 18:51:08 -05:00
hacksalot fc937e3ec8 Update "hackmyapi" references. 2016-01-24 17:14:53 -05:00
hacksalot d3194fba19 Relocate internal sources to HackMyAPI.
Move internal sources and related tests to:

https://github.com/hacksalot/HackMyAPI
2016-01-24 09:55:04 -05:00
hacksalot 07915002bb Adjust "merging X onto Y" output. 2016-01-24 05:35:07 -05:00
hacksalot e6d2255291 Scrub. 2016-01-23 23:30:48 -05:00
hacksalot 2840ec3f87 Introduce {{fontSize}} helper. 2016-01-23 22:40:33 -05:00
hacksalot 05cd863ebf Add PDF engines to man page. 2016-01-23 20:30:23 -05:00
hacksalot 20961afb62 Introduce {{color}} helper. 2016-01-23 20:24:35 -05:00
hacksalot 1256095e25 Support "fonts.all" in FRESH themes.
Add support for default font specs in FRESH theme.json files. The "all"
format matches any format that doesn't have a specific key in "fonts".
2016-01-23 03:58:11 -05:00
hacksalot f073c79b8d Better dynamic font handling. 2016-01-22 22:19:28 -05:00
hacksalot 915f35b1e6 Improve Underscore.js rendering support. 2016-01-22 10:36:26 -05:00
hacksalot 4fe74057f9 Improve font helpers.
Log a warning on incorrect use.
2016-01-22 08:33:01 -05:00
hacksalot 5a1ec033bb Adjust USE.txt.
--opts has changed to --options and --no-tips to --tips.
2016-01-22 08:27:21 -05:00
hacksalot 6801e39f97 Tweak output colorization. 2016-01-22 04:55:29 -05:00
hacksalot f6f383751f Fix JSON Resume theme rendering glitch. 2016-01-22 03:05:41 -05:00
hacksalot 43ed564a6e Disable tips and theme messages by default.
Instead of displaying tips by default and allowing users to turn them
off with --no-tips, hide tips by default and allow users to show them
with --tips.
2016-01-22 02:51:00 -05:00
hacksalot 7b3364c356 Document parameter. 2016-01-22 02:44:17 -05:00
hacksalot 58a7fc09e5 Add toUpper helper. 2016-01-22 02:44:04 -05:00
hacksalot 01c053702d Gather. 2016-01-21 23:40:15 -05:00
hacksalot a935fe7dc2 Introduce {{fontFace}} helper. 2016-01-21 23:39:30 -05:00
hacksalot 6b171e69db Improve CSS handling. 2016-01-21 05:21:49 -05:00
hacksalot 984ae95576 Cleanup. 2016-01-20 21:43:11 -05:00
hacksalot f77cced7f3 Improve error handling. 2016-01-20 19:59:36 -05:00
hacksalot 9419f905df Build verb invocation should return JSON result. 2016-01-20 01:48:33 -05:00
hacksalot 201f39442e Add support for .ignore flag in FRESH and JRS resumes.
Preliminary support for ".ignore" on any non-leaf FRESH or JRS node.
Nodes (employment entries, education stints, etc.) decorated with
".ignore" will be treated by HMR as if they weren't present.
2016-01-19 20:09:59 -05:00
hacksalot 47f6aff561 Improve keyword regex.
Better support for simple keywords like "C" or "R".
2016-01-19 19:10:20 -05:00
hacksalot 2253e4ead7 Fix theme counts.
The N in "Applying theme FOOBAR (N formats)" should reflect the count of
explicit + freebie output formats.
2016-01-19 16:01:34 -05:00
hacksalot 2f628f8564 Reconnect process exit codes. 2016-01-18 20:06:45 -05:00
hacksalot 23cd52885b Swallow inline failures in CONVERT. 2016-01-18 19:21:25 -05:00
hacksalot 181419ae28 Improve PEEK command behavior. 2016-01-18 19:20:17 -05:00
hacksalot a81ad0fef2 Tweak build command error condition. 2016-01-18 18:36:24 -05:00
hacksalot d220cedfeb Improve behavior of PEEK command. 2016-01-18 18:35:38 -05:00
hacksalot e72564162b Remove custom "extend" method.
Replace with NPM extend.
2016-01-18 17:31:08 -05:00
hacksalot c98d05270e Improve error handling. 2016-01-18 17:13:37 -05:00
hacksalot 3e3803ed85 Improve error handling. 2016-01-18 14:10:35 -05:00
hacksalot c8d8e566f8 Add IIFE. 2016-01-18 14:10:25 -05:00
hacksalot 712cba57b8 Capture. 2016-01-18 00:34:57 -05:00
hacksalot c9e45d4991 Capture. 2016-01-17 21:46:58 -05:00
hacksalot 5c95fe7af1 Integrate with fresh-jrs-converter.
Move FRESH/JRS conversion logic (and all future format conversions) into
a separate repo.
2016-01-16 12:40:16 -05:00
hacksalot 17f2ebb753 Modularize messages.
...and move strings out of error.js.
2016-01-15 23:46:43 -05:00
hacksalot fc67f680ee Move output messages to YAML. 2016-01-15 22:52:10 -05:00
hacksalot 88879257e6 Document PEEK command.
Add preliminary docs around PEEK.
2016-01-15 14:46:13 -05:00
hacksalot 934d8a6123 Update --options file loading. 2016-01-15 13:36:20 -05:00