diff --git a/Makefile b/Makefile index 85b73c1..65987f2 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ build: cd docz; pnpm build; cd .. rm -rf docs mv docz/build/ docs + cp CNAME docs .PHONY: index index: readme ## Rebuild site diff --git a/docz/docs/index.md b/docz/docs/index.md index 31016d8..8f4df66 100644 --- a/docz/docs/index.md +++ b/docz/docs/index.md @@ -50,7 +50,7 @@ more common use cases including plain JavaScript. 4) Add an event handler for the `click` event to create a workbook and download: ```js -document.getElementById("TableToExport").addEventListener('click', function() { +document.getElementById("sheetjsexport").addEventListener('click', function() { /* Create worksheet from HTML DOM TABLE */ var wb = XLSX.utils.table_to_book(document.getElementById("TableToExport")); /* Export to file (start a download) */