feat: WASM-based doc viewer (pulldown-cmark)
This commit is contained in:
15
docs_v1.0/API_WORKSPACE/Makefile
Normal file
15
docs_v1.0/API_WORKSPACE/Makefile
Normal file
@@ -0,0 +1,15 @@
|
||||
PYTHON := /opt/homebrew/bin/python3.11
|
||||
WASM_PKG := ../../doc_wasm/pkg
|
||||
|
||||
deploy:
|
||||
@echo "Building HTML docs from modules..."
|
||||
$(PYTHON) ../../scripts/build_docs.py
|
||||
@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/
|
||||
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