-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
171 changed files
with
23,481 additions
and
2,437 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
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
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,19 +1,51 @@ | ||
#!/bin/bash | ||
com=$HOME/sci_analysis_qa_env/bin/jupyter | ||
|
||
# The path to the jupyter executable. | ||
com=jupyter | ||
|
||
# The path to the docs directory. | ||
docs=./docs | ||
images=./img | ||
index=sci_analysis_main | ||
notebook=${docs}/${index}.ipynb | ||
output=${docs}/index.md | ||
output_backup=${output}.bak | ||
if [ -f ${output} ]; then | ||
mv ${output} ${output_backup} | ||
fi | ||
${com} nbconvert --to markdown NbConvertApp.output_base=${docs} --NbConvertApp.output_files_dir=${images} ${notebook} | ||
mv ${docs}/${index}.md ${output} | ||
sed -i -e "s/> Note:/.. note::/g" ${output} | ||
sed -i -e "s/.*warnings.*//" ${output} | ||
|
||
# The path to the documentation image directory under docs. | ||
images=img | ||
|
||
# The path to the toc file. This file is combined with the welcome page. | ||
toc=${docs}/toc.rst | ||
|
||
# The path to the README file. | ||
readme=./README | ||
|
||
# The filename of the welcome page. This will be a combination of the README and toc file. | ||
index=${docs}/index.rst | ||
|
||
#index=sci_analysis_main | ||
|
||
# The list of notebooks to be converted to md for documentation. | ||
notebooks=( | ||
getting_started | ||
using_sci_analysis | ||
pandas | ||
distribution | ||
frequency | ||
bivariate | ||
location_test | ||
) | ||
for nb in ${notebooks[*]}; do | ||
notebook=${docs}/${nb}.ipynb | ||
output=${docs}/${nb}.md | ||
output_backup=${output}.bak | ||
if [[ -f ${output} ]]; then | ||
mv ${output} ${output_backup} | ||
fi | ||
${com} nbconvert --to markdown NbConvertApp.output_base=${docs} --NbConvertApp.output_files_dir=${images} ${notebook} | ||
sed -i -e "s/> Note:/.. note::/g" ${output} | ||
sed -i -e "s/.*warnings.*//" ${output} | ||
done | ||
|
||
m2r ${readme}.md | ||
cat ${readme}.rst ${toc} > ${index} | ||
make -C ${docs} html | ||
rm ${readme}.rst | ||
rm ${docs}/*-e | ||
|
||
exit 0 | ||
exit 0 |
1,323 changes: 1,323 additions & 0 deletions
1,323
docs/.ipynb_checkpoints/bivariate-checkpoint.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.