Skip to content

Conversation

aspeddro
Copy link
Contributor

@aspeddro aspeddro commented Jan 21, 2024

The output doesn't print docstrings for nested submodules in interface files.

Example: API Docs for Core.Math.Constants

Now

dune exec -- rescript-tools doc ~/Desktop/projects/rescript-core/src/Core__Math.res | head
{
  "name": "Core__Math",
  "docstrings": ["Functions for interacting with JavaScript Math.\nSee: [`Math`](https://developer.mozil
la.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math)."],
  "items": [
  {
    "id": "Core__Math.Constants",
    "name": "Constants",
    "kind": "module",
    "docstrings": ["Mathematical Constants"],

Other Change

  • Print deprecated field for module

@zth
Copy link
Member

zth commented Jan 22, 2024

Great!

@zth zth merged commit a9e1e18 into rescript-lang:master Jan 22, 2024
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

Successfully merging this pull request may close these issues.

2 participants