-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c70a84a
commit 805da58
Showing
3 changed files
with
23 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file was deleted.
Oops, something went wrong.