DOCS Setting allowed_extensions in YAML

3.1 compatible docs in place of #3267
Merge pull request #3308 from camfindlay/patch-9

DOCS Setting allowed_extensions in YAML