From 1d39dab3f263babbb96f4e2a9b16e680536de91b Mon Sep 17 00:00:00 2001 From: Zhumakul-Artykbay <artykbay.zhumakulov@mail.ru> Date: Sun, 25 Oct 2020 23:45:36 +0600 Subject: [PATCH] Adding some code --- docs/css/extra.css | 2 +- sort.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/css/extra.css b/docs/css/extra.css index 1230d79..f95b916 100644 --- a/docs/css/extra.css +++ b/docs/css/extra.css @@ -1,4 +1,4 @@ -@media (min-width: 960px) { +@media (min-width: 961px) { html { scroll-behavior: smooth; } diff --git a/sort.py b/sort.py index 431bd02..fdcbb0d 100755 --- a/sort.py +++ b/sort.py @@ -20,7 +20,7 @@ def sort_blocks(): read_me = read_me_file.read() # Separating the 'table of contents' from the contents (blocks) - table_of_contents = ''.join(read_me.split('- - -')[0]) + table_of_the_contents = ''.join(read_me.split('- - -')[0]) blocks = ''.join(read_me.split('- - -')[1]).split('\n# ') for i in range(len(blocks)): if i == 0: @@ -37,7 +37,7 @@ def sort_blocks(): # Replacing the non-sorted libraries by the sorted ones and gathering all at the final_README file blocks[0] = inner_blocks - final_README = table_of_contents + '- - -' + ''.join(blocks) + final_README = table_of_the_contents + '- - -' + ''.join(blocks) with open('README.md', 'w+') as sorted_file: sorted_file.write(final_README) -- GitLab