Skip to content

Commit d004e37

Browse files
committed
site icon
1 parent a220659 commit d004e37

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

scripts/build.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,16 @@ def main() -> None:
268268
# Generate landing page using Tailwind CSS
269269
generate_clean_tailwind_landing_page(courses, args.output_dir)
270270

271+
# cp assets folder to o/p directory
272+
import shutil
273+
assets_src = "assets"
274+
assets_dst = os.path.join(args.output_dir, "assets")
275+
if os.path.exists(assets_src):
276+
if os.path.exists(assets_dst):
277+
shutil.rmtree(assets_dst)
278+
shutil.copytree(assets_src, assets_dst)
279+
print(f"Copied assets from {assets_src} to {assets_dst}")
280+
271281
# Save course data as JSON for potential use by other tools
272282
courses_json_path = os.path.join(args.output_dir, "courses.json")
273283
with open(courses_json_path, "w", encoding="utf-8") as f:

scripts/templates/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Marimo Learn - Interactive Python Notebooks</title>
77
<meta name="description" content="Learn Python, data science, and machine learning with interactive marimo notebooks">
8+
<link rel="icon" type="image/png" href="./assets/marimo-learn.png">
89
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
910
<style>
1011
:root {

0 commit comments

Comments
 (0)