This commit is contained in:
Morten Olsen
2021-08-26 14:40:51 +02:00
parent 315fb5721c
commit 0cc7078b1b
21 changed files with 4051 additions and 109 deletions

10
scripts/build-latex.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
FORMAT=$1; shift
docker run \
--user "$UID:$GID" \
--net=none \
-v $(pwd):/var/texlive \
blang/latex:ubuntu
lualatex "latex/$FORMAT.tex"

55
scripts/update-readme.js Normal file
View File

@@ -0,0 +1,55 @@
const data = require('../data.json');
const sections = {
info: data => `
## Basic Info
${data.info.map(d => `* **${d.name}**: ${d.value}`).join('\n')}
`,
text: data => `
## ${data.title}
${data.content}
`,
skills: data => `
## ${data.title}
${data.description}
${data.skills.map(d => `* **${d.title}**: ${d.level} `).join('\n')}
`,
experiences: data => `
## ${data.title}
${data.positions.map(d => `
### [${d.company.name}](${d.company.webpage})
**${d.title}** _(${d.startDate} - ${d.endDate})_
${d.description}
`).join('')}
`,
projects: data => `
## ${data.title}
${data.description}
${data.projects.map(d => `
**[${d.name}](https://${d.url})**
_${d.tagline}_
${d.description}
`).join('\n')}
`,
};
let document = `
# Curriculum Vitae
**[Download the latest version](https://github.com/morten-olsen/curriculum-vitae/releases/latest)**
${data.map(d => sections[d.type](d.data)).join('\n------\n')}
`;
console.log(document);