-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[dg] Render dg docs within the app #29233
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
Conversation
Deploy preview for dagit-core-storybook ready! ✅ Preview Built with commit a355547. |
dd4c9ed
to
5851e7b
Compare
transpilePackages: [ | ||
'@dagster-io/ui-components', | ||
'@dagster-io/ui-core', | ||
'@dagster-io/dg-docs-components', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This package must be transpiled by app-oss Next.js config like the others, because it's a local workspace package.
|
||
if (!contents) { | ||
return <div className={styles.emptyState}>No components found.</div>; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should iterate on the empty states. cc @katefarrar
background-color: var(--color-background-light-hover); | ||
color: var(--color-text-default); | ||
text-decoration: none; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are mostly copied over from existing CSS files in dg-docs-site
, now moved to dg-docs-components
so they can be used in the main app.
5851e7b
to
a355547
Compare
Summary & Motivation
Behind a feature flag, render
dg docs
within the app, within code locations that have docs available.This involved some changes to the existing
dg-docs-site
to reuse some pieces that are currently there but are reusable here.Brief demo:
Screen.Recording.2025-04-11.at.15.14.08.mov
Ignore the
default
cursor on there -- the cursors are correct, this is just QuickTime Player acting up.How I Tested These Changes
dg dev
in dg-enabled project, then run JS dev for Dagster app.Run
dg docs serve
, verify that this continues to build and render correctly.