|
9 | 9 | # path to store assets |
10 | 10 | ASSETS_DIR = File.join(ROOT_DIR, "docset", "assets") |
11 | 11 |
|
| 12 | +FileUtils.mkdir_p(ASSETS_DIR) |
| 13 | +FileUtils.mkdir_p(File.join(ASSETS_DIR, 'font')) |
| 14 | +FileUtils.mkdir_p(File.join(ASSETS_DIR, 'css')) |
| 15 | + |
12 | 16 | # Copy Assets to assets/ |
13 | 17 | FileUtils.cp File.join(ROOT_DIR, 'css', 'openwebicons.css'), File.join(ASSETS_DIR, 'css/') |
14 | 18 | FileUtils.cp File.join(ROOT_DIR, 'font', 'openwebicons.eot'), File.join(ASSETS_DIR, 'font/') |
|
38 | 42 | style <<-EOS |
39 | 43 | @import 'assets/css/openwebicons.css'; |
40 | 44 |
|
41 | | - [class^="icon-"]:before, [class*=" icon-"]:before { |
| 45 | + [class^="openwebicons-"]:before, [class*=" openwebicons-"]:before { |
42 | 46 | font-size: 40px; |
43 | 47 | } |
44 | 48 | EOS |
|
49 | 53 | icons.each do |icon| |
50 | 54 | entry do |
51 | 55 | name icon.children.first.value.to_s |
52 | | - command "icon-#{icon.children.first.value.to_s}" |
53 | | - td_notes "<i class='icon-#{icon.children.first.value.to_s}'></i>" |
| 56 | + command "openwebicons-#{icon.children.first.value.to_s}" |
| 57 | + td_notes "<i class='openwebicons-#{icon.children.first.value.to_s}'></i>" |
54 | 58 | td_notes <<-EOS |
55 | 59 | ```html |
56 | | - <i class='icon-#{icon.children.first.value.to_s}'></i> |
| 60 | + <i class='openwebicons-#{icon.children.first.value.to_s}'></i> |
57 | 61 | ``` |
58 | 62 | EOS |
59 | 63 | end |
|
67 | 71 | if not icon.children[2].value.to_s == "\"monochrome\"" |
68 | 72 | entry do |
69 | 73 | name "#{icon.children.first.value.to_s}" |
70 | | - command "icon-#{icon.children.first.value.to_s}-colored" |
71 | | - td_notes "<i class='icon-#{icon.children.first.value.to_s}-colored'></i>" |
| 74 | + command "openwebicons-#{icon.children.first.value.to_s}-colored" |
| 75 | + td_notes "<i class='openwebicons-#{icon.children.first.value.to_s}-colored'></i>" |
72 | 76 | td_notes <<-EOS |
73 | 77 | ```html |
74 | | - <i class="icon-#{icon.children.first.value.to_s}-colored"></i> |
| 78 | + <i class="openwebicons-#{icon.children.first.value.to_s}-colored"></i> |
75 | 79 | ``` |
76 | 80 | EOS |
77 | 81 | end |
|
0 commit comments