rescript-apollo-client icon indicating copy to clipboard operation
rescript-apollo-client copied to clipboard

Documentation Site

Open jeddeloh opened this issue 3 years ago • 4 comments

I'd really like to get a proper documentation site up. Some possibilities:

  • Just hack together something with Docusaurus
  • Use current OCamldoc to generate something: https://dev.to/yawaramin/publish-reasonml-api-docs-automatically-3c4i
  • Wait for some new markdown enhancements to land in OCamldoc?

jeddeloh avatar Jul 19 '20 14:07 jeddeloh

I am hacking on odoc (but not sure when I will arrive at anything good). Markdown support for doc comments /** ... */ will land in reason soon automatically converting it to ocamldoc so it will render in the documentation generator, so it would be good to document the bindings and modules using that even before we have good documentation generation and before markdown supports land.

jfrolich avatar Jul 19 '20 17:07 jfrolich

@jfrolich Markdown support will land in Reason (I assume, at some point), but not in BuckleScript because BuckleScript is not upgrading its refmt version for the foreseeable future.

yawaramin avatar Jul 20 '20 20:07 yawaramin

I hope we can land it in the new syntax as well. It is possible to use your own version of refmt with Bucklescript. Are you sure Bucklescript is not upgrading Reason? That would not be great. It wouldn't be so bad if they would decoupled and released separately though, but shipping an old version by default is not great I guess.

jfrolich avatar Jul 21 '20 01:07 jfrolich

Based on what happened in https://github.com/BuckleScript/bucklescript/pull/4271 and then after that the new syntax being publicized, I assume they won't upgrade. And I don't see Markdown docs landing in the new syntax in the near future either (in fact it will be a long road to get to even odoc support for the new syntax, i.e. parity with where Reason syntax is now).

If you want to publish API docs in the near future, your best bet is bsdoc with the current Reason syntax + ocamldoc markup.

yawaramin avatar Jul 21 '20 01:07 yawaramin