diff --git a/Makefile b/Makefile index b9771c0..cd0407e 100644 --- a/Makefile +++ b/Makefile @@ -6,9 +6,17 @@ build: mv docz/build/ docs cp CNAME docs +.PHONY: init +init: + cd docz; npm i; cd .. + +.PHONY: dev +dev: + cd docz; npm run start; cd .. + .PHONY: serve serve: - cd docs; python -mSimpleHTTPServer || python3 -mhttp.server; cd - + npx -y http-server docs .PHONY: spell spell: diff --git a/README.md b/README.md index 786cbd6..6992fa1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,35 @@ # SheetJS CE Docs Hosted URL: + +## Development + +`docz/version.js` exports a version number for use in docs pages. + +Build commands: + +```bash +$ make init # install dependencies +$ make # build static site +$ make serve # serve static site + +$ make dev # run dev server +$ make spell # spell check (.spelling custom dictionary) +$ make graph # build format graph and legend +``` + +## Live Demos + +**Imports do not work from live codeblocks!** + + is loaded +on each page, making the `XLSX` variable available to live blocks. + +Specific pages can load scripts using the `head` component: + +```html + + + +``` + diff --git a/docz/docs/02-getting-started/01-installation/01-standalone.mdx b/docz/docs/02-getting-started/01-installation/01-standalone.mdx index 1b8593d..1297995 100644 --- a/docz/docs/02-getting-started/01-installation/01-standalone.mdx +++ b/docz/docs/02-getting-started/01-installation/01-standalone.mdx @@ -119,7 +119,7 @@ import { read, writeFileXLSX } from "https://cdn.sheetjs.com/xlsx-${current}/pac `} -If XLS support is required, `cpexcel.full.mjs` must be manually imported: +If Encoding support is required, `cpexcel.full.mjs` must be manually imported:
{`\