Markopolis is a self-hostable alternative to Obsidian Publish.
a web app and API server designed to serve Markdown files. It allows you to share Markdown notes as websites and interact with and manipulate your Markdown files using an API. Simply install Markopolis, point it to a directory holding all your Markdown files, and the library takes care of everything else.