Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Add links to source code for functions #154

Open

Description

@johnridesabike

I think it would be useful to have links to the source code with the function definitions. For BuckleScript, it may be also be good to link to the compiled JS source in addition to the OCaml/Reason source.

Activity

  1. ryyppy commented on Mar 31, 2020

    @ryyppy
    Member

    That's a task for the odoc-json tool... definitely worth considering, but not sure how much effort it would be (so might end up lower on the prio list)

    \cc @rizo

  2. added
    docs
    on Mar 31, 2020
  3. mlms13 commented on Mar 31, 2020

    @mlms13

    Upstream odoc issue: ocaml/odoc#128

    This would be a fantastic addition. PureScript's docs have this, and I can't count how many times it's been incredibly valuable to take a quick look at the source to see how an implementation works.

  4. rizo commented on Mar 31, 2020

    @rizo

    I will look into the odoc side of things to evaluate how hard it would be to implement this in an automatic way. I agree that, if doable, it would be great to have this information included in the JSON output.

    An approach that could work as a workaround is adding a custom doc attribute to link to the implementation (something like @src path/to/Module.re#L30).

  5. HuStmpHrrr commented on Sep 11, 2024

    @HuStmpHrrr

    any news?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions