hanami.github.io icon indicating copy to clipboard operation
hanami.github.io copied to clipboard

Docs improvement

Open davydovanton opened this issue 8 years ago • 6 comments

I suggest discussing what we want to add to guides. I created a simple list with my ideas. If you have other ideas - let's discuss and update list ❤️

List

Validations

  • Copy validation docs from validation repository
  • Say that hanami-v based on dry-v

Controllers

  • Add information about flash (now we have only information about testing)
  • Rendering XML and JSON data in controllers
  • Streaming and File Downloads

View

  • Improve example with forms (https://github.com/hanami/helpers/blob/0cf7e87eb3ae5abb52f1636af3da6b1855ada19e/lib/hanami/helpers/form_helper.rb#L149-L181)
  • Write about DELETE and POST links. In rails, you can find some magic about this. I think we have to describe that developer have to make a form for this.

Router

  • Router params. Something like this: http://guides.rubyonrails.org/routing.html#customizing-resourceful-routes
  • How to parse JSON

Introduction

  • Build simple JSON API project with hanami (something like "Getting Started")

Model

  • check this PR: https://github.com/hanami/hanami.github.io/issues/343

Other guides

  • How to build custom CLI
  • Add information about hanami-utils
  • Security Guide
  • Debugging hanami app
  • Profiling hanami app
  • How to contribute to hanami

cc @hanami/core

davydovanton avatar Aug 31 '17 22:08 davydovanton

@davydovanton :+1: I think we have to prioritise guides, most urgents for new users for example.

AlfonsoUceda avatar Sep 04 '17 07:09 AlfonsoUceda

@AlfonsoUceda extremely agree. In the issue, I want to see all problems in our guides. But we can set priority for each guide too 👍

davydovanton avatar Sep 04 '17 08:09 davydovanton

Do we want to change the Getting Started guide from Minitest to RSpec? I know you've suggested the idea before @davydovanton. Since Hanami itself uses RSpec now, I think it's a good idea. I think most Ruby developers are more familiar with RSpec than Minitest (let alone Minitest's Spec syntax).

cllns avatar Sep 06 '17 17:09 cllns

👍👍👍 @cllns I really want to see rspec in our guides

davydovanton avatar Sep 06 '17 18:09 davydovanton

@hanami/core What do the rest of you think about switching from Minitest to RSpec throughout the guides?

cllns avatar Sep 06 '17 21:09 cllns

:+1: for switching from Minitest to Rspec :+1: for prioritizing JSON/JSON API stuff

apohllo avatar Nov 02 '17 12:11 apohllo