Skip to content

Commit

Permalink
Merge pull request #111 from kwappa/enable-option-contentdir-on-grunt…
Browse files Browse the repository at this point in the history
…file

Enabled contentdir option in config.yml at Gruntfile.js
  • Loading branch information
vvakame authored May 2, 2024
2 parents 5c0fa7d + f47dc5b commit 06f64ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const reviewTextMaker = `${reviewPrefix}rake text ${reviewPostfix}`;
const reviewIDGXMLMaker = `${reviewPrefix}rake idgxml ${reviewPostfix}`;
const reviewVivliostyle = `${reviewPrefix}rake vivliostyle ${reviewPostfix}`;

const reviewContentDir = bookConfig.contentdir || '.'

module.exports = grunt => {
grunt.initConfig({
clean: {
Expand All @@ -40,7 +42,7 @@ module.exports = grunt => {
cwd: articles,
}
},
command: `${reviewPreproc} -r --tabwidth=2 *.re`
command: `${reviewPreproc} -r --tabwidth=2 ${reviewContentDir}/*.re`
},
compile2text: {
options: {
Expand Down

0 comments on commit 06f64ab

Please sign in to comment.