-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuilddoc.sh
More file actions
executable file
·34 lines (27 loc) · 1 KB
/
builddoc.sh
File metadata and controls
executable file
·34 lines (27 loc) · 1 KB
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
### pro approach
# python3 -m sphinx . docs/
sphinx-build . ./docs/
### noob approach
# curr_dir=$(pwd)
# sphinx_dir_name="sphinx_setup"
# docs_dir_name="docs"
# sphinx_dir_path="$curr_dir/$sphinx_dir_name"
# list_of_contents_in_curr_dir=$(ls)
# rm -rf "$sphinx_dir_path/"*"_files/"
# for content in $list_of_contents_in_curr_dir
# do
# if [ -d $content ];then
# if [[ $content == $sphinx_dir_name ]] || [[ $content == $docs_dir_name ]];then
# echo "*----------- Skipping for $content "
# else
# echo "*----------- Starting for $content ----------------*"
# jupyter-nbconvert "$curr_dir/$content/*.ipynb" --to rst
# mv -f "$curr_dir/$content/"*".rst" $sphinx_dir_path
# mv -f "$curr_dir/$content/"*"_files/" $sphinx_dir_path
# echo "*----------- Completed for $content ----------------*"
# fi
# else
# echo "$content is not a directory"
# fi
# done
# sphinx-build -b html $sphinx_dir_name $docs_dir_name