Skip to content

Commit

Permalink
json test commit - 1
Browse files Browse the repository at this point in the history
  • Loading branch information
mursalatul committed Jan 23, 2024
1 parent e2889ad commit c70a84a
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions ADMIN/MAINTAIN/classes/Documentation.py
Original file line number Diff line number Diff line change
@@ -1,23 +0,0 @@
import os

class CreateDocumentation:
def writedoc(self, folder_file: dict):

with open("DOCUMENTATION.md", "w") as doc:
doc.write("# Code Park Documentation\n\
This documentation provides a front view of the content presented in the repository. Here, you can see the folders and the files with a tree-view structure.\n\n")

doc.write("## Content\n")

# sorting the folders before adding to doc
folder_file = dict(sorted(folder_file.items()))

# getting folder name and file list
for folder, file in folder_file.items():
# writing folder name to doc
doc.write(f"- [{folder}](https://github.com/mursalatul/code-park/tree/master/{folder})\n")
# sorting the files for organized view in doc
#file.sort()
# adding the file names
for files in file:
doc.write(f" - [{files}](https://github.com/mursalatul/code-park/tree/master/{folder}/{files})\n")

0 comments on commit c70a84a

Please sign in to comment.