GEditor is a small tool(WIP) written in guile to edit files and commit changes in a local repo
- parse markdown to html
- edit markdown,preview and commit changes to a local repo
;; using guix
# see manifest.scm for dependencies
guix shell --container --network --share=$HOME/test_repo=/test_repo
# replace test_repo with your preferred repo path
- server startup
guile -L .. server.scm
- to commit changes
curl -X POST http://127.0.0.1:8080/commit -H 'Content-Type: application/json' -d '{"msg":"make test commit","filename":"test.md","repo":"/test_repo","filename":"test.md","content":"new content"}'
expected results
{"success":" : Committed changes with message: make test commit New Commit SHA: 6e47001cb9b596cda8c5a97fbd257b811867f983"}
- edit file
curl -X POST http://127.0.0.1:8080/edit -H 'Content-Type: application/json' -d '{"repo":"/test_repo","filename":"test.md"}'
expected results
{"file_name":"test.md","file_content":"new content"}
- parse markdown to html
curl -X POST -d '{"markdown":"## Header 2"}' http://127.0.0.1:8080/parse
expected results
<h2>Header 2</h2>
see License File