notebook2rst.sh 261 Bytes
Newer Older
sunzhq2's avatar
sunzhq2 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash

set -euo pipefail

cd "$(dirname "$0")"

if [ ! -d notebook ]; then
    git clone https://github.com/espnet/notebook --depth 1
fi

echo "\
.. toctree::
   :maxdepth: 1
   :caption: Notebook:
"

find ./notebook/*.ipynb -exec echo "   {}" \;