PHP Classes

File: support/tools/gendoc

Recommend this page to a friend!
  Classes of Daniele Orlando   FluidXML   support/tools/gendoc   Download  
File: support/tools/gendoc
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: FluidXML
Manipulate XML documents using a fluent interface
Author: By
Last change: Travis CI compliance.
Travis CI initial integration.
Date: 8 years ago
Size: 1,008 bytes
 

Contents

Class file image Download
#!/usr/bin/env sh cd "$(dirname "$0")" . "./.common.sh" cd ../.. PATH="$(pwd)/sandbox/composer/bin:$PATH" if ! chkcmd 'apigen'; then echo ' error: "apigen" command not found.' echo ' Execute "./support/tools/init" first.' exit 1 fi api_dir="documents/api" if test -d "$api_dir"; then rm -rf "$api_dir" fi genapi() { apigen generate \ --source "source" \ --destination "$api_dir" \ --template-theme bootstrap \ --template-config "sandbox/composer/apigen/theme-bootstrap/src/config.neon" \ --title "FluidXML" \ --todo \ --tree } doc_handler() { genapi || true while read -d '' e; do clear genapi || true done } watch "source/" | dsstore_filter | doc_handler # chkcmd 'open' && open "$api_dir/index.html"