Update build to account for the pdf producers odd behavior with paths.

This commit is contained in:
Craig Davis 2012-03-04 16:25:49 -06:00
parent abc35ac94b
commit 370b936037
2 changed files with 10 additions and 2 deletions

8
.gitignore vendored
View File

@ -6,3 +6,11 @@ assets/templates/default.html
output/resume.pdf
output/resume.html
resume/craig.md
output/craig-pdf.html
output/craig.html
output/craig.pdf

View File

@ -63,7 +63,7 @@ $css = new AssetCollection(
$style = $css->dump();
$template = file_get_contents(APPLICATION_BASE_PATH . '/assets/templates/default.html');
$resume = file_get_contents(APPLICATION_BASE_PATH . '/resume/resume.md');
$resume = file_get_contents($source);
$resume = Markdown($resume);
$resume = SmartyPants($resume);
@ -87,7 +87,7 @@ $rendered = $m->render(
);
file_put_contents(
APPLICATION_BASE_PATH . '/output/resume.html',
$output,
$rendered
);