示例#1
0
def pybook_init(root=None):
    if not root:
        root = os.getcwd()
    if not os.path.isabs(root):
        root = os.path.abspath(root)
    pybook = Book(root)
    pybook.init()
示例#2
0
def pybook_build(root=None, build='build'):
    if not root:
        root = os.getcwd()
    if not os.path.isabs(root):
        root = os.path.abspath(root)

    # TODO: check for specific renderer
    pybook = Book(root, build)
    pybook.build()