diff --git a/README.md b/README.md index 3d92964..f156005 100644 --- a/README.md +++ b/README.md @@ -22,14 +22,11 @@ Učí profesor Kubis a docent Veškrna. + [range](3/range) + [seznam](3/seznam) -## 5 -+ [README](5/README) +## [5](5) -## 6 -+ [README](6/README) +## [6](6) -## 7 -+ [README](7/README) +## [7](7) ## 8 + [dict](8/dict) @@ -38,6 +35,5 @@ Učí profesor Kubis a docent Veškrna. + [requests_and_http](8/requests_and_http) + [tenary_operator](8/tenary_operator) -## 9 -+ [README](9/README) +## [9](9) diff --git a/site_gen.py b/site_gen.py index 13f7300..72b7f57 100755 --- a/site_gen.py +++ b/site_gen.py @@ -28,8 +28,11 @@ def mkformat(files): files = path_dict(files) for key in files: - result.append(f'## {key}') - for name in sorted(files[key]): + if 'README' in files[key]: + result.append(f'## [{key}]({key})') + else: + result.append(f'## {key}') + for name in [i for i in sorted(files[key]) if i != 'README']: result.append(f'+ [{name}]({os.path.join(key, name)})') result.append('')