Merge pull request #11178 from electron/fenced-code-block-lang
enforce rules on code blocks style in docs
This commit is contained in:
commit
70643a865b
20 changed files with 91 additions and 69 deletions
|
@ -112,7 +112,7 @@ A comma-separated list of servers for which integrated authentication is enabled
|
|||
|
||||
For example:
|
||||
|
||||
```
|
||||
```bash
|
||||
--auth-server-whitelist='*example.com, *foobar.com, *baz'
|
||||
```
|
||||
|
||||
|
|
|
@ -314,7 +314,7 @@ Template:
|
|||
|
||||
Menu:
|
||||
|
||||
```
|
||||
```sh
|
||||
- 1
|
||||
- 2
|
||||
- 3
|
||||
|
@ -337,7 +337,7 @@ Template:
|
|||
|
||||
Menu:
|
||||
|
||||
```
|
||||
```sh
|
||||
- ---
|
||||
- a
|
||||
- b
|
||||
|
|
|
@ -146,7 +146,7 @@ of the main process.
|
|||
|
||||
e.g.
|
||||
|
||||
```
|
||||
```sh
|
||||
project/
|
||||
├── main
|
||||
│ ├── foo.js
|
||||
|
|
|
@ -78,7 +78,7 @@ Note that it is not enough to call
|
|||
code runs after it is possible to make changes to chromium sandbox settings. The
|
||||
switch must be passed to electron on the command-line:
|
||||
|
||||
```
|
||||
```sh
|
||||
electron --enable-sandbox app.js
|
||||
```
|
||||
|
||||
|
@ -151,10 +151,12 @@ Important things to notice in the preload script:
|
|||
To create a browserify bundle and use it as a preload script, something like
|
||||
the following should be used:
|
||||
|
||||
browserify preload/index.js \
|
||||
-x electron \
|
||||
-x fs \
|
||||
--insert-global-vars=__filename,__dirname -o preload.js
|
||||
```sh
|
||||
browserify preload/index.js \
|
||||
-x electron \
|
||||
-x fs \
|
||||
--insert-global-vars=__filename,__dirname -o preload.js
|
||||
```
|
||||
|
||||
The `-x` flag should be used with any required module that is already exposed in
|
||||
the preload scope, and tells browserify to use the enclosing `require` function
|
||||
|
|
|
@ -140,7 +140,7 @@ option is ignored and `pacScript` configuration is applied.
|
|||
|
||||
The `proxyRules` has to follow the rules below:
|
||||
|
||||
```
|
||||
```sh
|
||||
proxyRules = schemeProxies[";"<schemeProxies>]
|
||||
schemeProxies = [<urlScheme>"="]<proxyURIList>
|
||||
urlScheme = "http" | "https" | "ftp" | "socks"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue