softcover 1.1.7 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d457ce733f778fdeb848d5f889b1686f11a09ff
4
- data.tar.gz: b9d1886ffdde15e50488dd72e1b7e71c4a8d4ed1
3
+ metadata.gz: 8b8e44ecd6c9967e2606fd66a53ddd7a4de9dc58
4
+ data.tar.gz: 538319dcf61ccdfbeed38d12399ca5caf6d7c9a3
5
5
  SHA512:
6
- metadata.gz: b4692af5acbc5ce82defe290f8ce7e54d86505ba0c88db0c7bca3ad09808c38c4a03310e2a236c8362192dc8bce3e87d4065298602ccb732021f3c4d1a5eb112
7
- data.tar.gz: e1417a3e4130571624a9150968d128a57bd53647f2dabdf8d266e9206cbd9a744e840e2c9d2421141e305841ca9c458a06a7b04da723683d41543a546272bee5
6
+ metadata.gz: c76f5b06c3ee07cc9469f6057b97b76a198f324b4584c31984464c555092369139a6a0e6dd33c5c82306d86bdc304fdd2d647344e5609dd38001ccdeaca32154
7
+ data.tar.gz: 9b49a5568177604d4daad7f353490dc2414950f936e704538dd2ef27572c4cbbe7cc68cd6feb9c7d81934590698703b0f21994fe6b3caf12f43526595187a69a
@@ -65,7 +65,7 @@ body #book {
65
65
  }
66
66
 
67
67
  #book a.tex {
68
- text-decoration: none;
68
+ text-decoration: none !important;
69
69
  }
70
70
 
71
71
  #book code {
@@ -105,13 +105,16 @@ body #book {
105
105
  #book .code {
106
106
  margin-top: 0.2em;
107
107
  width: 100%;
108
- white-space: pre;
109
108
  font-family: "Courier New", Courier, monospace;
110
109
  border: 1px solid #999;
111
110
  background: #eee;
112
111
  margin-bottom: 1em;
113
112
  }
114
113
 
114
+ #book .code pre {
115
+ white-space: pre;
116
+ }
117
+
115
118
  #book .codelisting {
116
119
  width: 100%;
117
120
  border: 1px solid #999;
@@ -308,7 +311,7 @@ body #book {
308
311
  }
309
312
 
310
313
  #book ol.footnotes a.arrow {
311
- text-decoration: none;
314
+ text-decoration: none !important;
312
315
  }
313
316
 
314
317
  #book ol.footnotes.nonumbers li {
@@ -327,17 +330,8 @@ body #book {
327
330
  font-weight: bold;
328
331
  }
329
332
 
330
- #book ul.footnotes li {
331
- line-height: 1.4;
332
- margin-bottom: 1em;
333
- }
334
-
335
- #book ul.footnotes li p {
336
- line-height: 1.4;
337
- }
338
-
339
333
  #book a.arrow {
340
- text-decoration: none;
334
+ text-decoration: none !important;
341
335
  }
342
336
 
343
337
  #book a:visited.arrow {
@@ -346,12 +340,12 @@ body #book {
346
340
 
347
341
  #book a.section {
348
342
  color: #070707;
349
- text-decoration: none;
343
+ text-decoration: none !important;
350
344
  }
351
345
 
352
346
  #book a.heading {
353
347
  color: #000;
354
- text-decoration: none;
348
+ text-decoration: none !important;
355
349
  }
356
350
 
357
351
  #book a:hover.heading {
@@ -0,0 +1,37 @@
1
+ # Generated LaTeX files
2
+ *.aux
3
+ *.log
4
+ *.toc
5
+ *.out
6
+ *.tmp.*
7
+ tmp/
8
+ generated_polytex/
9
+
10
+ .highlight_cache
11
+ .softcover-book
12
+
13
+ # Generated HTML files
14
+ html/*.html
15
+
16
+ # Generated EPUB files
17
+ epub/OEBPS/*.html
18
+ epub/OEBPS/*.opf
19
+ epub/OEBPS/*.ncx
20
+ epub/OEBPS/images
21
+ epub/OEBPS/styles/*
22
+ epub/mimetype
23
+ epub/META-INF/*
24
+ # Keep necessary EPUB files.
25
+ !epub/OEBPS/styles/custom_epub.css
26
+ !epub/OEBPS/styles/page-template.xpgt
27
+
28
+ # Generated ebooks
29
+ ebooks/
30
+
31
+ # Media (likely to be huge)
32
+ media/
33
+
34
+ # Other miscellaneous files
35
+ log/
36
+ *.bak
37
+ .DS_Store
@@ -154,6 +154,8 @@
154
154
  \usepackage{newunicodechar}
155
155
  \newunicodechar{—}{---}
156
156
  \newunicodechar{–}{--}
157
+ \newunicodechar{™}{\texttrademark}
158
+ \newunicodechar{®}{\textregistered}
157
159
 
158
160
  \usepackage{latex_styles/language_customization}
159
161
 
@@ -105,13 +105,16 @@ body #book {
105
105
  #book .code {
106
106
  margin-top: 0.2em;
107
107
  width: 100%;
108
- white-space: pre;
109
108
  font-family: "Courier New", Courier, monospace;
110
109
  border: 1px solid #999;
111
110
  background: #eee;
112
111
  margin-bottom: 1em;
113
112
  }
114
113
 
114
+ #book .code pre {
115
+ white-space: pre;
116
+ }
117
+
115
118
  #book .codelisting {
116
119
  width: 100%;
117
120
  border: 1px solid #999;
@@ -0,0 +1,37 @@
1
+ # Generated LaTeX files
2
+ *.aux
3
+ *.log
4
+ *.toc
5
+ *.out
6
+ *.tmp.*
7
+ tmp/
8
+ generated_polytex/
9
+
10
+ .highlight_cache
11
+ .softcover-book
12
+
13
+ # Generated HTML files
14
+ html/*.html
15
+
16
+ # Generated EPUB files
17
+ epub/OEBPS/*.html
18
+ epub/OEBPS/*.opf
19
+ epub/OEBPS/*.ncx
20
+ epub/OEBPS/images
21
+ epub/OEBPS/styles/*
22
+ epub/mimetype
23
+ epub/META-INF/*
24
+ # Keep necessary EPUB files.
25
+ !epub/OEBPS/styles/custom_epub.css
26
+ !epub/OEBPS/styles/page-template.xpgt
27
+
28
+ # Generated ebooks
29
+ ebooks/
30
+
31
+ # Media (likely to be huge)
32
+ media/
33
+
34
+ # Other miscellaneous files
35
+ log/
36
+ *.bak
37
+ .DS_Store
@@ -158,9 +158,10 @@ module Softcover
158
158
  if Softcover::Utils.article?
159
159
  # Include all the material before the first section.
160
160
  xml.css('#book').children.each do |node|
161
- next if node['id'] == 'title_page'
161
+ next if node['id'] == 'title_page'
162
162
  break if node['class'] == 'section'
163
163
  current_chapter.nodes.push node
164
+ node.remove
164
165
  end
165
166
  end
166
167
  xml.css('#book>div').each do |node|
@@ -45,6 +45,8 @@ module Softcover
45
45
  cp_path = File.join(File.dirname(cp_path),
46
46
  File.basename(path.dup, '.erb'))
47
47
  elsif path =~ /gitignore/
48
+ next if markdown? && path =~ /latex_gitignore/
49
+ next if !markdown? && path =~ /markdown_gitignore/
48
50
  cp_path = '.gitignore'
49
51
  end
50
52
 
@@ -83,7 +85,7 @@ module Softcover
83
85
  book_yml = File.join(Softcover::Directories::CONFIG, 'book.yml')
84
86
  puts "Done. Please update #{book_yml}"
85
87
  end
86
-
88
+
87
89
  # Returns a list of all the files and directories used to build the book.
88
90
  def all_files_and_directories
89
91
  files_directories_maybe_markdown
@@ -92,7 +94,7 @@ module Softcover
92
94
  # Returns the files and directories based on the input format.
93
95
  def files_directories_maybe_markdown
94
96
  fds = Dir.glob(
95
- File.join(Softcover::Utils.template_dir(article: @article),
97
+ File.join(Softcover::Utils.template_dir(article: @article),
96
98
  "**/*"), File::FNM_DOTMATCH)
