Skip to content

Commit 77783f5

Browse files
committed
fix review comments for web highlighting
1 parent 71ff710 commit 77783f5

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

articles/config-epub-jp.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ imagedir: images_jp
173173
# font_ext: ["ttf", "woff", "otf"]
174174

175175
# ソースコードハイライトを利用する (rouge,pygmentsには外部gemが必要)
176-
highlight:
177-
html: "rouge"
176+
# highlight:
177+
# html: "rouge"
178178
# latex: "listings"
179179

180180
# カタログファイル名を指定する
@@ -469,6 +469,8 @@ pdfmaker:
469469
# という構成にする必要がある(インデントさせる)
470470
#
471471
webmaker:
472+
highlight:
473+
html: "rouge"
472474
stylesheet: ["style.css", "style-web.css"]
473475

474476
# TechBooster Re:VIEW-Template独自設定

articles/style.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,11 @@ table.highlight,
114114
.rouge-table {
115115
border: 0;
116116
width: 100%;
117-
margin-bottom: $paragraph-margin-bottom;
117+
margin-bottom: $font-size;
118118
background: #191a1c;
119119
border-radius: 6px;
120120
overflow: hidden;
121+
font-size: 0.9em;
121122
}
122123

123124
table.highlight td,
@@ -140,7 +141,10 @@ table.highlight td,
140141
.rouge-code pre {
141142
margin: 0;
142143
padding: 0.75em 1em;
144+
border: 0;
145+
border-radius: 0;
143146
overflow-x: auto;
147+
line-height: 1.6;
144148
}
145149

146150
.rouge-code {

0 commit comments

Comments
 (0)