Skip to content

[ui] Marketplace: Extract code examples in build script #29028

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

Merged
merged 1 commit into from
Apr 8, 2025

Conversation

hellendag
Copy link
Member

@hellendag hellendag commented Apr 4, 2025

Summary & Motivation

Extract code snippets for generating integration docs.

How I Tested These Changes

yarn generate-integration-docs, verify that code is extracted correctly.

Copy link
Member Author

hellendag commented Apr 4, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link

github-actions bot commented Apr 4, 2025

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-pbstbxir8-elementl.vercel.app
https://dish-integrations-code-example.core-storybook.dagster-docs.io

Built with commit cbd22b0.
This pull request is being automatically deployed with vercel-action

@hellendag hellendag force-pushed the dish/integrations-code-example branch from b84f4fd to 2fda052 Compare April 8, 2025 15:29
@hellendag hellendag force-pushed the dish/build-904-dg-in-app branch from 917f332 to 7936528 Compare April 8, 2025 15:29
@hellendag hellendag changed the base branch from dish/build-904-dg-in-app to graphite-base/29028 April 8, 2025 16:02
@hellendag hellendag force-pushed the dish/integrations-code-example branch from 2fda052 to cbd22b0 Compare April 8, 2025 16:02
@hellendag hellendag force-pushed the graphite-base/29028 branch from 7936528 to cbcfed6 Compare April 8, 2025 16:02
@hellendag hellendag changed the base branch from graphite-base/29028 to master April 8, 2025 16:02
@hellendag hellendag marked this pull request as ready for review April 8, 2025 16:05
Comment on lines +16 to +17
const CODE_EXAMPLE_PATH_REGEX =
/<(?:(?:CodeExample)|(?:CliInvocationExample))\s+[^>]*path=["']([^"']+)["'][^>]*language=["']([^"']+)["'][^>]*>/g;
Copy link
Contributor

Choose a reason for hiding this comment

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

😬

Copy link
Member Author

Choose a reason for hiding this comment

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

Cribbed directly from docs code. 😅 When we unify this, at least it can just be scary living in one place.

Copy link
Contributor

@salazarm salazarm left a comment

Choose a reason for hiding this comment

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

generated files look legit

Copy link
Member Author

hellendag commented Apr 8, 2025

Merge activity

  • Apr 8, 11:32 AM CDT: A user started a stack merge that includes this pull request via Graphite.
  • Apr 8, 11:32 AM CDT: A user merged this pull request with Graphite.

@hellendag hellendag merged commit f5875e7 into master Apr 8, 2025
3 checks passed
@hellendag hellendag deleted the dish/integrations-code-example branch April 8, 2025 16:32
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