Skip to content

Document cross-link feature in library docs generator #5453

Merged
devalog merged 3 commits into
mainfrom
fern/cross-link-library-docs
May 11, 2026
Merged

Document cross-link feature in library docs generator #5453
devalog merged 3 commits into
mainfrom
fern/cross-link-library-docs

Conversation

@fern-api
Copy link
Copy Markdown
Contributor

@fern-api fern-api Bot commented May 11, 2026

Summary

Documents the cross-link feature in the library docs generator. When a fully-qualified identifier from a library appears inside a code block (e.g., in a class signature or type annotation), the generator turns it into a hyperlink to the page documenting that symbol.

The existing page briefly mentioned "cross-reference links" in the intro but didn't explain or show the feature. This adds a dedicated section with the Benchling SDK example.

Changes

  • Adds a new `## Cross-links in code blocks` section to `fern/products/docs/pages/api-references/library-docs.mdx` between the "Configuration" and "Customize generated docs" sections, including a live example link to the Benchling SDK docs.

Requested by: Fern Support

@fern-api fern-api Bot requested a review from devalog as a code owner May 11, 2026 15:53
@fern-api
Copy link
Copy Markdown
Contributor Author

fern-api Bot commented May 11, 2026

Requested by: jon
Slack thread: View conversation


## Cross-links in code blocks

When a fully-qualified identifier from your library appears inside a code block — for example, in a class signature or a type annotation — the generator turns it into a hyperlink to the page documenting that symbol. Readers can jump from a signature directly to the definition of any referenced class, module, or type without leaving the API reference.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Hyphens] 'fully-qualified' doesn't need a hyphen.


## Cross-links in code blocks

When a fully-qualified identifier from your library appears inside a code block — for example, in a class signature or a type annotation — the generator turns it into a hyperlink to the page documenting that symbol. Readers can jump from a signature directly to the definition of any referenced class, module, or type without leaving the API reference.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[FernStyles.Reject] Use 'API Reference' instead of 'API reference'.

@github-actions
Copy link
Copy Markdown
Contributor

🌿 Preview your docs: https://fern-preview-fern-cross-link-library-docs.docs.buildwithfern.com/learn

Here are the markdown pages you've updated:

The library docs generator parses your **Python or C++** library source code and generates MDX documentation pages for modules, classes, functions, methods, and parameters. Generated pages include cross-reference links and hierarchical navigation, and are integrated directly into your Fern Docs site.
The library docs generator parses your **Python or C++** library source code and generates MDX documentation pages for modules, classes, functions, methods, and parameters. Generated pages are added to your Fern Docs site with hierarchical navigation.

Cross-links are automatic. When a fully-qualified identifier appears in a code block — for example, in a class signature or type annotation — the generator links it to the page documenting that symbol, so readers can jump straight to the definition.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Hyphens] 'fully-qualified' doesn't need a hyphen.

@devalog devalog merged commit fb7e22a into main May 11, 2026
2 checks passed
@devalog devalog deleted the fern/cross-link-library-docs branch May 11, 2026 20:29
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.

1 participant