-
Notifications
You must be signed in to change notification settings - Fork 123
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
add source code
render documentation
#1319
Conversation
- 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 |
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.
did you create a PR to static resources? I can't find it.
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.
sorry, I thought this image file would be generated automatically, right?
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.
it sounds like I need to manually create the file.
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.
updated
flyteorg/static-resources#33
add
source code
render documentationtable_renderer
function indecks.py
source_code_renderer
indecks.py
decks.py
decks.py
Associated PR: flyteorg/flytekit#2038