Skip to content

Commit 0b010a1

Browse files
committed
Merge branch 'feat-c92'
2 parents 01724a9 + 4cfd7dc commit 0b010a1

File tree

127 files changed

+5357
-3397
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+5357
-3397
lines changed

Diff for: .gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "prh-rules"]
2+
path = prh-rules
3+
url = https://github.com/prh/rules.git

Diff for: .vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Place your settings in this file to overwrite default and user settings.
22
{
3-
"typescript.tsdk": "./node_modules/typescript/lib/"
3+
"typescript.tsdk": "./node_modules/typescript/lib/",
4+
"prh.prhlsPath": "./node_modules/.bin/prhls"
45
}

Diff for: Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# A sample Gemfile
22
source "https://rubygems.org"
33

4-
gem 'review', :git => 'https://github.com/kmuto/review.git'
4+
gem 'review', '2.3.0'
55
gem 'review-peg', '0.2.2'

Diff for: Gemfile.lock

+7-10
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
1-
GIT
2-
remote: https://github.com/kmuto/review.git
3-
revision: eb6845763b8875b89af997277abd0c158f8092b9
4-
specs:
5-
review (2.0.0)
6-
rubyzip
7-
81
GEM
92
remote: https://rubygems.org/
103
specs:
4+
review (2.3.0)
5+
rouge
6+
rubyzip
117
review-peg (0.2.2)
12-
rubyzip (1.2.0)
8+
rouge (2.1.1)
9+
rubyzip (1.2.1)
1310

1411
PLATFORMS
1512
ruby
1613

1714
DEPENDENCIES
18-
review!
15+
review (= 2.3.0)
1916
review-peg (= 0.2.2)
2017

2118
BUNDLED WITH
22-
1.12.5
19+
1.15.3

Diff for: Gruntfile.js

+38-24
Original file line numberDiff line numberDiff line change
@@ -25,94 +25,103 @@ module.exports = grunt => {
2525
`${articles}/*.epub`,
2626
`${articles}/*.html`,
2727
`${articles}/*.xml`,
28-
`${articles}/*.txt`
28+
`${articles}/*.txt`,
29+
`${articles}/*.md`,
2930
]
3031
},
3132
publish: {
3233
src: `${publish}/`
33-
}
34+
},
3435
},
3536
copy: {
3637
publish: {
3738
files: [
38-
{expand: true, cwd: `${articles}/webroot/`, src: ['**'], dest: `${publish}/`}
39-
]
40-
}
39+
{ expand: true, cwd: `${articles}/webroot/`, src: ['**'], dest: `${publish}/` },
40+
],
41+
},
4142
},
4243
shell: {
4344
preprocess: {
4445
options: {
4546
execOptions: {
4647
cwd: articles,
47-
}
48+
},
4849
},
49-
command: `${reviewPreproc} -r --tabwidth=2 *.re`
50+
command: `${reviewPreproc} -r --tabwidth=2 *.re`,
5051
},
5152
sass: {
5253
options: {
5354
execOptions: {
5455
cwd: articles,
55-
}
56+
},
5657
},
57-
command: `node-sass ./ -o ./`
58+
command: `node-sass ./ -o ./`,
5859
},
5960
compile2text: {
6061
options: {
6162
execOptions: {
6263
cwd: articles,
63-
}
64+
},
6465
},
65-
command: `${reviewCompile} --target=text`
66+
command: `${reviewCompile} --target=text`,
67+
},
68+
compile2markdown: {
69+
options: {
70+
execOptions: {
71+
cwd: articles,
72+
},
73+
},
74+
command: `${reviewCompile} --target=markdown`,
6675
},
6776
compile2html: {
6877
options: {
6978
execOptions: {
7079
cwd: articles,
71-
}
80+
},
7281
},
73-
command: `${reviewCompile} --target=html --yaml=config.yml --chapterlink --footnotetext`
82+
command: `${reviewCompile} --target=html --yaml=config.yml --chapterlink --footnotetext`,
7483
},
7584
compile2latex: {
7685
options: {
7786
execOptions: {
7887
cwd: articles,
79-
}
88+
},
8089
},
81-
command: `${reviewCompile} --target=latex --footnotetext`
90+
command: `${reviewCompile} --target=latex --footnotetext`,
8291
},
8392
compile2idgxml: {
8493
options: {
8594
execOptions: {
8695
cwd: articles,
87-
}
96+
},
8897
},
89-
command: `${reviewCompile} --target=idgxml`
98+
command: `${reviewCompile} --target=idgxml`,
9099
},
91100
compile2web: {
92101
options: {
93102
execOptions: {
94103
cwd: articles,
95-
}
104+
},
96105
},
97-
command: `${reviewWebMaker} config.yml`
106+
command: `${reviewWebMaker} config.yml`,
98107
},
99108
compile2pdf: {
100109
options: {
101110
execOptions: {
102111
cwd: articles,
103-
}
112+
},
104113
},
105-
command: `${reviewPdfMaker} config.yml`
114+
command: `${reviewPdfMaker} config.yml`,
106115
},
107116
compile2epub: {
108117
options: {
109118
execOptions: {
110119
cwd: articles,
111-
}
120+
},
112121
},
113-
command: `${reviewEpubMaker} config.yml`
122+
command: `${reviewEpubMaker} config.yml`,
114123
},
115-
}
124+
},
116125
});
117126

118127
function generateTask(target, pretask) {
@@ -130,6 +139,11 @@ module.exports = grunt => {
130139
"原稿をコンパイルしてTextファイルにする",
131140
generateTask("text"));
132141

142+
grunt.registerTask(
143+
"markdown",
144+
"原稿をコンパイルしてMarkdownファイルにする",
145+
generateTask("markdown"));
146+
133147
grunt.registerTask(
134148
"html",
135149
"原稿をコンパイルしてHTMLファイルにする",

Diff for: articles/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
*.html
22
*.txt
3+
*.md
34
*.xml
45
*.tex
56

0 commit comments

Comments
 (0)