github.com/kaituanwang/hyperledger@v2.0.1+incompatible/docs/source/mdtorst.sh (about)

     1  #!/bin/bash
     2  #
     3  # Copyright IBM Corp. All Rights Reserved.
     4  #
     5  # SPDX-License-Identifier: Apache-2.0
     6  #
     7  
     8  FILES=*.md
     9  for f in $FILES
    10  do
    11    # extension="${f##*.}"
    12    filename="${f%.*}"
    13    echo "Converting $f to $filename.rst"
    14    `pandoc $f -t rst -o $filename.rst`
    15    # uncomment this line to delete the source file.
    16    # rm $f
    17  done