1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-22 08:20:11 +00:00
Commit Graph

82 Commits

Author SHA1 Message Date
hacksalot
7cfdb95a04
feat: convert: support multiple JRS versions 2018-02-09 21:34:24 -05:00
hacksalot
58fe46dc83
feat: introduce FRESH version regex 2018-02-09 21:32:44 -05:00
hacksalot
17e5c6c172
style: notate an issue in skills coalescing func 2018-02-09 00:17:10 -05:00
hacksalot
20815d7eff
fix: add missing require() 2018-02-09 00:06:07 -05:00
hacksalot
8648befcdd
feat: introduce stringOrObject & linkMD helpers 2018-02-07 23:35:05 -05:00
hacksalot
c08c5f0fa3
feat: introduce two skill-related helpers 2018-02-07 05:55:27 -05:00
hacksalot
38a073b09a
feat: improve template helper wiring 2018-02-07 05:49:02 -05:00
hacksalot
2346562428
fix: remove extraneous log statement 2018-02-06 08:24:18 -05:00
hacksalot
2bf5bb72cf
fix: prevent broken XML in Word docs 2018-02-06 08:22:31 -05:00
hacksalot
7262578c81
feat: allow standalone FRESH themes to inherit 2018-02-05 23:43:38 -05:00
hacksalot
66f3cb15c9
style: remove unused var 2018-02-05 23:41:40 -05:00
hacksalot
8c81a54565
fix: resolve issues around @@@@ characters in dates
Simplify resume freezing; avoid transformations on foreign fields. Fixes #198
but needs followup to allow users to specify how and when freezing, encoding,
and transformations occur.
2018-02-04 23:06:34 -05:00
hacksalot
8dca5b76e7
refactor: remove AbstractResume base class
(1) AbstractResume adds complexity without contributing utility. There's not
really a clean "class" abstraction in JavaScript to begin with; CoffeeScript
classes, as nice as they are syntactically, occlude the issue even further.

(2) AbstractResume currently functions as a container for exactly two functions
which arguably should live outside the resume class anyway.
2018-02-04 22:49:58 -05:00
hacksalot
caca653666
style: remove unnecessary expression 2018-02-04 01:43:51 -05:00
hacksalot
55196c2766
fix: prevent weird characters in date fields 2018-02-04 01:13:02 -05:00
hacksalot
00067d012a
fix: correctly replace frozen fields in JRS-themed resumes 2018-02-03 16:15:17 -05:00
hacksalot
db6ec47dcc
chore: update stale JavaScript 2018-02-02 04:48:28 -05:00
hacksalot
e6e0b135ed
style: clean up comments in jrs-theme.coffee 2018-02-01 19:22:17 -05:00
hacksalot
54d056c4b7
fix: exclude theme.json from interrogation 2018-02-01 17:56:43 -05:00
hacksalot
688767d415
feat: improve ad hoc theme loading 2018-02-01 07:20:12 -05:00
hacksalot
1dbb78c53f
feat: improve custom theme helper registration 2018-02-01 07:00:59 -05:00
hacksalot
9c096541ce
feat: allow FRESH themes to specify base folder
Currently, FRESH themes contain a `src` folder that contains theme artifacts.
This commit allows the theme to specify a different folder (including "." or
""), supporting arbitrary folder structures.
2018-02-01 06:52:06 -05:00
hacksalot
5161a3a823
feat: include private fields during convert 2018-02-01 06:44:07 -05:00
hacksalot
069506e86d
feat: support custom theme helpers 2018-01-31 21:11:21 -05:00
hacksalot
94fc54174c
refactor: remove unnecessary var 2018-01-31 16:17:46 -05:00
hacksalot
231357badc
[fix] Replace legacy theme detection code. 2018-01-31 16:00:09 -05:00
hacksalot
fde2146a0b
[fix] Private fields: resolve off-by-one error [2]. 2018-01-31 15:22:15 -05:00
hacksalot
c6adab7f9e
[fix] Private fields: Resolve off-by-one error. 2018-01-31 00:10:37 -05:00
hacksalot
a9e35203c2
[style] Tighten syntax in html-pdf-cli-generator.coffee|js. 2018-01-30 12:40:17 -05:00
hacksalot
c913de4bf7
CONVERT: Improve command consistency. 2018-01-30 02:34:58 -05:00
hacksalot
6b125ed907 Support no-escape option for Handlebars themes. 2018-01-29 05:21:46 -05:00
hacksalot
17259cedbf Detect bad option files supplied via --options. 2018-01-29 02:04:00 -05:00
hacksalot
097e81caf8
Merge pull request #191 from ryneeverett/theme-helpers
Register handlebars helpers in themes. Fix #158.
2018-01-27 17:44:36 -05:00
hacksalot
394d5cf821 Merge branch 'master' into dev 2018-01-25 14:48:35 -05:00
hacksalot
d25f8d0f97
Merge pull request #186 from ryneeverett/same-value-dateRange
When date ranges are identical, only show one.
2018-01-25 12:43:48 -05:00
ryneeverett
ec591b9432 Register handlebars helpers in themes. Fix #158.
Try to register all javascript files found in themes as handlebars
helpers.

Note that, unlike all other theme files currently, format directories
are ignored. I don't think there's a use case for format-specific
helpers, and this gives theme developers the flexibility to put them
either in top level files or organize them in subdirectories however
they see fit.

Note also that the theme format seems to be primarily documented in
<https://github.com/fresh-standard/fresh-themes>. This newly recognized
theme file type should be documented there should this branch be merged.
2017-01-20 22:53:16 -05:00
ryneeverett
419c935d82 Add weasyprint pdf generator support.
Note: This is based off
<https://github.com/hacksalot/HackMyResume/pull/185> because I changed
the generator expected arguments in that branch.
2017-01-16 00:15:04 -05:00
ryneeverett
d31f6caf50 When date ranges are identical, only show one. 2017-01-06 22:37:08 -05:00
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
hacksalot
a3ed56dd15 Update JS.
Keep dist/ updated with src/ for the CLI and require() folks.
(package.json goes off dist).
2016-02-15 16:38:01 -05: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
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