From 646cdaeeb4b4677219adbf90999fc7e1c2b1dd80 Mon Sep 17 00:00:00 2001 From: Mike Date: Mon, 31 Jan 2022 19:07:58 -0800 Subject: [PATCH] Attempting to fix docs multi tabs and previews --- docs/auto-update.md | 9 +++++---- docs/cli.md | 11 +++++++---- docs/configuration/nsis.md | 7 ++++--- 3 files changed, 16 insertions(+), 11 deletions(-) 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/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 ```