This is already possible for technical docs which is supported by something like https://mintlify.com/ , I want something like this for blogging as well.
Blot (https://blot.im) also does something like that by syncing a git repo (information about that here: https://blot.im/how/sync/git).