Sha256: 773af6600650fddd241abf2112c4c87ab7c3c92f70ec093219691607ca556334

Contents?: true

Size: 522 Bytes

Versions: 18

Compression:

Stored size: 522 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"

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

18 entries across 18 versions & 1 rubygems

Version Path
hyla-1.0.9 documentation/scripts/create_adoc_from_toc.sh
hyla-1.0.9.pre.3 documentation/scripts/create_adoc_from_toc.sh
hyla-1.0.9.pre.2 documentation/scripts/create_adoc_from_toc.sh
hyla-1.0.9.pre.1 documentation/scripts/create_adoc_from_toc.sh
hyla-1.0.8 documentation/scripts/create_adoc_from_toc.sh
hyla-1.0.7 documentation/scripts/create_adoc_from_toc.sh
hyla-1.0.7.pre.9 documentation/scripts/create_adoc_from_toc.sh
hyla-1.0.7.pre.8 documentation/scripts/create_adoc_from_toc.sh
hyla-1.0.7.pre.7 documentation/scripts/create_adoc_from_toc.sh
hyla-1.0.7.pre.6 documentation/scripts/create_adoc_from_toc.sh
hyla-1.0.7.pre.5 documentation/scripts/create_adoc_from_toc.sh
hyla-1.0.7.pre.3 documentation/scripts/create_adoc_from_toc.sh
hyla-1.0.7.pre.2 documentation/scripts/create_adoc_from_toc.sh
hyla-1.0.7.pre.1 documentation/scripts/create_adoc_from_toc.sh
hyla-1.0.6 documentation/scripts/create_adoc_from_toc.sh
hyla-1.0.5 documentation/scripts/create_adoc_from_toc.sh
hyla-1.0.5.pre.1 documentation/scripts/create_adoc_from_toc.sh
hyla-1.0.4 documentation/scripts/create_adoc_from_toc.sh