DOCS Setting allowed_extensions in YAML

3.1 compatible docs in place of #3267