Commit c6b7e1c3 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Add documentation generation task

parent 9dd3970a
......@@ -70,3 +70,4 @@ def release():
......@@ -24,6 +24,8 @@ from fabric.colors import red, green
# Import datetime
from datetime import datetime
import os.path
import helpers as h
......@@ -147,4 +149,19 @@ def archive_dump(role='docker'):
'drush archive-dump --destination={}/{} --tar-options="--exclude=.git"'.format(env.builddir, platform)
def gen_doc(role='local'):
Generate README file
:param role Default 'role' where to run the task
if os.path.isfile('{}/README.adoc'.format(env.workspace)):
h.fab_run(role, 'asciidoctor -b html5 -o {}/README.html {}/README.adoc'.format(env.workspace, env.workspace))
print(green('README.html generated in {}'.format(env.workspace)))
if os.path.isfile('{}/CHANGELOG.adoc'.format(env.workspace)):
h.fab_run(role, 'asciidoctor -b html5 -o {}/CHANGELOG.html {}/CHANGELOG.adoc'.format(env.workspace, env.workspace))
print(green('CHANGELOG.html generated in {}'.format(env.workspace)))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment