cheatset 1.4.4 → 1.4.5

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
  SHA256:
3
- metadata.gz: 7cdad91d3249670d887fc8d31610c34332eec34e4b3cc7b238caf17ad6a8c71a
4
- data.tar.gz: f950f00db4a6205d1be2eceaac6cda4e70620bc69ac4d7ba5e6d0de4b4b78a20
3
+ metadata.gz: 8a7cff5cf1487c0fef78f6013283e7b167cc1a64ec9938defbc317a21adf059f
4
+ data.tar.gz: 0bb0916201eb1d27677fb9cb8f5146a1887a54cebd9e9d88b70a8faf69e1bbb5
5
5
  SHA512:
6
- metadata.gz: 4685f391d19394979b8fe9bd321b02f524e935d654c6898940a0771ee56876407bce6d89aac7de2ca87feac477a47fafa04cda7b3e7f925a8c10405917d96996
7
- data.tar.gz: c4f2979652d942646e2abc52a4431479e8dbe8489aa5d238979db25ef7301908ac6103db53e6388cece733cd2e47c9f09b83db2aaab178a8dfb0a774dbe83b9a
6
+ metadata.gz: 26a07fdcd1ba96f17d9c25e46208321ef5239bb709d5c54ecbe271634e14113e40f84f8e3f47c354c8c9469f94bf2fba1bc9f2fd888d0b9c9e142e6932c14259
7
+ data.tar.gz: 24a70af2864c96f6bf7c02cfc6af0eac0681425c921cd7898077e145df376a28ec65365e959f12ab52f1e2366a625bed59f8c6dc3e5be0a073e21490301fb600
data/README.md CHANGED
@@ -94,7 +94,8 @@ Apart from the attributes listed in the sample cheat sheet above, you can also u
94
94
  * `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)
95
95
  * `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
96
96
  * `td_command` (under `entry`) - just like `command`, but multiple ones are added in a separate column (as opposed to a separate row)
97
- * `td_notes` (under `entry`) - just like `notes`, but multiple ones are added in a separate column (as opposed to a separate row)
97
+ * `td_notes` (under `entry`) - just like `notes` but can be repeated multiple times, each becoming a separate column
98
+ * `html_notes` (under `entry`) - just like `notes`, but doesn't support Markdown
98
99
  * `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.
99
100
 
100
101
  ## Thanks
@@ -92,6 +92,13 @@ section.notes {
92
92
  article {
93
93
  margin: 2em 1em; }
94
94
 
95
+ @media print {
96
+ section.category {
97
+ page-break-inside: avoid;
98
+ break-inside: avoid;
99
+ }
100
+ }
101
+
95
102
  section.category {
96
103
  border: 2px solid #666;
97
104
  border-radius: 6px 6px;
@@ -69,7 +69,7 @@ code, pre {
69
69
  font-size:13px;
70
70
  }
71
71
 
72
- code {
72
+ code {
73
73
  margin:0;
74
74
  border:1px solid #ddd;
75
75
  background-color:#f8f8f8;
@@ -119,6 +119,14 @@ section.notes {
119
119
  article {
120
120
  margin: 2em 1em;
121
121
  }
122
+
123
+ @media print {
124
+ section.category {
125
+ page-break-inside: avoid;
126
+ break-inside: avoid;
127
+ }
128
+ }
129
+
122
130
  section.category {
123
131
  border: 2px solid $dark_gray;
124
132
  border-radius: 6px 6px;
@@ -145,7 +153,7 @@ td {
145
153
  }
146
154
  th {
147
155
  border-left:1px solid $lighter_gray;
148
- }
156
+ }
149
157
  tr {
150
158
  border-bottom:1px dotted $lighter_gray;
151
159
  }
@@ -1,3 +1,3 @@
1
1
  module Cheatset
2
- VERSION = '1.4.4'
2
+ VERSION = '1.4.5'
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.4.4
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bogdan Popescu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-04 00:00:00.000000000 Z
11
+ date: 2022-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler