Sha256: 996242bfa57e505949efa71e5d80d5d5d0e1746df28ef4e267b61bc015ce205a

Contents?: true

Size: 562 Bytes

Versions: 1

Compression:

Stored size: 562 Bytes

Contents

#!/bin/sh

# ./create_adoc_from_toc.sh ~/MyProjects/hyla/data/toc.adoc MyTocProject

source remove_temp_directories.sh

if [ "$#" == "0" ]; then
    echo "No arguments provided"
    echo "Usage : ./create_adoc_from_toc.sh path_to_toc_file project_name"
    exit 1
fi

echo "TOC file location : $1"
echo "Project Name : $2"

echo "Create a $2 using --force option"
cd ~/hyla
rm -rf $2/

hyla generate -r toc2adoc -p my-project -d ~/hyla/$2/ --toc $1
hyla generate -r adoc2html -s ~/hyla/$2/ -d ~/hyla/$2/generated_content

echo "Project created"
ls -la ~/hyla/$2

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hyla-1.0.3 documentation/scripts/create_adoc_from_toc_config.sh