| 104 | # These are default doc handlers that apply in the general case. |
| 105 | |
| 106 | def doc_breadcrumbs(self, help_command, **kwargs): |
| 107 | doc = help_command.doc |
| 108 | if doc.target != 'man': |
| 109 | cmd_names = help_command.event_class.split('.') |
| 110 | doc.write('[ ') |
| 111 | doc.write(':ref:`aws <cli:aws>`') |
| 112 | full_cmd_list = ['aws'] |
| 113 | for cmd in cmd_names[:-1]: |
| 114 | doc.write(' . ') |
| 115 | full_cmd_list.append(cmd) |
| 116 | full_cmd_name = ' '.join(full_cmd_list) |
| 117 | doc.write(f':ref:`{cmd} <cli:{full_cmd_name}>`') |
| 118 | doc.writeln(' ]') |
| 119 | doc.writeln('') |
| 120 | |
| 121 | def doc_title(self, help_command, **kwargs): |
| 122 | doc = help_command.doc |