pbek / QOwnNotes

QOwnNotes is a plain-text file notepad and todo-list manager with Markdown support and Nextcloud / ownCloud integration.
https://www.qownnotes.org/
GNU General Public License v2.0
4.71k stars 414 forks source link

Sharing notes #598

Open michael-rowe opened 7 years ago

michael-rowe commented 7 years ago

Hi Patrizio

I have fairly large collections of notes that I'd like to be able to share with my postgraduate students. These are generally lists of readings that would be useful for them. Would it be possible to create a feature that enables a folder of notes to be published (either in public or "private" to those with the link) as a web page?

I'd like to be able to email a single link to all of my students, which takes them to a webpage that has an index of links to all the files in that folder (which would each be converted to individual pages). If this is possible, it'd also be nice if I could edit the CSS of the page :-)

pbek commented 7 years ago

Hm, I'm not sure how that should work and what the result should be. To my knowing cannot publish a webpage via Nextcloud... Or do you want to create the htmls for webpage just locally? That sounds like something that could even be done with the scripting engine (with the help of some external scripts). There are a lot of webpage generators for markdown files, like https://github.com/jekyll/jekyll.

pbek commented 7 years ago

https://pages.github.com/ uses Jekyll.

michael-rowe commented 7 years ago

I wasn't thinking of publishing locally. I meant publishing to the web. That obviously means the pages need to be hosted somewhere...maybe the QOwnNotes Github pages?Alternatively, you could ask the user to provide the location (for example, I have a WordPress site that I could use) and QOwnNotes could publish there.Michael RoweAssociate ProfessorDepartment of PhysiotherapyFaculty of Community and Health SciencesUniversity of the Western Cape

        On Jun 1 2017, at 12:48 pm, Patrizio Bekerle <notifications@github.com> wrote:

          https://pages.github.com/ uses Jekyll.

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

pbek commented 7 years ago

Your locally running QOwnNotes wouldn't be able to commit and push something to the QOwnNotes git repository. Just create your own repository for GitHub pages... https://pages.github.com/ explains how you can do that.

michael-rowe commented 7 years ago

OK, I can see that my local version of QOwnNotes wouldn't be able to push anything to your repository. But I don't see how it could currently push anything to a repository that I control either. So, even if I did set up a repo at Github, how would content that I create in QOwnNotes be pushed to it?

pbek commented 7 years ago

Git support is already integrated into QOwnNotes, you only would need an other script (or a command you call by hand) to do a git push you your remote GitHub repository, so that GitHub creates your website from it.

tito commented 7 years ago

I was searching for that, the git commit works locally fine, but when you don't have an owncloud, the git integration that QOwnNotes have is doing half of the job: saving locally. Having the possibility to have a script post-saving to do a git push or anything else would be very cool (Same as a pre-script when opening the app, like doing a "git pull").

pbek commented 7 years ago

If there is a git pull and git push we basically need a whole git user interface (because of merge conflicts), which would be a lot of work and no one would understand. You can always write a (QOwnNotes) script that does push and pulling.

lolozere commented 6 years ago

Maybe you can use this tool : https://wikitten.vizuina.com/ ? I have already used it to display a git repository where I pushed my markdown notes. You need a server or a web hosting with git, ssh and PHP like OVH. Addons : configure a two ways sync with an auto git push when you edit online.