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

add source code render documentation #1319

Merged
merged 5 commits into from
Dec 22, 2023

Conversation

jasonlai1218
Copy link
Contributor

add source code render documentation

  • Modify the table_renderer function in decks.py
  • Add a new function source_code_renderer in decks.py
  • Add a markdown figure for the source code renderer in decks.py
  • Add a markdown figure for the table renderer in decks.py

Associated PR: flyteorg/flytekit#2038

- Modify the `table_renderer` function in `decks.py`
- Add a new function `source_code_renderer` in `decks.py`
- Add a markdown figure for the source code renderer in `decks.py`
- Add a markdown figure for the table renderer in `decks.py`

Signed-off-by: jason.lai <[email protected]>
- Add import statement for `SourceCodeRenderer` from `flytekitplugins.deck.renderer`
- Change the `disable_deck` parameter of the `source_code_renderer` task to `enable_deck`

Signed-off-by: jason.lai <[email protected]>
@@ -236,6 +236,30 @@ def table_renderer() -> None:
)


# %% [markdown]
# :::{figure} https://raw.githubusercontent.com/flyteorg/static-resources/main/flytesnacks/user_guide/flyte_decks_source_code_renderer.png
Copy link
Member

Choose a reason for hiding this comment

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

did you create a PR to static resources? I can't find it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry, I thought this image file would be generated automatically, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it sounds like I need to manually create the file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pingsutw pingsutw merged commit ba8a569 into flyteorg:master Dec 22, 2023
94 of 95 checks passed
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