Skip to content

Commit 06f64ab

Browse files
authored
Merge pull request #111 from kwappa/enable-option-contentdir-on-gruntfile
Enabled contentdir option in config.yml at Gruntfile.js
2 parents 5c0fa7d + f47dc5b commit 06f64ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Gruntfile.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const reviewTextMaker = `${reviewPrefix}rake text ${reviewPostfix}`;
1818
const reviewIDGXMLMaker = `${reviewPrefix}rake idgxml ${reviewPostfix}`;
1919
const reviewVivliostyle = `${reviewPrefix}rake vivliostyle ${reviewPostfix}`;
2020

21+
const reviewContentDir = bookConfig.contentdir || '.'
22+
2123
module.exports = grunt => {
2224
grunt.initConfig({
2325
clean: {
@@ -40,7 +42,7 @@ module.exports = grunt => {
4042
cwd: articles,
4143
}
4244
},
43-
command: `${reviewPreproc} -r --tabwidth=2 *.re`
45+
command: `${reviewPreproc} -r --tabwidth=2 ${reviewContentDir}/*.re`
4446
},
4547
compile2text: {
4648
options: {

0 commit comments

Comments
 (0)