From 8dec73b8090e5040a30409264c17a088a017f8ff Mon Sep 17 00:00:00 2001 From: SheetJS Date: Fri, 26 Aug 2022 15:21:53 -0400 Subject: [PATCH] sqlite --- Makefile | 10 +++- README.md | 32 ++++++++++++ .../01-installation/01-standalone.mdx | 2 +- .../01-installation/02-frameworks.md | 4 +- .../01-installation/03-deno.md | 4 +- .../01-installation/07-bun.md | 6 ++- docz/docs/03-demos/04-grid.md | 2 +- docz/docs/03-demos/05-database.md | 52 +++++++++++++++++-- docz/docs/03-demos/14-svelte.md | 4 +- docz/docs/03-demos/33-localfile.md | 15 +++++- docz/docs/index.md | 10 ++-- 11 files changed, 120 insertions(+), 21 deletions(-) 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:
{`\