Merge pull request #11178 from electron/fenced-code-block-lang

enforce rules on code blocks style in docs
This commit is contained in:
Charles Kerr 2017-11-21 13:38:46 +01:00 committed by GitHub
commit 70643a865b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 91 additions and 69 deletions

View file

@ -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'
```

View file

@ -314,7 +314,7 @@ Template:
Menu:
```
```sh
- 1
- 2
- 3
@ -337,7 +337,7 @@ Template:
Menu:
```
```sh
- ---
- a
- b

View file

@ -146,7 +146,7 @@ of the main process.
e.g.
```
```sh
project/
├── main
│   ├── foo.js

View file

@ -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

View file

@ -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"