Skip to content

Commit 4b5fcf9

Browse files
committed
Build the jupyterlite website
1 parent 8262c1c commit 4b5fcf9

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,7 @@ doc/build/html/index.html
122122
doc/tmp.sv
123123
env/
124124
doc/source/savefig/
125+
126+
# Interactive terminal generate files #
127+
#######################################
128+
.jupyterlite.doit.db

web/pandas_web.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import os
3131
import re
3232
import shutil
33+
import subprocess
3334
import sys
3435
import time
3536
import typing
@@ -258,6 +259,21 @@ def extend_base_template(content: str, base_template: str) -> str:
258259
return result
259260

260261

262+
def build_interactive_terminal(source_path: str, target_path: str) -> int:
263+
build_cmd = [
264+
"jupyter",
265+
"lite",
266+
"build",
267+
"--lite-dir",
268+
os.path.join(source_path, "interactive_terminal"),
269+
"--output-dir",
270+
os.path.join(target_path, "lite"),
271+
"--debug",
272+
]
273+
rc = subprocess.run(build_cmd, check=True)
274+
return rc
275+
276+
261277
def main(
262278
source_path: str, target_path: str, base_url: str, ignore_io_errors: bool
263279
) -> int:
@@ -305,6 +321,8 @@ def main(
305321
os.path.join(source_path, fname), os.path.join(target_path, dirname)
306322
)
307323

324+
build_interactive_terminal(source_path, target_path)
325+
308326

309327
if __name__ == "__main__":
310328
parser = argparse.ArgumentParser(description="Documentation builder.")

0 commit comments

Comments
 (0)