97
99
  if markdown?
98
100
  # Skip the PolyTeX chapter files, which will be generated later.
@@ -1,3 +1,3 @@
1
1
  module Softcover
2
- VERSION = "1.1.7"
2
+ VERSION = "1.1.8"
3
3
  end
data/softcover.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
18
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
19
  gem.require_paths = ["lib"]
20
20
 
21
- gem.add_dependency 'polytexnic', '~> 1.1.6'
21
+ gem.add_dependency 'polytexnic', '~> 1.1.7'
22
22
  gem.add_dependency 'msgpack', '~> 0.4.2'
23
23
  gem.add_dependency 'nokogiri', '~> 1.6.0'
24
24
  gem.add_dependency 'thor', '~> 0.18.1'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: softcover
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-07 00:00:00.000000000 Z
12
+ date: 2015-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: polytexnic
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 1.1.6
20
+ version: 1.1.7
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 1.1.6
27
+ version: 1.1.7
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: msgpack
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -422,7 +422,6 @@ files:
422
422
  - lib/softcover/article_template/epub/OEBPS/styles/custom_epub.css
423
423
  - lib/softcover/article_template/epub/OEBPS/styles/epub.css
424
424
  - lib/softcover/article_template/epub/OEBPS/styles/page-template.xpgt
425
- - lib/softcover/article_template/gitignore
426
425
  - lib/softcover/article_template/html/.gitkeep
427
426
  - lib/softcover/article_template/html/MathJax/MathJax.js
428
427
  - lib/softcover/article_template/html/MathJax/config/TeX-AMS-MML_SVG.js
@@ -972,11 +971,13 @@ files:
972
971
  - lib/softcover/article_template/images/cover.png
973
972
  - lib/softcover/article_template/images/figures/.gitkeep
974
973
  - lib/softcover/article_template/images/testimonial_1.png
974
+ - lib/softcover/article_template/latex_gitignore
975
975
  - lib/softcover/article_template/latex_styles/custom.sty
976
976
  - lib/softcover/article_template/latex_styles/custom_pdf.sty
977
977
  - lib/softcover/article_template/latex_styles/framed.sty
978
978
  - lib/softcover/article_template/latex_styles/language_customization.sty
979
979
  - lib/softcover/article_template/latex_styles/softcover.sty
980
+ - lib/softcover/article_template/markdown_gitignore
980
981
  - lib/softcover/article_template/media/screencasts/.gitkeep
981
982
  - lib/softcover/book.rb
982
983
  - lib/softcover/book_manifest.rb
@@ -1000,7 +1001,6 @@ files:
1000
1001
  - lib/softcover/book_template/epub/OEBPS/styles/custom_epub.css
1001
1002
  - lib/softcover/book_template/epub/OEBPS/styles/epub.css
1002
1003
  - lib/softcover/book_template/epub/OEBPS/styles/page-template.xpgt
1003
- - lib/softcover/book_template/gitignore
1004
1004
  - lib/softcover/book_template/html/.gitkeep
1005
1005
  - lib/softcover/book_template/html/MathJax/MathJax.js
1006
1006
  - lib/softcover/book_template/html/MathJax/config/TeX-AMS-MML_SVG.js
@@ -1551,11 +1551,13 @@ files:
1551
1551
  - lib/softcover/book_template/images/cover.png
1552
1552
  - lib/softcover/book_template/images/figures/.gitkeep
1553
1553
  - lib/softcover/book_template/images/testimonial_1.png
1554
+ - lib/softcover/book_template/latex_gitignore
1554
1555
  - lib/softcover/book_template/latex_styles/custom.sty
1555
1556
  - lib/softcover/book_template/latex_styles/custom_pdf.sty
1556
1557
  - lib/softcover/book_template/latex_styles/framed.sty
1557
1558
  - lib/softcover/book_template/latex_styles/language_customization.sty
1558
1559
  - lib/softcover/book_template/latex_styles/softcover.sty
1560
+ - lib/softcover/book_template/markdown_gitignore
1559
1561
  - lib/softcover/book_template/media/screencasts/.gitkeep
1560
1562
  - lib/softcover/builder.rb
1561
1563
  - lib/softcover/builders/epub.rb