|
|
|
@ -21,7 +21,7 @@ def build():
|
|
|
|
|
build_task = doc.build() |
|
|
|
|
build_task.join() |
|
|
|
|
|
|
|
|
|
return build_task.get_output_str().replace('\n', '<br/>') |
|
|
|
|
return build_task.get_output_str().replace('\n', '<br/>\n') |
|
|
|
|
|
|
|
|
|
@bp.route('/clone') |
|
|
|
|
def clone(): |
|
|
|
@ -33,4 +33,4 @@ def clone():
|
|
|
|
|
clone_task = Document.clone(repo, branch, doc_name, source_dir) |
|
|
|
|
clone_task.join() |
|
|
|
|
|
|
|
|
|
return clone_task.get_output_str().replace('\n', '<br/>') |
|
|
|
|
return clone_task.get_output_str().replace('\n', '<br/>\n') |
|
|
|
|