Permalink
Browse files

Add Resume X

  • Loading branch information...
relaxdiego committed Sep 24, 2017
1 parent c3c2840 commit 1ad70fa95b72ae9bca80f299503a002189c95727
Showing with 1,324 additions and 14 deletions.
  1. +29 −6 Makefile
  2. BIN resume.pdf
  3. BIN resumex.pdf
  4. +5 −0 resumex/index.adoc
  5. +928 −0 resumex/index.html
  6. +351 −0 resumex/resume.adoc
  7. +5 −4 script/autorenderer
  8. +3 −2 script/resume-html
  9. +3 −2 script/resume-pdf
@@ -1,12 +1,35 @@
ROOTDIR=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))

.PHONY: resume
.PHONY: debug resume
.DEFAULT: resume

resume: resume.pdf resume/index.html
resume_series := resume
resume_src := $(resume_series)/*.adoc
resume_out := $(addprefix $(resume_series),.pdf /index.html)

resume.pdf: resume/resume.adoc resume/index.adoc
@script/resume-pdf
resumex_series := resumex
resumex_src := $(resumex_series)/*.adoc
resumex_out := $(addprefix $(resumex_series),.pdf /index.html)

resume/index.html: resume/resume.adoc resume/index.adoc
@script/resume-html
resume: $(resume_out) $(resumex_out)

debug:
@echo "======================="
@echo $(resume_src)
@echo $(resume_out)
@echo "======================="
@echo $(resumex_src)
@echo $(resumex_out)
@echo "======================="

resume.pdf: $(resume_src)
@script/resume-pdf resume

resume/index.html: $(resume_src)
@script/resume-html resume

resumex.pdf: $(resumex_src)
@script/resume-pdf resumex

resumex/index.html: $(resumex_src)
@script/resume-html resumex
BIN +0 Bytes (100%) resume.pdf
Binary file not shown.
BIN +105 KB resumex.pdf
Binary file not shown.
@@ -0,0 +1,5 @@
// I'm including the main resume instead of in-lining it here to separate it
// from jekyll-specific conent in case I want to render it to other formats
// in the future.
:last-update-label!:
include::./resumex/resume.adoc[]

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -7,13 +7,14 @@ make resume
# `brew install fswatch`

# This loop was inspired by https://superuser.com/a/181543/774060
fswatch -x ./resume |
while read -r path events; do
filename=$(basename "$path")
fswatch -x ./resume ./resumex |
while read -r abspath events; do
relpath=${abspath#$(pwd)/}
filename=$(basename "$abspath")
extension="${filename##*.}"

if [ "$extension" = "adoc" ]; then
echo "Source file changed: $filename"
echo "Source file changed: $relpath"
make resume
fi
done
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
resume_series=$1
cd $(dirname "${BASH_SOURCE[0]}")/..
asciidoctor --base-dir ./ resume/index.adoc
echo " rendered resume/index.html"
asciidoctor --base-dir ./ $resume_series/index.adoc
echo " rendered $resume_series/index.html"
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
resume_series=$1
cd $(dirname "${BASH_SOURCE[0]}")/..
asciidoctor-pdf --base-dir ./ --destination-dir ./ --out-file resume.pdf resume/index.adoc
echo " rendered ./resume.pdf"
asciidoctor-pdf --base-dir ./ --destination-dir ./ --out-file $resume_series.pdf $resume_series/index.adoc
echo " rendered ./$resume_series.pdf"

0 comments on commit 1ad70fa

Please sign in to comment.