Merge pull request #1394 from duckduckgo/zach/reference-json-dir
Move json files into their own directorymaster
commit
289de90a03
|
@ -49,21 +49,21 @@
|
|||
|
||||
/* terminal-snippets.handlebars */
|
||||
|
||||
.zci--cheat_sheets .terminal-snippets td {
|
||||
.zci--cheat_sheets .terminal td {
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
|
||||
.zci--cheat_sheets .terminal-snippets code {
|
||||
.zci--cheat_sheets .terminal code {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.zci--cheat_sheets .terminal-snippets td.cheatsheet__key {
|
||||
.zci--cheat_sheets .terminal td.cheatsheet__key {
|
||||
display: block;
|
||||
min-width: 100%;
|
||||
padding-bottom: 1px;
|
||||
}
|
||||
|
||||
.zci--cheat_sheets .terminal-snippets td.cheatsheet__value {
|
||||
.zci--cheat_sheets .terminal td.cheatsheet__value {
|
||||
display: block;
|
||||
min-width: 100%;
|
||||
padding-top: 0px;
|
||||
|
@ -73,19 +73,19 @@
|
|||
|
||||
/* reference-sheet.handlebars */
|
||||
|
||||
.zci--cheat_sheets .reference-sheet ul {
|
||||
.zci--cheat_sheets .reference ul {
|
||||
padding: 0;
|
||||
margin-left: 13px;
|
||||
}
|
||||
|
||||
.zci--cheat_sheets .reference-sheet li {
|
||||
.zci--cheat_sheets .reference li {
|
||||
position: relative;
|
||||
padding-bottom: 12px;
|
||||
padding-left: 7px;
|
||||
line-height: 17px;
|
||||
}
|
||||
|
||||
.zci--cheat_sheets .reference-sheet li::before {
|
||||
.zci--cheat_sheets .reference li::before {
|
||||
position: absolute;
|
||||
left: -12px;
|
||||
content: '●';
|
||||
|
@ -93,7 +93,7 @@
|
|||
font-size: 7px;
|
||||
}
|
||||
|
||||
.zci--cheat_sheets .reference-sheet li .cheatsheet__key {
|
||||
.zci--cheat_sheets .reference li .cheatsheet__key {
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ DDH.cheat_sheets.build = function(ops) {
|
|||
var result = "";
|
||||
var template = {
|
||||
type: template_type,
|
||||
path: template_type ? 'DDH.cheat_sheets.' + template_type : 'DDH.cheat_sheets.keyboard-shortcuts'
|
||||
path: template_type ? 'DDH.cheat_sheets.' + template_type : 'DDH.cheat_sheets.keyboard'
|
||||
};
|
||||
|
||||
$.each(section_order, function(i, section) {
|
||||
|
@ -95,7 +95,7 @@ DDH.cheat_sheets.build = function(ops) {
|
|||
$container = $dom.find(".cheatsheet__container"),
|
||||
$detail = $dom.find(".zci__main--detail"),
|
||||
$section = $dom.find(".cheatsheet__section"),
|
||||
$hideRow = $section.find("tbody tr:nth-child(n+4)"),
|
||||
$hideRow = $section.find("tbody tr:nth-child(n+4), ul li:nth-child(n+4)"),
|
||||
$showhide = $container.find(".cheatsheet__section.showhide"),
|
||||
$more_btn = $dom.find(".chomp--link"),
|
||||
isExpanded = false,
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"sourceName": "GitHub",
|
||||
"sourceUrl": "https://training.github.com/kit/downloads/github-git-cheat-sheet"
|
||||
},
|
||||
"template_type" : "terminal-snippets",
|
||||
"template_type" : "terminal",
|
||||
"section_order": [
|
||||
"Configure Tooling",
|
||||
"Create Repositories",
|
|
@ -9,7 +9,7 @@
|
|||
"aliases": [
|
||||
"regexp", "regular expression", "regular expressions"
|
||||
],
|
||||
"template_type": "code-snippets",
|
||||
"template_type": "code",
|
||||
"section_order": ["Anchors", "Character Classes", "POSIX Classes", "Pattern Modifiers", "Escape Sequences", "Quantifiers", "Groups and Ranges", "Assertions", "Special Characters", "String Replacement"],
|
||||
"sections": {
|
||||
"Assertions": [{
|
|
@ -6,7 +6,7 @@
|
|||
"sourceName": "VimCheatSheet",
|
||||
"sourceUrl": "http://vim.rtorr.com"
|
||||
},
|
||||
"template_type": "keyboard-shortcuts",
|
||||
"template_type": "keyboard",
|
||||
"section_order": [
|
||||
"Cursor movement",
|
||||
"Insert mode - inserting/appending text",
|
|
@ -7,7 +7,7 @@
|
|||
"sourceUrl": "https://en.wikipedia.org/wiki/Wu-Tang_Clan#Members"
|
||||
},
|
||||
"aliases":["wu-tang"],
|
||||
"template_type": "reference-sheet",
|
||||
"template_type": "reference",
|
||||
"section_order": ["Members"],
|
||||
"sections": {
|
||||
"Members": [{
|
Loading…
Reference in New Issue