mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 07:04:17 +00:00 
			
		
		
		
	utils/doc: Rename get_rst_from_extension for consistency
This commit is contained in:
		| @@ -291,17 +291,16 @@ def underline(text, symbol='='): | |||||||
|     return '{}\n{}\n\n'.format(text, symbol * len(text)) |     return '{}\n{}\n\n'.format(text, symbol * len(text)) | ||||||
|  |  | ||||||
|  |  | ||||||
| def get_rst_from_extension(ext): | def get_rst_from_plugin(plugin): | ||||||
|     text = underline(ext.name, '-') |     text = underline(plugin.name, '-') | ||||||
|     if hasattr(ext, 'description'): |     if hasattr(plugin, 'description'): | ||||||
|         desc = strip_inlined_text(ext.description or '') |         desc = strip_inlined_text(plugin.description or '') | ||||||
|     elif ext.__doc__: |     elif plugin.__doc__: | ||||||
|         desc = strip_inlined_text(ext.__doc__) |         desc = strip_inlined_text(plugin.__doc__) | ||||||
|     else: |     else: | ||||||
|         desc = '' |         desc = '' | ||||||
|     text += desc + '\n\n' |     text += desc + '\n\n' | ||||||
|     params_rst = get_params_rst(ext.parameters) |     params_rst = get_params_rst(plugin.parameters) | ||||||
|     if params_rst: |     if params_rst: | ||||||
|         text += underline('parameters', '~') + params_rst |         text += underline('parameters', '~') + params_rst | ||||||
|     return text + '\n' |     return text + '\n' | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user