Skip to content

Commit d5f9179

Browse files
committed
minor fixes
1 parent c2a4c6d commit d5f9179

5 files changed

Lines changed: 7 additions & 9 deletions

File tree

ebook

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#!/bin/bash
22

3-
# need /h: prefix for //h2 //h3 toc
4-
#/Applications/calibre.app/Contents/MacOS/ebook-convert ~/Downloads/2.html 2.pdf --authors "Ilya Kantor" --language ru --extra-css=/js/javascript-nodejs/public/styles/base.css --chapter "//*[((name()='h2' or name()='h3') and re:test(., '.*', 'i'))]" --level1-toc '//h2' --level2-toc '//h3' -vv
5-
#/Applications/calibre.app/Contents/MacOS/ebook-convert ~/Downloads/2.html 2.pdf --level1-toc '//h2' --level2-toc '//h3' -vv
3+
# CSS_NO_HASH disables hash in CSS, need for ebook
4+
CSS_NO_HASH=1 NODE_ENV=production gulp edit --harmony
65

7-
#/Applications/calibre.app/Contents/MacOS/ebook-convert ~/Downloads/2.html 2.epub --embed-all-fonts --epub-inline-toc --level1-toc '//h2' --level2-toc '//h3' -vv
8-
#/Applications/calibre.app/Contents/MacOS/ebook-convert ~/Downloads/3.html 3.pdf --embed-all-fonts --max-toc-links 0 --level1-toc '//h:h2' --level2-toc '//h:h3' --level3-toc '//h:h4' -vv
9-
/Applications/calibre.app/Contents/MacOS/ebook-convert ~/Downloads/3.html 3.epub --extra-css=/js/javascript-nodejs/public/styles/base.css --embed-all-fonts --max-toc-links 0 --level1-toc '//h:h2' --level2-toc '//h:h3' --level3-toc '//h:h4' -vv

edit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/bash
2+
23
NODE_ENV=production gulp edit --harmony
34

modules/lib/stylusAsset.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ module.exports = function(options) {
3030
var ext = path.extname(url.val);
3131
var filepath = url.val.slice(0, url.val.length - ext.length);
3232

33-
var newUrl = (process.env.NODE_ENV == 'development') ? (url.val + '?' + version) :
33+
var newUrl = process.env.CSS_NO_HASH ? url.val :
34+
(process.env.NODE_ENV == 'development') ? (url.val + '?' + version) :
3435
filepath + '.v' + version + ext;
3536

3637
literal = new nodes.Literal('url("../i/' + newUrl + '")');

nginx/mime.types

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
types {
22
application/font-woff woff;
3+
application/font-sfnt otf;
34
text/html html htm shtml;
45
text/css css;
56
text/xml xml rss;

styles/blocks/font/font-icons.styl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
@font-face
22
font-family 'FontIcons'
3-
src asset('icons.woff') format('woff'),
4-
asset('icons.otf') format("opentype");
3+
src asset('icons.woff') format('woff'), asset('icons.otf') format("opentype");
54
font-weight normal
65
font-style normal
76

0 commit comments

Comments
 (0)