### Summary

ansible-doc contains deprecated calls to be removed for 2.17


### Issue Type

Feature Idea

### Component Name

`lib/ansible/cli/doc.py`
return yaml_dump(struct, default_flow_style=flow_style, default_style="''", Dumper=AnsibleDumper).rstrip('\n')
    @staticmethod
    def _indent_lines(text, indent):
        return DocCLI.tty_ify('\n'.join([indent + line for line in text.split('\n')]))
    @staticmethod
    def _format_version_added(version_added, version_added_collection=None):
        if version_added_collection == 'ansible.builtin':
            version_added_collection = 'ansible-core'
            
            if version_added == 'historical':
                return 'historical'
        if version_added_collection:
            version_added = '%s of %s' % (version_added, version_added_collection)
        return 'version %s' % (version_added, )
    @staticmethod
    def add_fields(text, fields, limit, opt_indent, return_values=False, base_indent=''):
        for o in sorted(fields):
            
            opt = dict(fields[o])
            
            required = opt.pop('required', False)
            if not isinstance(required, bool):
                raise AnsibleError("Incorrect value for 'Required', a boolean is needed.: %s" % required)
            if required:
                opt_leadin = "="
            else:
                opt_leadin = "-"
            text.append("%s%s %s" % (base_indent, opt_leadin, o))