diff --git a/.gitignore b/.gitignore index 1b47766c..cf0feff8 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ articles/*.html # articles/*.md articles/*.xml articles/*.txt +articles/_refiles/ \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js index 4e2e6088..8efde0a4 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -40,7 +40,7 @@ module.exports = grunt => { cwd: articles, } }, - command: `${reviewPreproc} -r --tabwidth=2 ${reviewContentDir}/*.re` + command: `${reviewContentDir === '_refiles' ? "echo 'skip preprocess'" : `${reviewPreproc} -r --tabwidth=2 ${reviewContentDir}/*.re`}` }, compile2text: { options: { diff --git a/articles/lib/tasks/z01_pandoc2review.rake b/articles/lib/tasks/z01_pandoc2review.rake index ff7b0243..83ba9dcd 100644 --- a/articles/lib/tasks/z01_pandoc2review.rake +++ b/articles/lib/tasks/z01_pandoc2review.rake @@ -28,6 +28,7 @@ def make_mdre(ch, p2r, path) elsif File.exist?(ch.sub(/\.re\Z/, '.md')) # md file system("#{p2r} #{ch.sub(/\.re\Z/, '.md')} > #{path}/#{ch}") end + sh "review-preproc -r --tabwidth=2 #{File.join(path, ch)}" end def yaml_load_file_compatible(file)