diff --git a/README.md b/README.md index b79631b..9ce6c78 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ The project generates readme file. ## Built With 🔧 -![](https://img.shields.io/badge/Javascript-3E955C?style=for-the-badge&logo=javaScript&logoColor=fff) ![](https://img.shields.io/badge/Css3-735C38?style=for-the-badge&logo=css3&logoColor=fff) ![](https://img.shields.io/badge/Html5-3FC428?style=for-the-badge&logo=html5&logoColor=fff) ![](https://img.shields.io/badge/Python-F80674?style=for-the-badge&logo=python&logoColor=000) ![](https://img.shields.io/badge/Latex-E0FCAF?style=for-the-badge&logo=latex&logoColor=000) +![](https://img.shields.io/badge/Javascript-0D1629?style=for-the-badge&logo=javaScript&logoColor=fff) ![](https://img.shields.io/badge/Css3-24AE53?style=for-the-badge&logo=css3&logoColor=fff) ![](https://img.shields.io/badge/Html5-BB9DBD?style=for-the-badge&logo=html5&logoColor=000) ![](https://img.shields.io/badge/Python-448EEA?style=for-the-badge&logo=python&logoColor=fff) ![](https://img.shields.io/badge/Latex-D8C458?style=for-the-badge&logo=latex&logoColor=000) diff --git a/config.json b/config.json new file mode 100644 index 0000000..1cfab8d --- /dev/null +++ b/config.json @@ -0,0 +1 @@ +{"title": "readme-generator", "description": "Readme generator python script. \nThe project generates readme file. ", "features": ["Generates badges", "Generate markdown file"], "list_badges": ["javaScript", "css3", "html5", "python", "latex"], "steps": ["Edit data section python file", "python readme_generator.py"], "FAQ": {"Are there any depencdecy": "No", "what are import": "random package"}, "dependencies": ["random"]} \ No newline at end of file diff --git a/readme_generator.py b/readme_generator.py index 1df2847..6e2e2f2 100644 --- a/readme_generator.py +++ b/readme_generator.py @@ -1,15 +1,8 @@ import random +import json -data = { - "title": "readme-generator", - "description": """Readme generator python script. -The project generates readme file. """, -"features": ["Generates badges","Generate markdown file"], -"list_badges": ["javaScript","css3","html5","python","latex"], -"steps":["Edit data section python file","python readme_generator.py"], -"FAQ":{"Are there any depencdecy":"No","what are import":"random package"}, -"dependencies":["random"], -} +with open("config.json", "r") as f: + data = json.load(f) def ufunc_lst2str(inpt_list): inpt_list = ["- " + item + "\n" for item in inpt_list]