Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring back lesson editing? #16

Open
garrison opened this issue Jul 21, 2020 · 5 comments
Open

Bring back lesson editing? #16

garrison opened this issue Jul 21, 2020 · 5 comments
Labels
lesson editing Making it easier to edit lessons

Comments

@garrison
Copy link
Contributor

One could imagine bringing back GUI lesson editing on the static site by having the editor work entirely in the browser via Javascript, with the end result being a pull request via the github API. If we choose to host lesson media on IPFS (#15), this system could even potentially use js-ipfs to get the lesson media available to others.

@garrison garrison added the lesson editing Making it easier to edit lessons label Jul 21, 2020
@garrison
Copy link
Contributor Author

garrison commented Jul 22, 2020

I should emphasize that lesson editing can take many forms and may even assume the user is familiar with git and the workflow of pull requests on github. Or perhaps the end result is a zip file containing a TOML file and all the media for a lesson, which the user could then make into a pull request through some other means. The goal is to assist, somehow, with the process of editing lessons in a way that can be documented and useful to those contributing.

Also, this idea of bringing back some form of editor is quite speculative, but I wanted to have an open issue we can point to any time such discussion comes up.

@garrison
Copy link
Contributor Author

garrison commented Aug 2, 2020

Netlify CMS is probably the closest thing in existence to what I am thinking here.

https://github.com/netlify/git-gateway may also be relevant.

@garrison
Copy link
Contributor Author

garrison commented Aug 3, 2020

I tried out Netlify CMS. It was pretty bizarre (in a good way) to create a new blog post through a CMS that runs entirely in the browser, and to have this commit show up in a repository immediately after clicking the "publish" button. I don't believe there is a way to allow people, via Netlify CMS, to prepare a pull request on a site that uses it, but it would be awesome to see this done. I'll look more into this and perhaps ask its developers. Whether Netlify CMS supports it or not, I believe it is possible.

Edit: Apparently Netlify did this by adding their deploy ssh key to that one repository hosting the site. So they are obviously running something on a server somewhere...

Update: here is the link I've been looking for. In fact, I think they have "open authoring" enabled on their docs site if you click the "Edit this page" button on that page. I haven't tried it, though, as Netlify wants an unacceptable level of permission to control my github account, including organizations I have a role in. Perhaps worth trying in a dummy account, but requesting this level of access means I would never use it personally.

Anyway, I suspect this may happen entirely in the browser since it uses a different backend, but I haven't tested it to be sure.

@garrison
Copy link
Contributor Author

Also potentially related: GitLab Static Site Editor, which I found via the Hugo Discourse instance.

@garrison
Copy link
Contributor Author

garrison commented Oct 19, 2020

See also: https://github.com/eduardoboucas/staticman. We could even consider Dokku as an alternative to Heroku.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lesson editing Making it easier to edit lessons
Projects
None yet
Development

No branches or pull requests

1 participant