jsonresume-theme-engineering-leader 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@
12
12
  "<node_internals>/**"
13
13
  ],
14
14
  "runtimeExecutable": "npm",
15
- "runtimeArgs": ["run", "export"],
15
+ "runtimeArgs": ["run", "export-html"],
16
16
  "console": "integratedTerminal"
17
17
  }
18
18
  ]
@@ -8,8 +8,136 @@
8
8
 
9
9
  <title>Richard Hendriks</title>
10
10
 
11
- <link rel="stylesheet" href="style.css" />
12
-
11
+ <style>body {
12
+ font-family: Arial, Helvetica, sans-serif;
13
+ font-size: 11px;
14
+ margin: 24px 48px;
15
+ line-height: 1.5;
16
+ }
17
+
18
+ h1 {
19
+ font-size: 26px;
20
+ text-align: center;
21
+ margin: 0;
22
+ line-height: 1.5;
23
+ }
24
+
25
+ h2 {
26
+ border-width: 1px;
27
+ border-style: none none solid none;
28
+ margin: 10px 0 2.5px 0;
29
+ line-height: 2em;
30
+ }
31
+
32
+ h3 {
33
+ display: inline;
34
+ }
35
+
36
+ section {
37
+ margin: 3px 0;
38
+ }
39
+
40
+ ul {
41
+ margin: 0;
42
+ padding-left: 20px;
43
+ }
44
+
45
+ a {
46
+ text-decoration: none;
47
+ color: black;
48
+ }
49
+
50
+ .item {
51
+ margin-top: 8px;
52
+ }
53
+
54
+ .item>.item-header {
55
+ float: left;
56
+ display: block;
57
+ }
58
+
59
+ .item>.item-header>.item-header-title {
60
+ font-weight: bold;
61
+ white-space: nowrap;
62
+ }
63
+
64
+ .item>.item-header>.item-header-subtitle {
65
+ font-weight: bold;
66
+ white-space: nowrap;
67
+ }
68
+
69
+ .item>.item-header>.item-header-title>.location {
70
+ font-weight: normal;
71
+ white-space: nowrap;
72
+ }
73
+
74
+ .item>.item-details {
75
+ float: right;
76
+ text-align: right;
77
+ }
78
+
79
+ .item>.item-details>.item-details-title {
80
+ font-weight: bold;
81
+ }
82
+
83
+ .item>.item-details>.date {
84
+ font-weight: bold;
85
+ white-space: nowrap;
86
+ }
87
+
88
+ .item>.item-header>.item-header-subtitle>.degree {
89
+ font-weight: normal;
90
+ }
91
+
92
+ .clearfix {
93
+ clear: both;
94
+ }
95
+
96
+ .centered {
97
+ text-align: center;
98
+ }
99
+
100
+ /* Section specific */
101
+ /* basics */
102
+ .vertical-separator {
103
+ text-align: center;
104
+ padding: 0 10px;
105
+ }
106
+
107
+ /*
108
+ .vertical-separator:not(:first-child) {
109
+ border-left: 1px solid #000;
110
+ text-align: center;
111
+ }
112
+ */
113
+
114
+ /* Set some print settings. */
115
+ @media print {
116
+ @page {
117
+ size: portrait;
118
+ margin: 10mm 25mm;
119
+ }
120
+
121
+ .resume {
122
+ max-width: 100%;
123
+ border: 0px;
124
+ background: #fff;
125
+ box-shadow: none;
126
+ -webkit-box-shadow: none;
127
+ }
128
+
129
+ body,
130
+ html,
131
+ .resume {
132
+ margin: 0px;
133
+ padding: 0px;
134
+ }
135
+
136
+ .controls {
137
+ display: none;
138
+ }
139
+ }</style>
140
+
13
141
  </head>
14
142
 
15
143
  <body>
Binary file
Binary file
package/index.js CHANGED
@@ -15,14 +15,13 @@ handlebars.registerHelper({
15
15
  function render(resume) {
16
16
  let dir = __dirname,
17
17
  css = fs.readFileSync(dir + '/style.css', 'utf-8'),
18
- resumeTemplate = fs.readFileSync(dir + '/resume.hbs', 'utf-8');
18
+ template = fs.readFileSync(dir + '/resume.hbs', 'utf-8');
19
19
 
20
20
  let Handlebars = handlebarsWax(handlebars);
21
21
 
22
- return Handlebars.compile(resumeTemplate)({
23
- css: css,
24
- resume: resume
25
- });
22
+ // inline the CSS to avoid path related issues while developing
23
+ const compiled = Handlebars.compile(template);
24
+ return compiled({ resume: resume, style: `<style>${css}</style>` });
26
25
  }
27
26
 
28
27
  module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsonresume-theme-engineering-leader",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "JSON Resume theme for Engineering leaders",
5
5
  "keywords": [
6
6
  "jsonresume",
@@ -18,7 +18,8 @@
18
18
  "license": "MIT",
19
19
  "scripts": {
20
20
  "start": "resume serve --theme .",
21
- "export": "resume export --resume example-resume.json --theme ./ example-resume.pdf"
21
+ "export-html": "resume export --resume example-resume.json --theme ./ example-resume.html",
22
+ "export-pdf": "resume export --resume example-resume.json --theme ./ example-resume.pdf"
22
23
  },
23
24
  "dependencies": {
24
25
  "address-format": "0.0.3",
package/resume.hbs CHANGED
@@ -8,8 +8,8 @@
8
8
 
9
9
  <title>{{ resume.basics.name }}</title>
10
10
 
11
- <link rel="stylesheet" href="style.css" />
12
-
11
+ {{{ style }}}
12
+
13
13
  </head>
14
14
 
15
15
  <body>