import os
import glob
import shutil
import py2html
from corbon import buildSite
import dialogKit

######################

# some content will be dynamically generated

baseDir = os.path.dirname(os.path.dirname(os.path.dirname(dialogKit.__file__)))
documentationDir = os.path.join(baseDir, 'documentation', 'source')

######################

# auto build the examples into valid xml for corbon

pyDir = os.path.join(baseDir, 'examples')
xmlDir = os.path.join(documentationDir, 'examples')
imagesDir = os.path.join(documentationDir, 'images')
#
templatePath = os.path.join(documentationDir, 'settings', 'example.xml')
templateWithImagePath = os.path.join(documentationDir, 'settings', 'exampleWithImage.xml')
f = open(templatePath, 'r')
template = f.read()
f.close()