-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathcompose.sh
executable file
·58 lines (52 loc) · 3.47 KB
/
compose.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
jupyter nbconvert --to markdown "jupyter/01_data_structures_and_data_types.ipynb" --output "../markdown/01_data_structures_and_data_types.md"
jupyter nbconvert --to markdown "jupyter/02_data_manipulation_and_processing.ipynb" --output "../markdown/02_data_manipulation_and_processing.md"
jupyter nbconvert --to markdown "jupyter/03_control_flow_and_data_flows.ipynb" --output "../markdown/03_control_flow_and_data_flows.md"
jupyter nbconvert --to markdown "jupyter/04_file_handling_io_serialization.ipynb" --output "../markdown/04_file_handling_io_serialization.md"
jupyter nbconvert --to markdown "jupyter/05_exceptions_and_errors.ipynb" --output "../markdown/05_exceptions_and_errors.md"
jupyter nbconvert --to markdown "jupyter/06_functional_programming.ipynb" --output "../markdown/06_functional_programming.md"
jupyter nbconvert --to markdown "jupyter/07_standard_library.ipynb" --output "../markdown/07_standard_library.md"
jupyter nbconvert --to markdown "jupyter/08_object_oriented_programming.ipynb" --output "../markdown/08_object_oriented_programming.md"
jupyter nbconvert --to markdown "jupyter/09_python_language_interntals.ipynb" --output "../markdown/09_python_language_interntals.md"
jupyter nbconvert --to markdown "jupyter/10_concurrency.ipynb" --output "../markdown/10_concurrency.md"
jupyter nbconvert --to markdown "jupyter/11_debugging_and_testing.ipynb" --output "../markdown/11_debugging_and_testing.md"
jupyter nbconvert --to markdown "jupyter/12_common_practices.ipynb" --output "../markdown/12_common_practices.md"
jupyter nbconvert --to markdown "jupyter/13_databases.ipynb" --output "../markdown/13_databases.md"
jupyter nbconvert --to markdown "jupyter/14_networking_and_web.ipynb" --output "../markdown/14_networking_and_web.md"
jupyter nbconvert --to markdown "jupyter/15_gui_programming.ipynb" --output "../markdown/15_gui_programming.md"
jupyter nbconvert --to markdown "jupyter/16_data_science.ipynb" --output "../markdown/16_data_science.md"
jupyter nbconvert --to markdown "jupyter/17_software_architecture.ipynb" --output "../markdown/17_software_architecture.md"
jupyter nbconvert --to markdown "jupyter/18_devops.ipynb" --output "../markdown/18_devops.md"
jupyter nbconvert --to markdown "jupyter/19_algorithms.ipynb" --output "../markdown/19_algorithms.md"
echo "Successfully converted Jupyter Notebooks to Markdown"
output_file="README.md"
: > "$output_file"
files_to_concatenate=(
"markdown/intro.md"
"markdown/table_of_contents.md"
# "markdown/01_data_structures_and_data_types.md"
# "markdown/02_data_manipulation_and_processing.md"
# "markdown/03_control_flow_and_data_flows.md"
# "markdown/04_file_handling_io_serialization.md"
# "markdown/05_exceptions_and_errors.md"
# "markdown/06_functional_programming.md"
# "markdown/07_standard_library.md"
# "markdown/08_object_oriented_programming.md"
# "markdown/09_python_language_interntals.md"
# "markdown/10_concurrency.md"
# "markdown/11_debugging_and_testing.md"
# "markdown/12_common_practices.md"
# "markdown/13_databases.md"
# "markdown/14_networking_and_web.md"
# "markdown/15_gui_programming.md"
# "markdown/16_data_science.md"
# "markdown/17_software_architecture.md"
# "markdown/18_devops.md"
# "markdown/19_algorithms.md"
"markdown/outro.md"
)
for markdown_file in "${files_to_concatenate[@]}"; do
cat "$markdown_file" >> "$output_file"
echo -e "\n" >> "$output_file"
done
echo "Successfully combined Markdown files into '$output_file'"