提交 817062fb 编写于 作者: G gangliao 提交者: GitHub

Merge pull request #296 from PaddlePaddle/readme

using notedown to convert markdown to ipynb
...@@ -4,9 +4,6 @@ set -e ...@@ -4,9 +4,6 @@ set -e
cur_path="$(cd "$(dirname "$0")" && pwd -P)" cur_path="$(cd "$(dirname "$0")" && pwd -P)"
cd $cur_path/../ cd $cur_path/../
#convert md to ipynb
.tools/convert-markdown-into-ipynb-and-test.sh
#paddle production image name #paddle production image name
if [ ! -n "$1" ]; then if [ ! -n "$1" ]; then
paddle_image=paddlepaddle/paddle paddle_image=paddlepaddle/paddle
...@@ -66,12 +63,15 @@ RUN pip install -U nltk \ ...@@ -66,12 +63,15 @@ RUN pip install -U nltk \
RUN ${update_mirror_cmd} RUN ${update_mirror_cmd}
apt-get update && \ apt-get update && \
apt-get install -y locales && \ apt-get install -y locales patch notedown && \
apt-get -y install gcc && \ apt-get -y install gcc && \
apt-get -y clean && \ apt-get -y clean && \
localedef -f UTF-8 -i en_US en_US.UTF-8 && \ localedef -f UTF-8 -i en_US en_US.UTF-8 && \
pip install -U pillow matplotlib jupyter numpy requests scipy pip install -U pillow matplotlib jupyter numpy requests scipy
#convert md to ipynb
RUN /book/.tools/notedown.sh
EXPOSE 8888 EXPOSE 8888
CMD ["sh", "-c", "jupyter notebook --ip=0.0.0.0 --no-browser --allow-root --NotebookApp.token='' --NotebookApp.disable_check_xsrf=True /book/"] CMD ["sh", "-c", "jupyter notebook --ip=0.0.0.0 --no-browser --allow-root --NotebookApp.token='' --NotebookApp.disable_check_xsrf=True /book/"]
EOF EOF
......
#!/bin/bash
set -xe
cd /book
#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.
先完成此消息的编辑!
想要评论请 注册