@@ -364,9 +366,9 @@ like `axios` presents a similar API for fetching data:
Install the dependencies:
-```bash
-npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz axios
-```
+{`\
+npm i --save https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz axios`}
+
The differences in the script are highlighted below.
diff --git a/docz/docs/02-getting-started/index.md b/docz/docs/02-getting-started/index.md
index d8705a5..e80960f 100644
--- a/docz/docs/02-getting-started/index.md
+++ b/docz/docs/02-getting-started/index.md
@@ -28,3 +28,10 @@ read the installation instructions for your use case:
});
})}
+:::info
+
+[Watch the repo](https://git.sheetjs.com/SheetJS/sheetjs) or subscribe to the
+[RSS feed](https://git.sheetjs.com/sheetjs/sheetjs/tags.rss) to be notified when
+new versions are released!
+
+:::
diff --git a/docz/docs/03-demos/01-frontend/01-react.md b/docz/docs/03-demos/01-frontend/01-react.md
index 2f89ab3..403868a 100644
--- a/docz/docs/03-demos/01-frontend/01-react.md
+++ b/docz/docs/03-demos/01-frontend/01-react.md
@@ -5,6 +5,8 @@ pagination_next: demos/grid/index
sidebar_position: 1
---
+import current from '/version.js';
+
ReactJS is a JS library for building user interfaces.
This demo tries to cover common React data flow ideas and strategies. React
@@ -131,12 +133,12 @@ This demo was last run on 2023 February 28 using `create-react-app@5.0.1` and
2) Install the SheetJS dependency and start the dev server:
-```bash
+{`\
cd sheetjs-react
npm install
-npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
-npm start
-```
+npm i --save https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz
+npm start`}
+
3) Open a web browser and access the displayed URL (`http://localhost:3000`)
@@ -211,12 +213,12 @@ This demo was last run on 2023 February 28 using `create-react-app@5.0.1` and
2) Install the SheetJS dependency and start the dev server:
-```bash
+{`\
cd sheetjs-react
npm install
-npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
-npm start
-```
+npm i --save https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz
+npm start`}
+
3) Open a web browser and access the displayed URL (`http://localhost:3000`)
diff --git a/docz/docs/03-demos/01-frontend/02-vue.md b/docz/docs/03-demos/01-frontend/02-vue.md
index 7b1e40c..d0b8bcb 100644
--- a/docz/docs/03-demos/01-frontend/02-vue.md
+++ b/docz/docs/03-demos/01-frontend/02-vue.md
@@ -5,6 +5,8 @@ pagination_next: demos/grid/index
sidebar_position: 2
---
+import current from '/version.js';
+
VueJS is a JS library for building user interfaces.
This demo covers common VueJS data flow ideas and strategies. Single-File
@@ -127,12 +129,12 @@ This demo was last run on 2023 April 06 using `vue@3.2.47`. When running
2) Install the SheetJS dependency and start the dev server:
-```bash
+{`\
cd sheetjs-vue
npm install
-npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
-npm run dev
-```
+npm i --save https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz
+npm run dev`}
+
3) Open a web browser and access the displayed URL (`http://localhost:5173`)
@@ -203,12 +205,12 @@ This demo was last run on 2023 April 06 using `vue@3.2.47`. When running
2) Install the SheetJS dependency and start the dev server:
-```bash
+{`\
cd sheetjs-vue
npm install
-npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
-npm run dev
-```
+npm i --save https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz
+npm run dev`}
+
3) Open a web browser and access the displayed URL (`http://localhost:5173`)
diff --git a/docz/docs/03-demos/01-frontend/03-angular.md b/docz/docs/03-demos/01-frontend/03-angular.md
index 255ec10..96595d0 100644
--- a/docz/docs/03-demos/01-frontend/03-angular.md
+++ b/docz/docs/03-demos/01-frontend/03-angular.md
@@ -5,6 +5,7 @@ pagination_next: demos/grid/index
sidebar_position: 3
---
+import current from '/version.js';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
@@ -162,13 +163,13 @@ This demo was last run on 2023 February 21 using Angular CLI `15.1.6`
2) Install the SheetJS dependency and start the dev server:
-```bash
+{`\
cd sheetjs-angular
npm install
-npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
+npm i --save https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz
npx @angular/cli analytics disable
-npm start
-```
+npm start`}
+
3) Open a web browser and access the displayed URL (`http://localhost:4200`)
@@ -250,13 +251,13 @@ This demo was last run on 2023 February 21 using Angular CLI `15.1.6`
2) Install the SheetJS dependency and start the dev server:
-```bash
+{`\
cd sheetjs-angular
npm install
-npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
+npm i --save https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz
npx @angular/cli analytics disable
-npm start
-```
+npm start`}
+
3) Open a web browser and access the displayed URL (`http://localhost:4200`)
@@ -590,10 +591,10 @@ curl -o tsconfig.app.json -L https://docs.sheetjs.com/angular/versions/tsconfig.
2) install project and dependencies:
-```bash
+{`\
npm i
-npm i -S https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
-```
+npm i -S https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz`}
+
3) start a local server with
diff --git a/docz/docs/03-demos/01-frontend/04-svelte.md b/docz/docs/03-demos/01-frontend/04-svelte.md
index e7f60d3..a74219d 100644
--- a/docz/docs/03-demos/01-frontend/04-svelte.md
+++ b/docz/docs/03-demos/01-frontend/04-svelte.md
@@ -5,6 +5,8 @@ pagination_next: demos/grid/index
sidebar_position: 4
---
+import current from '/version.js';
+
Svelte is a JS library for building user interfaces.
This demo tries to cover common Svelte data flow ideas and strategies. Svelte
@@ -127,12 +129,12 @@ This demo was last run on 2023 March 08 using `svelte@3.55.1`. When running
2) Install the SheetJS dependency and start the dev server:
-```bash
+{`\
cd sheetjs-svelte
npm install
-npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
-npm run dev
-```
+npm i --save https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz
+npm run dev`}
+
3) Open a web browser and access the displayed URL (`http://localhost:5173`)
@@ -205,12 +207,12 @@ This demo was last run on 2023 March 08 using `svelte@3.55.1`. When running
2) Install the SheetJS dependency and start the dev server:
-```bash
+{`\
cd sheetjs-svelte
npm install
-npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
-npm run dev
-```
+npm i --save https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz
+npm run dev`}
+
3) Open a web browser and access the displayed URL (`http://localhost:5173`)
diff --git a/docz/docs/03-demos/01-frontend/09-legacy.md b/docz/docs/03-demos/01-frontend/09-legacy.md
index d8ae077..e4f8017 100644
--- a/docz/docs/03-demos/01-frontend/09-legacy.md
+++ b/docz/docs/03-demos/01-frontend/09-legacy.md
@@ -41,8 +41,8 @@ This demo includes all of the support files for the Flash and ActiveX methods.
1) Download the standalone script and shim to a server that will host the demo:
2) [Download the demo ZIP](pathname:///ie/SheetJSIESupport.zip) to the server.
diff --git a/docz/docs/03-demos/02-grid/11-rdg.md b/docz/docs/03-demos/02-grid/11-rdg.md
index b237260..348ad84 100644
--- a/docz/docs/03-demos/02-grid/11-rdg.md
+++ b/docz/docs/03-demos/02-grid/11-rdg.md
@@ -4,6 +4,8 @@ pagination_prev: demos/frontend/index
pagination_next: demos/net/index
---
+import current from '/version.js';
+
:::note
This demo was last tested on 2023 April 18 with `react-data-grid 7.0.0-beta.28`,
diff --git a/docz/docs/03-demos/02-grid/12-vtl.md b/docz/docs/03-demos/02-grid/12-vtl.md
index 351e7ee..45794ae 100644
--- a/docz/docs/03-demos/02-grid/12-vtl.md
+++ b/docz/docs/03-demos/02-grid/12-vtl.md
@@ -4,6 +4,8 @@ pagination_prev: demos/frontend/index
pagination_next: demos/net/index
---
+import current from '/version.js';
+
:::note
This demo was tested against `vue3-table-lite 1.2.4`, VueJS `3.2.47`, ViteJS
diff --git a/docz/docs/03-demos/02-grid/17-gdg.md b/docz/docs/03-demos/02-grid/17-gdg.md
index 56b2144..a563e99 100644
--- a/docz/docs/03-demos/02-grid/17-gdg.md
+++ b/docz/docs/03-demos/02-grid/17-gdg.md
@@ -4,6 +4,8 @@ pagination_prev: demos/frontend/index
pagination_next: demos/net/index
---
+import current from '/version.js';
+
:::note
This demo was last tested on 2023 February 07 with the ViteJS+React+TypeScript
diff --git a/docz/docs/03-demos/02-grid/index.md b/docz/docs/03-demos/02-grid/index.md
index 67ddfa7..7694dbb 100644
--- a/docz/docs/03-demos/02-grid/index.md
+++ b/docz/docs/03-demos/02-grid/index.md
@@ -4,6 +4,8 @@ pagination_prev: demos/frontend/index
pagination_next: demos/net/index
---
+import current from '/version.js';
+
Various JavaScript UI components provide a more interactive editing experience.
Most are able to interchange with arrays of arrays or arrays of data objects.
This demo focuses on a few open source data grids.
diff --git a/docz/docs/03-demos/03-net/02-server.md b/docz/docs/03-demos/03-net/02-server.md
index ec6a347..eb067b1 100644
--- a/docz/docs/03-demos/03-net/02-server.md
+++ b/docz/docs/03-demos/03-net/02-server.md
@@ -2,6 +2,8 @@
title: HTTP Server Processing
---
+import current from '/version.js';
+
Server-Side JS platforms like NodeJS and Deno have built-in APIs for listening
on network interfaces. They provide wrappers for requests and responses.
diff --git a/docz/docs/03-demos/03-net/09-headless.md b/docz/docs/03-demos/03-net/09-headless.md
index c768ba0..f42d274 100644
--- a/docz/docs/03-demos/03-net/09-headless.md
+++ b/docz/docs/03-demos/03-net/09-headless.md
@@ -2,6 +2,7 @@
title: Browser Automation
---
+import current from '/version.js';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
diff --git a/docz/docs/03-demos/04-static/05-vitejs.md b/docz/docs/03-demos/04-static/05-vitejs.md
index 853d395..f0b1980 100644
--- a/docz/docs/03-demos/04-static/05-vitejs.md
+++ b/docz/docs/03-demos/04-static/05-vitejs.md
@@ -6,6 +6,8 @@ sidebar_custom_props:
type: bundler
---
+import current from '/version.js';
+
:::note
This demo covers static asset imports. For processing files in the browser, the
diff --git a/docz/docs/03-demos/04-static/08-nextjs.md b/docz/docs/03-demos/04-static/08-nextjs.md
index f5bb2ff..ef4c427 100644
--- a/docz/docs/03-demos/04-static/08-nextjs.md
+++ b/docz/docs/03-demos/04-static/08-nextjs.md
@@ -4,6 +4,8 @@ pagination_prev: demos/net/index
pagination_next: demos/mobile/index
---
+import current from '/version.js';
+
:::note
This was tested against `next v13.1.1` on 2023 January 14.
diff --git a/docz/docs/03-demos/04-static/09-nuxtjs.md b/docz/docs/03-demos/04-static/09-nuxtjs.md
index 1d4c170..274a4e2 100644
--- a/docz/docs/03-demos/04-static/09-nuxtjs.md
+++ b/docz/docs/03-demos/04-static/09-nuxtjs.md
@@ -4,6 +4,8 @@ pagination_prev: demos/net/index
pagination_next: demos/mobile/index
---
+import current from '/version.js';
+
`@nuxt/content` is a file-based CMS for Nuxt, enabling static-site generation
and on-demand server rendering powered by spreadsheets.
diff --git a/docz/docs/03-demos/04-static/10-astro.md b/docz/docs/03-demos/04-static/10-astro.md
index 040a770..365567f 100644
--- a/docz/docs/03-demos/04-static/10-astro.md
+++ b/docz/docs/03-demos/04-static/10-astro.md
@@ -4,6 +4,8 @@ pagination_prev: demos/net/index
pagination_next: demos/mobile/index
---
+import current from '/version.js';
+
:::note
This demo uses ["Base64 Loader"](/docs/demos/static/vitejs#base64-loader)
@@ -149,9 +151,9 @@ curl -Lo src/data/pres.numbers https://sheetjs.com/pres.numbers
3) Install the SheetJS library:
-```bash
-npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
-```
+{`\
+npm i --save https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz`}
+
4) Replace `src/pages/index.astro` with the following:
diff --git a/docz/docs/03-demos/05-mobile/01-reactnative.md b/docz/docs/03-demos/05-mobile/01-reactnative.md
index e64267f..ec5421c 100644
--- a/docz/docs/03-demos/05-mobile/01-reactnative.md
+++ b/docz/docs/03-demos/05-mobile/01-reactnative.md
@@ -7,6 +7,7 @@ sidebar_custom_props:
summary: React + Native Rendering
---
+import current from '/version.js';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
diff --git a/docz/docs/03-demos/05-mobile/02-nativescript.md b/docz/docs/03-demos/05-mobile/02-nativescript.md
index 1297b2a..48bbd8e 100644
--- a/docz/docs/03-demos/05-mobile/02-nativescript.md
+++ b/docz/docs/03-demos/05-mobile/02-nativescript.md
@@ -7,6 +7,8 @@ sidebar_custom_props:
summary: JS + Native Elements
---
+import current from '/version.js';
+
The [NodeJS Module](/docs/getting-started/installation/nodejs) can be imported
from the main entrypoint or any script in the project.
@@ -108,9 +110,9 @@ selecting the terminal and entering the key sequence `CTRL + C`
3) From the project folder, install the library:
-```bash
-npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
-```
+{`\
+npm i --save https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz`}
+
4) To confirm the library was loaded, change the title to show the version. The
differences are highlighted.
diff --git a/docz/docs/03-demos/05-mobile/03-quasar.md b/docz/docs/03-demos/05-mobile/03-quasar.md
index 61ed0a7..7b0a881 100644
--- a/docz/docs/03-demos/05-mobile/03-quasar.md
+++ b/docz/docs/03-demos/05-mobile/03-quasar.md
@@ -7,6 +7,8 @@ sidebar_custom_props:
summary: VueJS + Web View
---
+import current from '/version.js';
+
The [NodeJS Module](/docs/getting-started/installation/nodejs) can be imported
from the main entrypoint or any script in the project.
@@ -152,11 +154,11 @@ When prompted:
-```bash
+{`\
cd SheetJSQuasar
npm i
-npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
-```
+npm i --save https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz`}
+
3) Set up Cordova:
diff --git a/docz/docs/03-demos/05-mobile/04-ionic.md b/docz/docs/03-demos/05-mobile/04-ionic.md
index 8455293..20855a0 100644
--- a/docz/docs/03-demos/05-mobile/04-ionic.md
+++ b/docz/docs/03-demos/05-mobile/04-ionic.md
@@ -7,6 +7,8 @@ sidebar_custom_props:
summary: Native Components + Web View
---
+import current from '/version.js';
+
The [NodeJS Module](/docs/getting-started/installation/nodejs) can be imported
from the main entrypoint or any script in the project.
diff --git a/docz/docs/03-demos/05-mobile/05-capacitor.md b/docz/docs/03-demos/05-mobile/05-capacitor.md
index af02d95..da2311a 100644
--- a/docz/docs/03-demos/05-mobile/05-capacitor.md
+++ b/docz/docs/03-demos/05-mobile/05-capacitor.md
@@ -7,6 +7,8 @@ sidebar_custom_props:
summary: JS + Web View
---
+import current from '/version.js';
+
The [NodeJS Module](/docs/getting-started/installation/nodejs) can be imported
from the main entrypoint or any script in the project.
@@ -146,10 +148,10 @@ cd sheetjs-cap
3) Install dependencies:
-```bash
-npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
-npm i --save @capacitor/core @capacitor/cli @capacitor/filesystem
-```
+{`\
+npm i --save https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz
+npm i --save @capacitor/core @capacitor/cli @capacitor/filesystem`}
+
4) Create CapacitorJS structure:
diff --git a/docz/docs/03-demos/06-desktop/02-nwjs.md b/docz/docs/03-demos/06-desktop/02-nwjs.md
index 9160f31..3555a82 100644
--- a/docz/docs/03-demos/06-desktop/02-nwjs.md
+++ b/docz/docs/03-demos/06-desktop/02-nwjs.md
@@ -7,6 +7,7 @@ sidebar_custom_props:
summary: Embedded Chromium + NodeJS
---
+import current from '/version.js';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
diff --git a/docz/docs/03-demos/06-desktop/03-wails.md b/docz/docs/03-demos/06-desktop/03-wails.md
index 3ef22bc..e740eaa 100644
--- a/docz/docs/03-demos/06-desktop/03-wails.md
+++ b/docz/docs/03-demos/06-desktop/03-wails.md
@@ -7,6 +7,7 @@ sidebar_custom_props:
summary: Webview + Go Backend
---
+import current from '/version.js';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
diff --git a/docz/docs/03-demos/06-desktop/04-tauri.md b/docz/docs/03-demos/06-desktop/04-tauri.md
index 5028dd6..c537c4a 100644
--- a/docz/docs/03-demos/06-desktop/04-tauri.md
+++ b/docz/docs/03-demos/06-desktop/04-tauri.md
@@ -7,8 +7,10 @@ sidebar_custom_props:
summary: Webview + Rust Backend
---
+import current from '/version.js';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
+import CodeBlock from '@theme/CodeBlock';
The [NodeJS Module](/docs/getting-started/installation/nodejs) can be imported
from JavaScript code.
@@ -152,12 +154,12 @@ When prompted:
2) Enter the directory and install dependencies:
-```bash
+{`\
cd SheetJSTauri
-npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
+npm i --save https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz
npm i --save @tauri-apps/api
-npm i --save-dev @tauri-apps/cli
-```
+npm i --save-dev @tauri-apps/cli`}
+
3) Enable operations by adding the highlighted lines to `tauri.conf.json` in
the `tauri.allowlist` section:
diff --git a/docz/docs/03-demos/06-desktop/06-reactnative.md b/docz/docs/03-demos/06-desktop/06-reactnative.md
index 91bec60..db747ac 100644
--- a/docz/docs/03-demos/06-desktop/06-reactnative.md
+++ b/docz/docs/03-demos/06-desktop/06-reactnative.md
@@ -7,6 +7,7 @@ sidebar_custom_props:
summary: Native Components with React
---
+import current from '/version.js';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
@@ -246,11 +247,11 @@ npx react-native-windows-init --no-telemetry --overwrite