From 1c348d5a3649d974de0e6b6dcd3bb05a8eba565b Mon Sep 17 00:00:00 2001 From: tang zhixiong Date: Sat, 14 Feb 2026 13:15:44 +0800 Subject: [PATCH] rename to docs --- Makefile | 2 +- build_wasm.sh | 10 +++++----- {web => docs}/index.html | 0 {web => docs}/lib/pocketpy.js | 0 {web => docs}/lib/pocketpy.wasm | Bin {web => docs}/test_numpy.js | 0 6 files changed, 6 insertions(+), 6 deletions(-) rename {web => docs}/index.html (100%) rename {web => docs}/lib/pocketpy.js (100%) rename {web => docs}/lib/pocketpy.wasm (100%) rename {web => docs}/test_numpy.js (100%) diff --git a/Makefile b/Makefile index ca25e65..2433c6d 100644 --- a/Makefile +++ b/Makefile @@ -32,5 +32,5 @@ build_wasm: .PHONY: build_wasm serve_wasm: - cd web && python3 -m http.server 8080 --bind 0.0.0.0 + cd docs && python3 -m http.server 8080 --bind 0.0.0.0 .PHONY: serve_wasm diff --git a/build_wasm.sh b/build_wasm.sh index 0c8779f..a621f59 100755 --- a/build_wasm.sh +++ b/build_wasm.sh @@ -6,8 +6,8 @@ if [ ! -f pocketpy/src/common/_generated.c ]; then fi # Create output directory -rm -rf web/lib -mkdir -p web/lib +rm -rf docs/lib +mkdir -p docs/lib # Generate test_numpy.js from test source python3 -c " @@ -15,7 +15,7 @@ import json with open('tests/test_numpy.py') as f: src = f.read() print('var TEST_SOURCE = ' + json.dumps(src) + ';') -" > web/test_numpy.js +" > docs/test_numpy.js # Common flags DEFINES="-DPK_ENABLE_OS=0 -DPK_ENABLE_THREADS=0 -DPK_ENABLE_DETERMINISM=0 \ @@ -51,8 +51,8 @@ em++ "$TMPDIR/pocketpy.o" \ -sALLOW_MEMORY_GROWTH=1 \ -sSTACK_SIZE=1048576 \ $WARNINGS \ - -o web/lib/pocketpy.js + -o docs/lib/pocketpy.js rm -rf "$TMPDIR" -echo "Build complete: web/lib/pocketpy.js, web/lib/pocketpy.wasm" +echo "Build complete: docs/lib/pocketpy.js, docs/lib/pocketpy.wasm" diff --git a/web/index.html b/docs/index.html similarity index 100% rename from web/index.html rename to docs/index.html diff --git a/web/lib/pocketpy.js b/docs/lib/pocketpy.js similarity index 100% rename from web/lib/pocketpy.js rename to docs/lib/pocketpy.js diff --git a/web/lib/pocketpy.wasm b/docs/lib/pocketpy.wasm similarity index 100% rename from web/lib/pocketpy.wasm rename to docs/lib/pocketpy.wasm diff --git a/web/test_numpy.js b/docs/test_numpy.js similarity index 100% rename from web/test_numpy.js rename to docs/test_numpy.js