1
0
mirror of https://gitlab.com/MisterBiggs/Resume.git synced 2025-06-16 01:16:39 +00:00

moving to pandoc_resume

This commit is contained in:
Anson 2019-05-26 12:13:41 -07:00
parent ea02ed6239
commit 3b6b466cf4
60 changed files with 566 additions and 16 deletions

33
.docker/resume.dockerfile Normal file
View File

@ -0,0 +1,33 @@
FROM ubuntu
# prepare a user which runs everything locally! - required in child images!
RUN useradd --user-group --create-home --shell /bin/false app
ENV HOME=/home/app
WORKDIR $HOME
RUN apt-get update && \
apt-get install -y \
build-essential \
wget \
context \
&& rm -rf /var/lib/apt/lists/*
RUN wget https://github.com/jgm/pandoc/releases/download/2.2.1/pandoc-2.2.1-1-amd64.deb
RUN dpkg -i pandoc-2.2.1-1-amd64.deb && rm pandoc-*.deb
#Cleanup to reduce container size
RUN apt-get remove -y wget && \
apt-get autoclean && \
apt-get clean
ENV APP_NAME=resume
# before switching to user we need to set permission properly
# copy all files, except the ignored files from .dockerignore
COPY . $HOME/$APP_NAME/
COPY ./Makefile $HOME/$APP_NAME/
RUN chown -R app:app $HOME/*
USER app
WORKDIR $HOME/$APP_NAME
RUN make clean

9
.dockerignore Normal file
View File

@ -0,0 +1,9 @@
*.tuc
*.log
*.pdf
*.html
resume.tex
*.swo
*.swp
*.docx
*.rtf

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*.log
*.swo
*.swp
output/

17
ISSUE_TEMPLATE.md Normal file
View File

@ -0,0 +1,17 @@
### Expected Behavior
### Actual Behavior
### Steps to reproduce the behavior
### Versions
Pandoc and context versions
pandoc --version
context --version
OS information on non-Windows can use one of the following commands
cat /etc/*-release
lsb_release -a

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2014 Mark Szepieniec
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

58
Makefile Normal file
View File

@ -0,0 +1,58 @@
OUT_DIR=output
IN_DIR=markdown
STYLES_DIR=styles
STYLE=chmduquesne
all: html pdf docx rtf
pdf: init
for f in $(IN_DIR)/*.md; do \
FILE_NAME=`basename $$f | sed 's/.md//g'`; \
echo $$FILE_NAME.pdf; \
pandoc --standalone --template $(STYLES_DIR)/$(STYLE).tex \
--from markdown --to context \
--variable papersize=A4 \
--output $(OUT_DIR)/$$FILE_NAME.tex $$f > /dev/null; \
mtxrun --path=$(OUT_DIR) --result=$$FILE_NAME.pdf --script context $$FILE_NAME.tex > $(OUT_DIR)/context_$$FILE_NAME.log 2>&1; \
done
html: init
for f in $(IN_DIR)/*.md; do \
FILE_NAME=`basename $$f | sed 's/.md//g'`; \
echo $$FILE_NAME.html; \
pandoc --standalone --include-in-header $(STYLES_DIR)/$(STYLE).css \
--lua-filter=pdc-links-target-blank.lua \
--from markdown --to html \
--output $(OUT_DIR)/$$FILE_NAME.html $$f \
--metadata pagetitle=$$FILE_NAME;\
done
docx: init
for f in $(IN_DIR)/*.md; do \
FILE_NAME=`basename $$f | sed 's/.md//g'`; \
echo $$FILE_NAME.docx; \
pandoc --standalone $$SMART $$f --output $(OUT_DIR)/$$FILE_NAME.docx; \
done
rtf: init
for f in $(IN_DIR)/*.md; do \
FILE_NAME=`basename $$f | sed 's/.md//g'`; \
echo $$FILE_NAME.rtf; \
pandoc --standalone $$SMART $$f --output $(OUT_DIR)/$$FILE_NAME.rtf; \
done
init: dir version
dir:
mkdir -p $(OUT_DIR)
version:
PANDOC_VERSION=`pandoc --version | head -1 | cut -d' ' -f2 | cut -d'.' -f1`; \
if [ "$$PANDOC_VERSION" -eq "2" ]; then \
SMART=-smart; \
else \
SMART=--smart; \
fi \
clean:
rm -f $(OUT_DIR)/*

13
docker-compose.yml Normal file
View File

@ -0,0 +1,13 @@
version: '2'
services:
resume-make:
build:
context: .
dockerfile: ./.docker/resume.dockerfile
command: make
container_name: resume-make
image: resume-make
volumes:
- .:/home/app/resume

100
markdown/resume.md Normal file
View File

@ -0,0 +1,100 @@
Anson Biggs
============
----
> In this style, the resume starts with a blockquote, where
> you can briefly list your specialties, or include a salient
> quote. Ending a line with a backslash forces a line break.
----
Education
---------
2010-2014 (expected)
: **PhD, Computer Science**; Awesome University (MyTown)
*Thesis title: Deep Learning Approaches to the Self-Awesomeness
Estimation Problem*
2007-2010
: **BSc, Computer Science and Electrical Engineering**; University of
HomeTown (HomeTown)
*Minor: Awesomeology*
Experience
----------
**Your Most Recent Work Experience:**
Short text containing the type of work done, results obtained,
lessons learned and other remarks. Can also include lists and
links:
* First item
* Item with [link](http://www.example.com). Links will work both in
the html and pdf versions.
**That Other Job You Had**
Also with a short description.
Technical Experience
--------------------
My Cool Side Project
: For items which don't have a clear time ordering, a definition
list can be used to have named items.
* These items can also contain lists, but you need to mind the
indentation levels in the markdown source.
* Second item.
Open Source
: List open source contributions here, perhaps placing emphasis on
the project names, for example the **Linux Kernel**, where you
implemented multithreading over a long weekend, or **node.js**
(with [link](http://nodejs.org)) which was actually totally
your idea...
Programming Languages
: **first-lang:** Here, we have an itemization, where we only want
to add descriptions to the first few items, but still want to
mention some others together at the end. A format that works well
here is a description list where the first few items have their
first word emphasized, and the last item contains the final few
emphasized terms. Notice the reasonably nice page break in the pdf
version, which wouldn't happen if we generated the pdf via html.
: **second-lang:** Description of your experience with second-lang,
perhaps again including a [link] [ref], this time placing the url
reference elsewhere in the document to reduce clutter (see source
file).
: **obscure-but-impressive-lang:** We both know this one's pushing
it.
: Basic knowledge of **C**, **x86 assembly**, **forth**, **Common Lisp**
[ref]: https://github.com/githubuser/superlongprojectname
Extra Section, Call it Whatever You Want
----------------------------------------
* Human Languages:
* English (native speaker)
* ???
* This is what a nested list looks like.
* Random tidbit
* Other sort of impressive-sounding thing you did
----
> <email@example.com> • +00 (0)00 000 0000 • XX years old\
> address - Mytown, Mycountry

View File

Before

Width:  |  Height:  |  Size: 202 B

After

Width:  |  Height:  |  Size: 202 B

View File

Before

Width:  |  Height:  |  Size: 202 B

After

Width:  |  Height:  |  Size: 202 B

View File

Before

Width:  |  Height:  |  Size: 382 KiB

After

Width:  |  Height:  |  Size: 382 KiB

View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

Before

Width:  |  Height:  |  Size: 3.1 MiB

After

Width:  |  Height:  |  Size: 3.1 MiB

View File

Before

Width:  |  Height:  |  Size: 113 KiB

After

Width:  |  Height:  |  Size: 113 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

23
old/readme.md Normal file
View File

@ -0,0 +1,23 @@
# Personal Resume
This repository contains my personal which was originally based off of a template found on <a href="html5up.net">HTML5 UP</a>. I plan on updating this website as my resume grows. The main reason that this is on GitLab is so that I can practice useing git version control, but if you have any comments, or would like to add anything to the site feel free to put in a PR or contact me.
The website is live at http://ansonbiggs.com and hosted on a https://www.digitalocean.com/ droplet.
The test.html is there just for examples of what is possible in the future and are left over from the original template.
## Credits:
### Template:
* html5up.net | @ajlkn
### Icons:
* Font Awesome (fortawesome.github.com/Font-Awesome)
### Other:
* jQuery (jquery.com)
* html5shiv.js (@afarkas @jdalton @jon_neal @rem)
* CSS3 Pie (css3pie.com)
* Respond.js (j.mp/respondjs)
* Skel (skel.io)
* formspree.io

View File

@ -0,0 +1,15 @@
-- Add target="_blank" attributes to all http links in a Pandoc document
local function add_target_blank (link)
if string.match(link.target, '^http') then -- here .target == href attribute
link.attributes.target = '_blank' -- here .target == traget attribute
end
return link
end
-- remove lines 4 and 6 to add target="_blank" to all links, not just http(s)
return {
{ Link = add_target_blank }
}

View File

@ -1,23 +1,76 @@
# Personal Resume
The Markdown Resume
===================
This repository contains my personal which was originally based off of a template found on <a href="html5up.net">HTML5 UP</a>. I plan on updating this website as my resume grows. The main reason that this is on GitLab is so that I can practice useing git version control, but if you have any comments, or would like to add anything to the site feel free to put in a PR or contact me.
The website is live at http://ansonbiggs.com and hosted on a https://www.digitalocean.com/ droplet.
### Instructions
```bash
git clone https://github.com/mszep/pandoc_resume
cd pandoc_resume
vim markdown/resume.md # insert your own resume info
make
```
The test.html is there just for examples of what is possible in the future and are left over from the original template.
### Running Dockerized
```bash
git clone https://github.com/mszep/pandoc_resume
cd pandoc_resume
vim markdown/resume.md # insert your own resume info
docker-compose up -d
```
### Requirements
## Credits:
* ConTeXt 0.6X
* pandoc 2.x
* 1.x is deprecated
### Template:
* html5up.net | @ajlkn
Last tested on the above versions and that's not to say the later versions won't work. Please try to use the latest versions when possible.
### Icons:
* Font Awesome (fortawesome.github.com/Font-Awesome)
#### Debian / Ubuntu
### Other:
* jQuery (jquery.com)
* html5shiv.js (@afarkas @jdalton @jon_neal @rem)
* CSS3 Pie (css3pie.com)
* Respond.js (j.mp/respondjs)
* Skel (skel.io)
* formspree.io
```bash
sudo apt install pandoc context
```
#### Fedora
```bash
sudo dnf install pandoc texlive-collection-context
```
#### Arch
```bash
sudo pacman -S pandoc texlive-core
```
#### OSX
```bash
brew install pandoc
brew cask install mactex
```
### Troubleshooting
#### Get versions
Check if the dependencies are up to date.
```
context --version
pandoc --version
```
#### Cannot process lua
Currently pandoc 1.x may be within your distro's repos and the latest version should be used. See the
[pandoc releases](https://github.com/jgm/pandoc/releases) for your distro.
e.g. for Debian / Ubuntu
```
wget https://github.com/jgm/pandoc/releases/download/2.2.1/pandoc-2.2.1-1-amd64.deb
sudo dpkg -i pandoc-2.2.1-1-amd64.deb
```
#### Context executable cannot be found
Some users have reported problems where their system does not properly find the ConTeXt
executable, leading to errors like `Cannot find context.lua` or similar. It has been found
that running `mtxrun --generate`, ([suggested on texlive-2011-context-problem](
https://tex.stackexchange.com/questions/53892/texlive-2011-context-problem)), can fix the
issue.

94
styles/chmduquesne.css Normal file
View File

@ -0,0 +1,94 @@
<style type="text/css">
/*
* Copyright 2013 Christophe-Marie Duquesne <chmd@chmd.fr>
*
* CSS for making a resume with pandoc. Inspired by moderncv.
*
* This CSS document is delivered to you under the CC BY-SA 3.0 License.
* https://creativecommons.org/licenses/by-sa/3.0/deed.en_US
*/
/* Whole document */
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
max-width: 800px;
margin: auto;
background: #FFFFFF;
padding: 10px 10px 10px 10px;
}
/* Title of the resume */
h1 {
font-size: 55px;
color: #757575;
text-align:center;
margin-bottom:15px;
}
h1:hover {
background-color: #757575;
color: #FFFFFF;
text-shadow: 1px 1px 1px #333;
}
/* Titles of categories */
h2 {
/* This is called "sectioncolor" in the ConTeXt stylesheet. */
color: #397249;
}
/* There is a bar just before each category */
h2:before {
content: "";
display: inline-block;
margin-right:1%;
width: 16%;
height: 10px;
/* This is called "rulecolor" in the ConTeXt stylesheet. */
background-color: #9CB770;
}
h2:hover {
background-color: #397249;
color: #FFFFFF;
text-shadow: 1px 1px 1px #333;
}
/* Definitions */
dt {
float: left;
clear: left;
width: 17%;
/*font-weight: bold;*/
}
dd {
margin-left: 17%;
}
p {
margin-top:0;
margin-bottom:7px;
}
/* Blockquotes */
blockquote {
text-align: center
}
/* Links */
a {
text-decoration: none;
color: #397249;
}
a:hover, a:active {
background-color: #397249;
color: #FFFFFF;
text-decoration: none;
text-shadow: 1px 1px 1px #333;
}
/* Horizontal separators */
hr {
color: #A6A6A6;
}
table {
width: 100%;
}
</style>

