diff options
Diffstat (limited to 'doc/tools')
-rwxr-xr-x | doc/tools/doc_status.py | 17 | ||||
-rw-r--r-- | doc/tools/makedocs.py | 1 |
2 files changed, 11 insertions, 7 deletions
diff --git a/doc/tools/doc_status.py b/doc/tools/doc_status.py index e05bcd63e7..1386e91ce1 100755 --- a/doc/tools/doc_status.py +++ b/doc/tools/doc_status.py @@ -20,6 +20,7 @@ flags = { 'p': False, 'o': True, 'i': False, + 'a': True, } flag_descriptions = { 'c': 'Toggle colors when outputting.', @@ -31,6 +32,7 @@ flag_descriptions = { 'p': 'Toggle showing percentage as well as counts.', 'o': 'Toggle overall column.', 'i': 'Toggle collapse of class items columns.', + 'a': 'Toggle showing all items.', } long_flags = { 'colors': 'c', @@ -58,6 +60,8 @@ long_flags = { 'items': 'i', 'collapse': 'i', + + 'all': 'a', } table_columns = ['name', 'brief_description', 'description', 'methods', 'constants', 'members', 'signals'] table_column_names = ['Name', 'Brief Desc.', 'Desc.', 'Methods', 'Constants', 'Members', 'Signals'] @@ -202,7 +206,7 @@ class ClassStatus: output['overall'] = (description_progress + items_progress).to_colored_string('{percent}%', '{pad_percent}{s}') if self.name.startswith('Total'): - output['url'] = color('url', 'http://docs.godotengine.org/en/latest/classes/_classes.html') + output['url'] = color('url', 'http://docs.godotengine.org/en/latest/classes/') if flags['s']: output['comment'] = color('part_good', 'ALL OK') else: @@ -354,12 +358,11 @@ for cn in input_class_list: validate_tag(c, 'class') status = ClassStatus.generate_for_class(c) - if flags['b'] and status.is_ok(): - continue - if flags['g'] and not status.is_ok(): + total_status = total_status + status + + if (flags['b'] and status.is_ok()) or (flags['g'] and not status.is_ok()) or (not flags['a']): continue - total_status = total_status + status out = status.make_output() row = [] for column in table_columns: @@ -378,11 +381,11 @@ for cn in input_class_list: # Print output table # ################################################################################ -if len(table) == 1: +if len(table) == 1 and flags['a']: print(color('part_big_problem', 'No classes suitable for printing!')) sys.exit(0) -if len(table) > 2: +if len(table) > 2 or not flags['a']: total_status.name = 'Total = {0}'.format(len(table) - 1) out = total_status.make_output() row = [] diff --git a/doc/tools/makedocs.py b/doc/tools/makedocs.py index 4c4b5d6fb9..9e0430bfbf 100644 --- a/doc/tools/makedocs.py +++ b/doc/tools/makedocs.py @@ -4,6 +4,7 @@ # # makedocs.py: Generate documentation for Open Project Wiki # Copyright (c) 2007-2017 Juan Linietsky, Ariel Manzur. +# Copyright (c) 2014-2017 Godot Engine contributors (cf. AUTHORS.md) # Contributor: Jorge Araya Navarro <elcorreo@deshackra.com> # |