mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-08 09:56:52 +00:00
Adds text linting, check & fix common misspellings (#12061)
This commit is contained in:
parent
6cd47df8e2
commit
5488d9d0d7
23
.github/workflows/test.yml
vendored
23
.github/workflows/test.yml
vendored
@ -26,6 +26,29 @@ jobs:
|
||||
CI: true
|
||||
- name: Run remark lint
|
||||
run: npm run markdown:lint
|
||||
textlint:
|
||||
name: Lint Text
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out files from GitHub
|
||||
uses: actions/checkout@v2
|
||||
- name: Setting up Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12.x
|
||||
- name: Setup NPM cache
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: npm-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
npm-
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
env:
|
||||
CI: true
|
||||
- name: Run textlint
|
||||
run: npm run textlint
|
||||
build:
|
||||
name: Jekyll build
|
||||
runs-on: ubuntu-latest
|
||||
|
8
.textlintrc.json
Normal file
8
.textlintrc.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"filters": {},
|
||||
"rules": {
|
||||
"common-misspellings": {
|
||||
"ignore": ["Proove", "Alot"]
|
||||
}
|
||||
}
|
||||
}
|
1478
package-lock.json
generated
1478
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
34
package.json
34
package.json
@ -1,17 +1,21 @@
|
||||
{
|
||||
"name": "home-assistant.io",
|
||||
"description": "Home Assistant Website & Documentation",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"remark-cli": "^7.0.0",
|
||||
"remark-frontmatter": "^1.3.2",
|
||||
"remark-lint": "^6.0.5",
|
||||
"remark-lint-fenced-code-flag": "^1.0.3",
|
||||
"remark-lint-no-shell-dollars": "^1.0.3",
|
||||
"remark-stringify": "^7.0.3"
|
||||
},
|
||||
"scripts": {
|
||||
"markdown:lint": "remark --quiet --frail ."
|
||||
}
|
||||
"name": "home-assistant.io",
|
||||
"description": "Home Assistant Website & Documentation",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"remark-cli": "^7.0.0",
|
||||
"remark-frontmatter": "^1.3.2",
|
||||
"remark-lint": "^6.0.5",
|
||||
"remark-lint-fenced-code-flag": "^1.0.3",
|
||||
"remark-lint-no-shell-dollars": "^1.0.3",
|
||||
"remark-stringify": "^7.0.3",
|
||||
"textlint": "^11.6.3",
|
||||
"textlint-rule-common-misspellings": "^1.0.1"
|
||||
},
|
||||
"scripts": {
|
||||
"markdown:lint": "remark --quiet --frail .",
|
||||
"textlint:all": "textlint source",
|
||||
"textlint": "textlint source/_cookbook source/_docs source/_faq source/_integrations source/_lovelace source/cloud source/getting-started source/hassio source/lovelace"
|
||||
}
|
||||
}
|
||||
|
@ -15,16 +15,13 @@ The Garmin Connect sensor allows you to expose data from [Garmin Connect](https:
|
||||
|
||||
## Configuration
|
||||
|
||||
|
||||
To add Garmin Connect to your installation, go to Configuration >> Integrations in the UI and enable the Garmin Connect integration by entering your credentials.
|
||||
|
||||
After succesful login a standard set of sensors are enabled.
|
||||
After successful login a standard set of sensors are enabled.
|
||||
You can enable more if needed by using the Integrations page.
|
||||
|
||||
|
||||
Please be aware that Garmin Connect has very low rate limits, max. once every ~10 minutes.
|
||||
|
||||
|
||||
## Available Sensors
|
||||
|
||||
Not every sensor holds meaningful values, it depends on the tracking device you use, and the apps you have connected.
|
||||
@ -73,7 +70,6 @@ Lowest Respiration
|
||||
Latest Respiration
|
||||
```
|
||||
|
||||
|
||||
Disabled by default:
|
||||
|
||||
```text
|
||||
|
@ -46,7 +46,7 @@ language:
|
||||
type: string
|
||||
default: "`en_US`"
|
||||
effect:
|
||||
description: "A dictionary of effects which should be applied to the speach output."
|
||||
description: "A dictionary of effects which should be applied to the speech output."
|
||||
required: false
|
||||
type: map
|
||||
{% endconfiguration %}
|
||||
@ -55,7 +55,7 @@ See [documentation](http://mary.dfki.de/documentation/index.html) for details.
|
||||
|
||||
## Speech effects
|
||||
|
||||
For more information about the different effects take a look at the demo page of your MaryTTS installation (http://localhost:59125/).
|
||||
For more information about the different effects take a look at the demo page of your MaryTTS installation (`http://localhost:59125/`).
|
||||
|
||||
There you can read about each effect and also test them on the fly.
|
||||
|
||||
|
@ -50,15 +50,15 @@ api_key:
|
||||
required: true
|
||||
type: string
|
||||
elevation:
|
||||
description: The elevation of the monitored location; if ommitted, the value specified in `configuration.yaml` will be used.
|
||||
description: The elevation of the monitored location; if omitted, the value specified in `configuration.yaml` will be used.
|
||||
required: false
|
||||
type: float
|
||||
latitude:
|
||||
description: The latitude of the monitored location; if ommitted, the value specified in `configuration.yaml` will be used.
|
||||
description: The latitude of the monitored location; if omitted, the value specified in `configuration.yaml` will be used.
|
||||
required: false
|
||||
type: float
|
||||
longitude:
|
||||
description: The longitude of the monitored location; if ommitted, the value specified in `configuration.yaml` will be used.
|
||||
description: The longitude of the monitored location; if omitted, the value specified in `configuration.yaml` will be used.
|
||||
required: false
|
||||
type: float
|
||||
{% endconfiguration %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user