Skip to content

Commit

Permalink
text json commit - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mursalatul committed Jan 23, 2024
1 parent c70a84a commit 805da58
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 30 deletions.
15 changes: 0 additions & 15 deletions ADMIN/MAINTAIN/DOCUMENTATION.md
Original file line number Diff line number Diff line change
@@ -1,15 +0,0 @@
# Code Park Documentation
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.

## Content
- [hello_diu](https://github.com/mursalatul/code-park/tree/master/hello_diu)
- [hello_diu.c](https://github.com/mursalatul/code-park/tree/master/hello_diu/hello_diu.c)
- [palindrom](https://github.com/mursalatul/code-park/tree/master/palindrom)
- [is_palindrom_number.c](https://github.com/mursalatul/code-park/tree/master/palindrom/is_palindrom_number.c)
- [prime](https://github.com/mursalatul/code-park/tree/master/prime)
- [is_prime.cpp](https://github.com/mursalatul/code-park/tree/master/prime/is_prime.cpp)
- [search](https://github.com/mursalatul/code-park/tree/master/search)
- [binary_search.cpp](https://github.com/mursalatul/code-park/tree/master/search/binary_search.cpp)
- [linear_search.cpp](https://github.com/mursalatul/code-park/tree/master/search/linear_search.cpp)
- [selection_sort](https://github.com/mursalatul/code-park/tree/master/selection_sort)
- [selection_sort_cpp.cpp](https://github.com/mursalatul/code-park/tree/master/selection_sort/selection_sort_cpp.cpp)
23 changes: 23 additions & 0 deletions ADMIN/MAINTAIN/classes/Documentation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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")
15 changes: 0 additions & 15 deletions CONTENT/DOCUMENTATION.md

This file was deleted.

0 comments on commit 805da58

Please sign in to comment.