publish: add ability to handle multiple markdown files

generated from commit 1904a6c0e08cd38115ee39ddb9ee4a138a8283d3