generate-docs.py: skip any file that doesn't look like Markdown

Don't generate output for any file that doesn't look like a Markdown-
formatted file.

Signed-off-by: Alex Smith <alex@alex-smith.me.uk>