From 370b9360377d536452eb5551c874d15d8271a1f9 Mon Sep 17 00:00:00 2001 From: Craig Davis Date: Sun, 4 Mar 2012 16:25:49 -0600 Subject: [PATCH] Update build to account for the pdf producers odd behavior with paths. --- .gitignore | 8 ++++++++ build/build.php | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index d5b44df..f3216a4 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/build/build.php b/build/build.php index 4841f51..8d271da 100644 --- a/build/build.php +++ b/build/build.php @@ -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 );