Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
#21514 : sage -rst2ipynb command
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry Monteil committed Nov 24, 2016
1 parent 4e3c1fd commit 4be49e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/bin/sage
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ usage_advanced() {
#### 1.......................26..................................................78
#### |.....................--.|...................................................|
echo "File conversion:"
echo " -rst2ipynb [...] -- Generates IPython notebook worksheet from standalone"
echo " reStructuredText source."
echo " -rst2txt [...] -- Generates Sage worksheet text file from standalone"
echo " reStructuredText source."
echo " -rst2sws [...] -- Generates Sage worksheet (.sws) from standalone"
Expand Down Expand Up @@ -708,6 +710,11 @@ fi
# File conversion
#####################################################################

if [ "$1" = '-rst2ipynb' -o "$1" = '--rst2ipynb' ]; then
shift
exec sage-rst2ipynb "$@"
fi

if [ "$1" = '-rst2txt' -o "$1" = '--rst2txt' ]; then
shift
exec sage-rst2txt "$@"
Expand Down

0 comments on commit 4be49e4

Please sign in to comment.