Skip to content

Commit

Permalink
adding image
Browse files Browse the repository at this point in the history
  • Loading branch information
namnguyen20999 committed Dec 2, 2024
1 parent 53070f5 commit cd5ed1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/gui/extension/company_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@

example_library = ExampleLibrary()
text_file_path = example_library.get_resource("resources/company_profile.md")
logo_path = example_library.get_resource("resources/taipy_logo.png")

with open(text_file_path, "r") as file:
text_content = file.read()

page = """
<|{logo_path}|image|width=100px|>
<|{text_content}|text|mode=markdown|>
"""

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cd5ed1d

Please sign in to comment.