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 +4 -4
- data/README.md +10 -0
- data/lib/cheatset/templates/style.css +0 -4
- data/lib/cheatset/templates/style.scss +0 -1
- data/lib/cheatset/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6936a2352de8c105eb7988f85bf8f6ec204f800
|
4
|
+
data.tar.gz: 8a0cead39187ab7a0a3e48eb349e8528fd098411
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
@@ -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; }
|
data/lib/cheatset/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|