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

Using monorepo packages within fern custom component #5648

Open
louisgv opened this issue Jan 18, 2025 · 0 comments
Open

Using monorepo packages within fern custom component #5648

louisgv opened this issue Jan 18, 2025 · 0 comments
Labels
feature Requests for new features. product/docs Fern Docs which builds and hosts a developer documentation site

Comments

@louisgv
Copy link

louisgv commented Jan 18, 2025

Feature Description

We have fern in our turborepo, and what we would love is the ability to import existing components into our fern docs.

Example pnpm-workspace.yaml:

packages:
  - 'configs/*'
  - 'packages/*'
  - 'projects/*'

The fern project is inside projects/docs

The helper project is inside packages/helpers

In a fern component, we'd like to import ts/tsx/json file. Contrive example:

import prettyJSON from '@monorepo/helpers/json'

export function PrettyJSON({data}) {
    return <div>{prettyJSON(data)}</div>
}

Use Case

We would like to leverage existing helpers and components that we have created in our monorepo in the Fern docs module to increase code-reuse, increase consistency, and reduce migration effort.

Proposed Experience (Optional)

No response

Alternatives Considered (Optional)

No response

@louisgv louisgv added feature Requests for new features. product/docs Fern Docs which builds and hosts a developer documentation site labels Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Requests for new features. product/docs Fern Docs which builds and hosts a developer documentation site
Development

No branches or pull requests

1 participant