提交 578bc2f3 编写于 作者: L liaogang

add notedown to covert md to ipynb

上级 56284eda
......@@ -4,9 +4,6 @@ set -e
cur_path="$(cd "$(dirname "$0")" && pwd -P)"
cd $cur_path/../
#convert md to ipynb
.tools/convert-markdown-into-ipynb-and-test.sh
#paddle production image name
if [ ! -n "$1" ]; then
paddle_image=paddlepaddle/paddle
......@@ -57,12 +54,15 @@ RUN pip install -U nltk \
RUN ${update_mirror_cmd}
apt-get update && \
apt-get install -y locales && \
apt-get install -y locales patch notedown && \
apt-get -y install gcc && \
apt-get -y clean && \
localedef -f UTF-8 -i en_US en_US.UTF-8 && \
pip install -U matplotlib jupyter numpy requests scipy
#convert md to ipynb
RUN /book/.tools/notedown.sh
EXPOSE 8888
CMD ["sh", "-c", "jupyter notebook --ip=0.0.0.0 --no-browser --allow-root --NotebookApp.token='' --NotebookApp.disable_check_xsrf=True /book/"]
EOF
......
#!/bin/bash
set -e
pip install notedown
cur_path="$(cd "$(dirname "$0")" && pwd -P)"
cd $cur_path/../
#convert md to ipynb
for file in */{README,README\.en}.md ; do
notedown $file > ${file%.*}.ipynb
done
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册