hackmd-io-issues
hackmd-io-issues copied to clipboard
Auto-sync with Git Repository (for Book Mode)
Just my two cents: It would be great if HackMD's "Book mode" can be synced with a selected Git repo with Markdown files organized in file hierarchy style , like /README synced with /README.{md,markdown} and /Intro/About synced with /Intro/About.{md,markdown}.
Related with https://github.com/hackmdio/hackmd/issues/114, but in a different fashion.
Would this be related to being able to sync multiple HackMD pages with GitHub -- rather than just one?
@reagle I envision this would be related to the ability to sync multiple HackMD pages with GitHub. I found this issue while trying to see if there was a way to Sync a whole book down to GitHub. I have some files that are really large and while figuring out how to break them down discovered books. But having to manually configure and sync down changes to each individual file/page seems like it will be too much trouble. Treating the book as a whole, with its define hierarchy, and syncing all pages down together seems like a good idea.
@jackycute (I think) has confirmed syncing collections as a worthwhile idea, but I don't think there's an issue for it. In fact, I found this issue while searching for an update on syncing multiple pages.
I'm curious if there are any updates on this. We ended up switching to GitBook shortly after I commented here. Just recently I was trying to figure out exactly what it was that made us switch since we really liked Hackmd when I stumbled into this thread again.
Hi everyone, we are well received that syncing a whole repo's markdown files is a need. There are few major things we should figure out to have this feature:
- How HackMD connect with file system (hierarchy structure)
- How to setup auto syncing, by folder or by file? And which changes to accept while syncing?
We are working on other task at the moment, as a really small team we have to prioritize everything. I will get back here when there is any progressing.
Hi @jackycute! Any updates on this? Didnt find a way to sync whole github repo with hackmd
With the launch of the API, there might be a way to do this > get all files made by a user > make a folder with all those files > git push > Then, whenever a file is saved/ a "push to repo" button is clicked the new changes are pushed (after resolving any git issues?) However, there is no way to detect when a file is saved so either they would need to put in a button, or we could do it after every certain period of time (like every 24 hours/etc) But, it is obv not a convenient solution.
Waiting for folders in hackmd though!
+1
is this still being worked on? currently running into similar issues - would love to auto sync a HackMD book and the associated markdown files to a GitHub repository.
CC: @jackycute