23 lines
706 B
Python
Executable File
23 lines
706 B
Python
Executable File
#!/usr/bin/env python3
|
||
|
||
import lib_common as mylib
|
||
import lib_html as HTML
|
||
import index_app_names # get_sorted_app_names
|
||
|
||
|
||
def process(per_page=60):
|
||
print('generating html: app-index ...')
|
||
title = 'Apps (A–Z)'
|
||
header = HTML.h2_path_n_rank(title, [('/results/', 'Results')], 'ranking/')
|
||
p, a = HTML.write_app_pages(mylib.path_out('index', 'apps'),
|
||
index_app_names.get_sorted_app_names(),
|
||
title, per_page=per_page, pre=header)
|
||
# write_app_pages breaks html_ranking!! call html_ranking after this!
|
||
print(' {} apps'.format(a))
|
||
print(' {} pages'.format(p))
|
||
print('')
|
||
|
||
|
||
if __name__ == '__main__':
|
||
process()
|