Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added docstrings to improve documentation in sort_blocks and in main function and also add another exception handeled. #2653

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

audhee
Copy link

@audhee audhee commented Feb 16, 2025

…function and also handeled the exception in the main block

What is this Python project?

-> This python project automates "Readme File Organization " by sorting sections while keeping the headers intact.
-> It helps to maintain the consistency in the documentation and also it is very useful for large repositories.

Describe features.

What's the difference between this Python project and similar ones?

-> Unlike traditional README generators, this project does not create a README from scratch but rather sorts and organizes an existing one.
-> Many similar tools focus on generating documentation from code comments, whereas this script helps restructure and clean up an existing README.md.
-> This project maintains the hierarchical structure of headers and sections while ensuring that the entries under each section are sorted properly.
-> It automatically detects list entries (e.g., links in bullet points) and sorts them while preserving indentation.
-> The newly added exception handling makes it more robust compared to scripts that assume the README is always formatted correctly.

Enumerate comparisons.

What's the Difference Between This Python Project and Similar Ones?

| Feature | This Project | Similar Projects |
| README Organization | Sorts and restructures an existing README. | Many tools generate a new README from scratch. |
| Section Headers Handling | Preserves and maintains section headers. | Some tools may overwrite or remove headers. |
| Sorting Method | Sorts list entries within sections while keeping structure intact. | Often sorts the entire document without maintaining hierarchy. |
| Exception Handling | Includes error handling to prevent script failures. | Some scripts assume perfect input and may crash on errors. |
| Indentation Preservation | Maintains proper indentation while sorting. | Other tools may ignore formatting consistency. |

--

Anyone who agrees with this pull request could submit an Approve review to it.

…function and also handeled the exception in the main block
@0980395896
Copy link

ัุุุ

@Tere84420
Copy link

y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants