Spaces:
Running
Running
site icon
Browse files- scripts/build.py +10 -0
- scripts/templates/index.html +1 -0
scripts/build.py
CHANGED
@@ -268,6 +268,16 @@ def main() -> None:
|
|
268 |
# Generate landing page using Tailwind CSS
|
269 |
generate_clean_tailwind_landing_page(courses, args.output_dir)
|
270 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
# Save course data as JSON for potential use by other tools
|
272 |
courses_json_path = os.path.join(args.output_dir, "courses.json")
|
273 |
with open(courses_json_path, "w", encoding="utf-8") as f:
|
|
|
268 |
# Generate landing page using Tailwind CSS
|
269 |
generate_clean_tailwind_landing_page(courses, args.output_dir)
|
270 |
|
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 |
+
|
281 |
# Save course data as JSON for potential use by other tools
|
282 |
courses_json_path = os.path.join(args.output_dir, "courses.json")
|
283 |
with open(courses_json_path, "w", encoding="utf-8") as f:
|
scripts/templates/index.html
CHANGED
@@ -5,6 +5,7 @@
|
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Marimo Learn - Interactive Python Notebooks</title>
|
7 |
<meta name="description" content="Learn Python, data science, and machine learning with interactive marimo notebooks">
|
|
|
8 |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
|
9 |
<style>
|
10 |
:root {
|
|
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Marimo Learn - Interactive Python Notebooks</title>
|
7 |
<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">
|
9 |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
|
10 |
<style>
|
11 |
:root {
|