fix: use no-modules WASM target for simpler loading
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
PYTHON := /opt/homebrew/bin/python3.11
|
||||
WASM_PKG := ../../doc_wasm/pkg
|
||||
WASM_PKG := ../../md_wasm/pkg
|
||||
|
||||
deploy:
|
||||
@echo "Building HTML docs from modules..."
|
||||
@@ -7,9 +7,9 @@ deploy:
|
||||
@echo " ✅ Updated ../doc/ (user docs)"
|
||||
@echo " ✅ Updated ../doc_developer/ (developer docs)"
|
||||
@echo "Building WASM doc..."
|
||||
cd ../../doc_wasm && wasm-pack build --target web --no-opt 2>&1 | tail -2
|
||||
cp $(WASM_PKG)/doc_wasm_bg.wasm ../doc_wasm/pkg/
|
||||
cp $(WASM_PKG)/doc_wasm.js ../doc_wasm/pkg/
|
||||
cd ../../md_wasm && wasm-pack build --target no-modules --no-opt 2>&1 | tail -2
|
||||
cp $(WASM_PKG)/../md_wasm/pkg/md_wasm_bg.wasm ../doc_wasm/pkg/
|
||||
cp $(WASM_PKG)/../md_wasm/pkg/md_wasm.js ../doc_wasm/pkg/
|
||||
cp ../../docs_v1.0/API_WORKSPACE/modules/0*.md ../doc_wasm/modules/
|
||||
cp ../../docs_v1.0/API_WORKSPACE/modules/1*.md ../doc_wasm/modules/
|
||||
@echo " ✅ Updated ../doc_wasm/ (WASM docs)"
|
||||
|
||||
Reference in New Issue
Block a user