cheatset 1.2.15 → 1.2.16

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: 543d5b532d6c40d2194f9657a38738716e0f3255
4
- data.tar.gz: 2c8364567d3982eceb92abbd30627e96671204e3
3
+ metadata.gz: f6936a2352de8c105eb7988f85bf8f6ec204f800
4
+ data.tar.gz: 8a0cead39187ab7a0a3e48eb349e8528fd098411
5
5
  SHA512:
6
- metadata.gz: b0d709062d3517643dc61f00638e637eec0d86250238bf885fd4ffe37ab95df96c948531aff84b460d910fd80ce4c77aab1becf119a2ee5bbd329a658d4f87ba
7
- data.tar.gz: d2d690590d3a05c48c409adb6df43e3d5c8d8e5556a893d36f8d181956cbceb2ef901f45b51e4ced7249b953f48d3cbad849dcf1db2408d421fbc3006324cca0
6
+ metadata.gz: 1c363c2bceb78d812b5f2c444d0585824be5b5d91b4ec4bbcd3326e41383ea34bde61d46bc024c9b79779f17395a67c836cf93f652b213bc020e773c405653b1
7
+ data.tar.gz: 0b9bbaad9a1d29c748f9745940e91d183fd3c38c14943384e3daea95241a14c0949271126ac87bdd2e9de7a1b99ee213fcd32916bc511d9ada36d9332553f2ce
data/README.md CHANGED
@@ -80,6 +80,16 @@ Syntax highlighting is supported (see Ruby code in the sample). For a list of su
80
80
  For more complete examples look at some of
81
81
  [the actual cheat sheets](https://github.com/Kapeli/cheatsheets/tree/master/cheatsheets).
82
82
 
83
+ ## Advanced Usage
84
+
85
+ Apart from the attributes listed in the sample cheat sheet above, you can also use these:
86
+
87
+ * `style` (under `cheatsheet`) - define any CSS style you want. See example [here](https://github.com/Kapeli/cheatsheets/blob/f9e40e30b6fde9063b7a0fb5de8fb203851b17df/cheatsheets/CSS_Named_Colors.rb#L7-L12)
88
+ * `html_class` (under `category`) - define a HTML class to be added to a category. This can be used to define custom styling for each category
89
+ * `td_command` (under `entry`) - just like `command`, but multiple ones are added in a separate column (as opposed to a separate row)
90
+ * `td_notes` (under `entry`) - just like `notes`, but multiple ones are added in a separate column (as opposed to a separate row)
91
+ * `index_name` (under `entry`) - this is not displayed in the cheat sheet at all. You can use it to define a separate index name (i.e what gets added to Dash's search index and is searchable in Dash). In other words, if this entry is not present, the value in `name` is used.
92
+
83
93
  ## Thanks
84
94
 
85
95
  [Nix-wie-weg](https://github.com/Nix-wie-weg/dasheets) for the initial code.
@@ -173,10 +173,6 @@ p {
173
173
  color: #999988;
174
174
  font-style: italic; }
175
175
 
176
- .err {
177
- color: #a61717;
178
- background-color: #e3d2d2; }
179
-
180
176
  .k {
181
177
  font-weight: bold; }
182
178
 
@@ -204,7 +204,6 @@ p {
204
204
 
205
205
  .highlight { background-color: #f8f8f8; border: 1px solid #ccc; padding: 6px 10px; border-radius: 3px; margin-right:1px; white-space: pre-wrap; word-wrap:break-word;}
206
206
  .c { color: #999988; font-style: italic; }
207
- .err { color: #a61717; background-color: #e3d2d2; }
208
207
  .k { font-weight: bold; }
209
208
  .o { font-weight: bold; }
210
209
  .cm { color: #999988; font-style: italic; }
@@ -1,3 +1,3 @@
1
1
  module Cheatset
2
- VERSION = '1.2.15'
2
+ VERSION = '1.2.16'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cheatset
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.15
4
+ version: 1.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bogdan Popescu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-13 00:00:00.000000000 Z
11
+ date: 2014-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler