From 7d9d46e4d2f56322b54c73251f8d7426965685fb Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Tue, 8 Oct 2024 11:35:11 -0700 Subject: [PATCH] Update link to the demo, add demo files (#29) * update link to the demo * Add demo files * add files * move demo files to demo * Revert "move demo files to demo" This reverts commit b9de33ba07ce8b1a5aba8f384426eb87d796bf9f. --- README.md | 2 +- demo/contents/fact.lua | 8 ++++++++ demo/contents/months.txt | 12 ++++++++++++ deploy.sh | 2 +- 4 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 demo/contents/fact.lua create mode 100644 demo/contents/months.txt diff --git a/README.md b/README.md index 762c7b1..8c825f9 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # jupyterlite-terminal [![Github Actions Status](https://github.com/jupyterlite/terminal/workflows/Build/badge.svg)](https://github.com/jupyterlite/terminal/actions/workflows/build.yml) -[![lite-badge](https://jupyterlite.rtfd.io/en/latest/_static/badge.svg)](https://jupyterlite.github.io/terminal/lab/index.html) +[![lite-badge](https://jupyterlite.rtfd.io/en/latest/_static/badge.svg)](https://jupyterlite-terminal.vercel.app/) A terminal for JupyterLite. diff --git a/demo/contents/fact.lua b/demo/contents/fact.lua new file mode 100644 index 0000000..a7e0449 --- /dev/null +++ b/demo/contents/fact.lua @@ -0,0 +1,8 @@ +function fact(n, acc) + acc = acc or 1 + if n == 0 then + return acc + end + return fact(n-1, n*acc) +end +print(fact(tonumber(arg[1]))) diff --git a/demo/contents/months.txt b/demo/contents/months.txt new file mode 100644 index 0000000..9b28fd0 --- /dev/null +++ b/demo/contents/months.txt @@ -0,0 +1,12 @@ +August +November +March +January +July +May +October +February +December +April +September +June diff --git a/deploy.sh b/deploy.sh index e3cc36b..c57652f 100644 --- a/deploy.sh +++ b/deploy.sh @@ -22,4 +22,4 @@ python -m pip install -r requirements-deploy.txt # build the JupyterLite site jupyter lite --version -jupyter lite build --output-dir dist +jupyter lite build --contents demo/contents --output-dir dist