Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More fields in @doc-json #1134

Open
5 tasks
dlesbre opened this issue May 26, 2024 · 0 comments
Open
5 tasks

More fields in @doc-json #1134

dlesbre opened this issue May 26, 2024 · 0 comments

Comments

@dlesbre
Copy link

dlesbre commented May 26, 2024

As mentioned in the discuss.ocaml post, I would appreciate a few extra fields in the generated JSON files to make integrating them in my website easier. jonludlam suggested I open an issue for these here as well:

  • A title field with the page title (currently obtainable from breadcrumbs[-1].name
  • A package field with the name of the current package (currently can be obtained from the path of the generated doc)
  • A version field with the version of the current package (I'm building versioned docs). Currently I can only obtain this through git ref names.
  • An objects fields with the list and type (val, module, type, module type...) of all objects defined in the current file
  • A sherlodoc field indicating whether or not sherlodoc was present (and if so, the relative path from the current file to the db.js file).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant