1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

do not show _info.yaml

This commit is contained in:
Igor Chubin
2018-05-19 21:04:09 +00:00
parent dc14962f91
commit 9a8678ad3f
+3
View File
@@ -44,6 +44,7 @@ INTERNAL_TOPICS = [
':styles-demo',
':vim',
':zsh',
':share',
]
def _update_tldr_topics():
@@ -69,6 +70,8 @@ def _update_cheat_sheets_topics():
for topic in glob.glob(PATH_CHEAT_SHEETS + "*/*"):
dirname, filename = os.path.split(topic)
if filename in ['_info.yaml']:
continue
dirname = os.path.basename(dirname)
if dirname.startswith('_'):
dirname = dirname[1:]