Facubatista: ralsina, yo, vos, cerveza, un local-wiki-server-hecho-en-un-solo-.py-con-interfaz-web en tres horas, pensalo
Facubatista: ralsina, you, me, beer, a local-wiki-server-done-in-one-.py-with-web-interface in three hours, think about it
Serve static files out of
Serve templated markdown out of
Save markdown to
Keep an index of file contents updated in
And that's it. Open the site on any URL that doesn't start with
_static and contains only letters and numbers:
At first the page will be sort of empty, but if you edit it and save it, it won't be empty anymore. You can link to other pages (even ones you have not created)
using the standard markdown syntax:
[go to FooBar](FooBar)
There is really not much else to say about it, if you try it and find bugs, file an issue and as usual patches are welcome.
Why Gyro? Gyros are delicious fast food. Wiki means quick. Also, I like Gyros. to check it out. So, since this was a toy project, why not?
Why Sanic? Ever since Alejandro Lozanoff mentioned a flask-like framework done with the intention to be fast and async I wanted
Why bootstrap? I know more or less what it does, and the resulting page is not totally horrible.
Why JQuery? It's easy, small and I sort of know how it works.
Why Showdown? It's sort of the standard to show markdown on the web.
Why SimpleMDE? It looks and works awesome!
Why Lunr? It works and is smaller than Tipue which is the only other similar thing I know.