diff --git a/docs/css/prism.css b/docs/css/prism.css index fca66adb37..793fd5df2b 100644 --- a/docs/css/prism.css +++ b/docs/css/prism.css @@ -115,7 +115,6 @@ pre[class*="language-"] { .language-css .token.string, .style .token.string { color: #9a6e3a; - background: hsla(0, 0%, 100%, .5); } .token.atrule, diff --git a/docs/css/style.css b/docs/css/style.css index dd60370a30..e0ac07bb7a 100644 --- a/docs/css/style.css +++ b/docs/css/style.css @@ -174,6 +174,12 @@ code { line-height: 1.8; } +:not(pre)>code { + background-color: #f5f2f0; + border-radius: 3px; + padding: .2em .4em; +} + pre { background-color: #f3f3f3; border: 1px solid #ddd; diff --git a/docs/index.md b/docs/index.md index a3fa090632..ab898764c0 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1176,7 +1176,7 @@ Requires either `--grep` or `--fgrep` (but not both). ### `--debug, --inspect, --debug-brk, --inspect-brk, debug, inspect` -> _BREAKING CHANGE in v6.0.0; `-d` is no longer an alias for `--debug`._ > _Other updates in v6.0.0:_ > _In versions of Node.js implementing `--inspect` and `--inspect-brk`, `--debug` and `--debug-brk` are respectively aliases for these two options._ > _Likewise, `debug` (not `--debug`) is an alias for `inspect` (not `--inspect`) in Node.js versions where `debug` is deprecated._ +> _BREAKING CHANGE in v6.0.0; `-d` is no longer an alias for `--debug`. Other updates in v6.0.0: In versions of Node.js implementing `--inspect` and `--inspect-brk`, `--debug` and `--debug-brk` are respectively aliases for these two options. Likewise, `debug` (not `--debug`) is an alias for `inspect` (not `--inspect`) in Node.js versions where `debug` is deprecated._ Enables Node.js' debugger or inspector. @@ -1637,7 +1637,7 @@ In addition to supporting the legacy [`mocha.opts`](#mochaopts) run-control form - **JavaScript**: Create a `.mocharc.js` in your project's root directory, and export an object (`module.exports = {/* ... */}`) containing your configuration. - **YAML**: Create a `.mocharc.yaml` (or `.mocharc.yml`) in your project's root directory. - **JSON**: Create a `.mocharc.json` (or `.mocharc.jsonc`) in your project's root directory. Comments — while not valid JSON — are allowed in this file, and will be ignored by Mocha. -- **`package.json`**: Create a `mocha` property in your project's `package.json`. +- **package.json**: Create a `mocha` property in your project's `package.json`. Mocha suggests using one of the above strategies for configuration instead of the legacy `mocha.opts` format.