diff --git a/docs/auto-update.md b/docs/auto-update.md index 119440a5276..6a68f152196 100644 --- a/docs/auto-update.md +++ b/docs/auto-update.md @@ -31,12 +31,13 @@ All these targets are default, custom configuration is not required. (Though it 2. [Configure publish](configuration/publish.md). 3. Use `autoUpdater` from `electron-updater` instead of `electron`: - - ```js tab="JavaScript" + + JavaScript + ```js const { autoUpdater } = require("electron-updater") ``` - - ```js tab="ES2015" + ES2015 + ```js import { autoUpdater } from "electron-updater" ``` diff --git a/docs/cli.md b/docs/cli.md index 1a35d3f5d38..b4ed84b8b51 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -76,7 +76,9 @@ Platforms and archs can be configured or using [CLI args](https://github.com/ele For example, if you don't want to pass `--ia32` and `--x64` flags each time, but instead build by default NSIS target for all archs for Windows: !!! example "Configuration" - ```json tab="package.json" + + package.json + ```json "build": { "win": { "target": [ @@ -91,8 +93,9 @@ For example, if you don't want to pass `--ia32` and `--x64` flags each time, but } } ``` - - ``` yaml tab="electron-builder.yml" + + electron-builder.yml + ``` yaml win: target: - target: nsis @@ -108,4 +111,4 @@ build -wl ### TargetConfiguration * **target** String - The target name. e.g. `snap`. -* arch "x64" | "ia32" | "armv7l" | "arm64"> | "x64" | "ia32" | "armv7l" | "arm64" - The arch or list of archs. \ No newline at end of file +* arch "x64" | "ia32" | "armv7l" | "arm64" | "x64" | "ia32" | "armv7l" | "arm64" - The arch or list of archs. \ No newline at end of file diff --git a/docs/configuration/configuration.md b/docs/configuration/configuration.md index 09d0ef7b520..084395589d7 100644 --- a/docs/configuration/configuration.md +++ b/docs/configuration/configuration.md @@ -27,7 +27,7 @@ Most of the options accept `null` — for example, to explicitly set that DMG ic ## Environment Variables from File -Env file `electron-builder.env` in the current dir ([example](https://github.com/motdotla/dotenv-expand/blob/master/test/.env)). Supported only for CLI usage. +Env file `electron-builder.env` in the current dir ([example](https://github.com/motdotla/dotenv-expand/blob/1cc80d02e1f8aa749253a04a2061c0fecb9bdb69/tests/.env)). Supported only for CLI usage. ## How to Read Docs diff --git a/docs/configuration/nsis.md b/docs/configuration/nsis.md index 8cbdeb5c7aa..fa7b40e52a3 100644 --- a/docs/configuration/nsis.md +++ b/docs/configuration/nsis.md @@ -131,15 +131,16 @@ For portable app, following environment variables are available: Yes, you need to switch to assisted installer (not default one-click). - ```json tab="package.json" + package.json + ```json "build": { "nsis": { "oneClick": false } } ``` - - ```yaml tab="electron-builder.yml" + electron-builder.yml + ```yaml nsis: oneClick: false ```