Skip to content

Commit

Permalink
Output polishing beaknit#34
Browse files Browse the repository at this point in the history
  • Loading branch information
dgomesbr committed Aug 8, 2016
1 parent 84b604f commit b9ad038
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions build/build-snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ def generate(index):
progress.update(i, 'Generating snippets')
for k, v in index.iteritems():
(arn, title, href, full_href) = v
snippet = createSnippet(arn, title, href, full_href)
# snippet = createSnippet(arn, title, href, full_href)
i += 1
percent = i * 100 / total
progress.update(percent, 'Creating ' + Fore.GREEN + arn)
writeToOutput(title, snippet)
progress.update(percent, 'Generation completed')
# writeToOutput(title, snippet)
progress.update(percent, 'Snippets completed')


def createSnippet(arn, title, href, full_href):
Expand Down Expand Up @@ -117,20 +117,20 @@ def generate_functions():
]
i = 0
percent = 0
progress = ProgressBar()
progress.update(i, 'Generating functions')
total = len(toc_functions)

print(' Functions found: ' + Fore.GREEN + str(total))

progress = ProgressBar()
progress.update(i, 'Generating functions')

for v in toc_functions:
(arn, title, body, href, full_href) = v
writeToOutput(title, build_with_template(arn, title, body, full_href))
i += 1
percent = i * 100 / total
progress.update(percent, 'Creating ' + Fore.GREEN + arn)

progress.update(percent, 'Generation completed')
progress.update(percent, 'Functions generated.')


def main():
Expand Down

0 comments on commit b9ad038

Please sign in to comment.