Fix mime type detection when running on ubuntu 🔎
Was working with @geriom to get this running on his ubuntu machine - when run on a ubuntu machine (still not sure why netflify isnt havign the same issue), the script fails with errors such as: ``` ERROR:root:Cannot process text/markdown file docs/logs.md ``` I reproduced this by running an `ubuntu` docker container and following along with [the DEVELOPMENT.md](https://github.com/tektoncd/website/blob/main/DEVELOPMENT.md) and go the same errors! It seems that when I run on my mac, the mime type of each file is `text/plain` and when I run on ubuntu the mimetype is `text/markdown`. I'm not sure WHY this difference is happening (e.g. the installed `gitpython` versions were the same) but since `text/markdown` seems like a valid type for markdown files, maybe we can just support both!
Showing
想要评论请 注册 或 登录