110
styles/chmduquesne.tex Normal file
View File

@ -0,0 +1,110 @@
% Copyright 2013 Christophe-Marie Duquesne <chmd@chmd.fr>
% Copyright 2014 Mark Szepieniec <http://github.com/mszep>
%
% ConText style for making a resume with pandoc. Inspired by moderncv.
%
% This CSS document is delivered to you under the CC BY-SA 3.0 License.
% https://creativecommons.org/licenses/by-sa/3.0/deed.en_US
\startmode[*mkii]
\enableregime[utf-8]
\setupcolors[state=start]
\stopmode
$if(mainlang)$
\mainlanguage[$mainlang$]
$endif$
\setupcolor[hex]
\definecolor[titlegrey][h=757575]
\definecolor[sectioncolor][h=397249]
\definecolor[rulecolor][h=9cb770]
% Enable hyperlinks
\setupinteraction[state=start, color=sectioncolor]
\setuppapersize [$if(papersize)$$papersize$$else$letter$endif$][$if(papersize)$$papersize$$else$letter$endif$]
\setuplayout [width=middle, height=middle,
backspace=20mm, cutspace=0mm,
topspace=10mm, bottomspace=20mm,
header=0mm, footer=0mm]
%\setuppagenumbering[location={footer,center}]
\setupbodyfont[11pt, helvetica]
\setupwhitespace[medium]
\setupblackrules[width=31mm, color=rulecolor]
\setuphead[chapter] [style=\tfd]
\setuphead[section] [style=\tfd\bf, color=titlegrey, align=middle]
\setuphead[subsection] [style=\tfb\bf, color=sectioncolor, align=right,
before={\leavevmode\blackrule\hspace}]
\setuphead[subsubsection][style=\bf]
$if(number-sections)$
$else$
\setuphead[chapter, section, subsection, subsubsection][number=no]
$endif$
%\setupdescriptions[width=10mm]
\definedescription
[description]
[headstyle=bold, style=normal,
location=hanging, width=18mm, distance=14mm, margin=0cm]
\setupitemize[autointro, packed] % prevent orphan list intro
\setupitemize[indentnext=no]
\setupfloat[figure][default={here,nonumber}]
\setupfloat[table][default={here,nonumber}]
\setuptables[textwidth=max, HL=none]
\setupxtable[frame=off,option={stretch,width}]
\setupthinrules[width=15em] % width of horizontal rules
\setupdelimitedtext
[blockquote]
[before={\setupalign[middle]},
indentnext=no,
]
$if(toc)$
\setupcombinedlist[content][list={$placelist$}]
$endif$
$for(header-includes)$
$header-includes$
$endfor$
\starttext
$if(title)$
\startalignment[center]
\blank[2*big]
{\tfd $title$}
$if(author)$
\blank[3*medium]
{\tfa $for(author)$$author$$sep$\crlf $endfor$}
$endif$
$if(date)$
\blank[2*medium]
{\tfa $date$}
$endif$
\blank[3*medium]
\stopalignment
$endif$
$for(include-before)$
$include-before$
$endfor$
$if(toc)$
\placecontent
$endif$
$body$
$for(include-after)$
$include-after$
$endfor$
\stoptext