elli-lib / elli

Simple, robust and performant Erlang web server
https://github.com/elli-lib/elli/blob/develop/doc/README.md
MIT License
322 stars 38 forks source link

Improve documentation #38

Open lpil opened 6 years ago

lpil commented 6 years ago

Hi there!

I'm enjoying Elli after switching a couple projects to it from Cowboy.

My main problem has been lack of documentation, for example I needed to read the source code to determine how to use middleware (and I feel I'm still missing many of the details).

I feel this results in Elli being less accessible and less likely to be used, especially to people who are more used to Elixir rather than Erlang. Could we improve the docs? Perhaps include a series of examples in the README?

I'd be happy to help here.

Cheers, Louis

deadtrickster commented 6 years ago

Hi,

you totally right! we need more examples and use-cases. Personally I don't have much time for this unfortunately. But if you decide to contribute I'll be happy to discuss and merge.

lpil commented 6 years ago

Cool. Where would you like me to put them?

deadtrickster commented 6 years ago

I think starting with extending REAME would be good enough. complete app(s) can go to a separate directory.

yurrriq commented 6 years ago

I wouldn't mind a separate elli-lib repo even.

lpil commented 6 years ago

Hi @yurrriq, could you make an elli-example repo please? I'll make a pull request there afterwards :)

deadtrickster commented 6 years ago

https://github.com/elli-lib/elli-example

lpil commented 6 years ago

examples would be better than example unless we only want one example per repo.

I was imagining many small ones in there for users to read without getting lost in a big app

lpil commented 6 years ago

Also this seems to hand been closed prematurely, the documentation is still very sparse.

deadtrickster commented 6 years ago

I closed this issue accidentally

lpil commented 6 years ago

Thanks @deadtrickster ! :)

lpil commented 6 years ago

Me again, sorry. I don't seem to be able to make a PR until there is a first commit. Could you perhaps make a commit with an empty README or such?

tsloughter commented 6 years ago

@lpil looks like there is one now.

Also, we should publish docs to hex. I'm fine putting all docs in edoc stuff and publishing to hex for everything, but we could also consider something like readme.io.

lpil commented 6 years ago

Aye, I've made some PRs since :)

Documentation on hexdocs would be fantastic from my point of view

yurrriq commented 3 years ago

Hmm.. looks like something's gone wrong with the last couple times publishing to hexdocs. Not my wheelhouse, though I'd be happy to look into it. Ideally we can fix this for 4.0

paulo-ferraz-oliveira commented 1 year ago

@lpil, a bit late to the party, but... is that repo. enough for what you envisioned? (I know you're busy with other stuff) I was just wondering if there's the need to update in the scope of this issue, or it could be closed (?) The one I linked doesn't solve all issues, of course, it just moves to ex_doc 😄

lpil commented 1 year ago

I'm sorry but I've not given this any thought in recent years!