File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,19 @@ readme_update() {
34
34
35
35
# Append extra sheet sheets
36
36
printf " \n## Installable External Cheat Sheets\n\n"
37
+ printf " | Cheat Sheet | Type | Category |\n"
38
+ printf " | --- | --- | --- |\n"
37
39
38
40
while read extra; do
39
- repo=" https://github.com/$( jq -r ' . | to_entries[] | select(.key == "' " $extra " ' ") | .value.github' extra-cheat-sheets.json) "
40
- printf " - [$extra ]($repo )\n"
41
- done < <( jq -r " . | to_entries[] | .key" extra-cheat-sheets.json | LANG=C sort)
42
-
41
+ jq -r ' . | to_entries[] | select(.key == "' " $extra " ' ") | .value | "| [' " $extra " ' ]("+(.github)+") | "+(.type)+" | "+(.category)+" | "' extra-cheat-sheets.json || true
42
+ done < <( jq -r " . | to_entries[] | .key" extra-cheat-sheets.json | LANG=C sort) | \
43
+ sed -e " s/| Tutorial |/| 💡 Tutorial |/g" \
44
+ -e " s/| Book |/| 📕 Book |/g" \
45
+ -e " s/| Awesome |/| 👍 Awesome |/g" \
46
+ -e " s/| Documentation |/| 📄 Documentation |/g" \
47
+ -e " s/| Cheat Sheet |/| 📓 Cheat Sheet |/g" \
48
+ -e " s/| Interview |/| 💬 Interview |/g" \
49
+ -e " s/| Runbook |/| 🤖 Runbook |/g"
43
50
) >> README.md
44
51
}
45
52
You can’t perform that action at this time.
0 commit comments