Skip to content

Generate website API docs from code comments #1341

Closed

Description

@afoxman

Use a tool to extract APIs and types from @rnx-kit packages. Embed them into the API docs on the website.

Example packages which can help with this:

Activity

  1. moved this to 🌳 Backlog in rnx-kiton Mar 31, 2022
  2. kelset commented on Mar 31, 2022

    @kelset
    Contributor

    yes pls! 👏

    For context, there were some attempts also on the rn repo a long time ago: react/react-native@eb7dbc8 but as far as I know it's not actually used. I can reach out to a couple folks to verify the state of that script logic


    UPDATE: it looks like the logic above was never used, but there was also this other attempt: https://github.com/facebook/react-native-website/tree/main/sync-api-docs but this one too has never been used

  3. kelset commented on Apr 5, 2022

    @kelset
    Contributor
  4. tido64 commented on Apr 5, 2022

    @tido64
    Member

    Just an FYI, we are currently using TSDoc to generate the API tables for the tools-*'s README files:

    const { DocExcerpt, TSDocParser } = require("@microsoft/tsdoc");

    It has its own quirks. For instance, you have to manually concatenate the lines, parse parameters AST-style, and other things. It's doable, but not very friendly/maintainable. Would be interested to learn whether TypeDoc is better in this regard.

  5. added
    documentation
    on Feb 15, 2023
  6. moved this from 🌳 Backlog to ✅ Done in rnx-kiton Aug 26, 2026
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

    documentation

    Type

    No type

    Projects

    • Status
      ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions