Skip to content

Commit 7ee6c64

Browse files
add spell check to markdown files (#239)
* add spell check to markdown files * need node version * less verbose logs for wget * spellcheck fixes
1 parent 44d5859 commit 7ee6c64

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ jobs:
3838
- find . -type f -name '*.md' -exec awesome_bot {} \;
3939
notifications:
4040
email: false
41+
- stage: 'Lint markdown files'
42+
language: node_js
43+
node_js: 12
44+
os: linux
45+
before_install: skip
46+
install:
47+
- npm i -g markdown-spellcheck
48+
before_script:
49+
- wget --quiet https://gist.githubusercontent.com/juancarlostong/dad02feeebc8763af35b4fdc717cf7a2/raw/29e085302a9418edbefba15d8f790fa76e0a89d5/.spelling
50+
script:
51+
- mdspell -a -n -r --en-us '**/*.md'
52+
after_success: skip
4153

4254
- &integrationtest
4355
stage: 'Integration tests'

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ January 23rd, 2020
88
- Call `get_optimizely_config` to get a snapshot copy of project configuration static data.
99
- It returns an `OptimizelyConfig` instance which includes a datafile revision number, all experiments, and feature flags mapped by their key values.
1010
- Added caching for `get_optimizely_config` - `OptimizelyConfig` object will be cached and reused for the lifetime of the datafile
11-
- For details, refer to a documention page: https://docs.developers.optimizely.com/full-stack/docs/optimizelyconfig-ruby
11+
- For details, refer to a documentation page: https://docs.developers.optimizely.com/full-stack/docs/optimizelyconfig-ruby
1212

1313

1414
## 3.3.2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ You can initialize the Optimizely instance in two ways: directly with a datafile
3636

3737
#### Initialization by OptimizelyFactory
3838

39-
1. Initialize Optimizely by providing an `sdk_key` and an optional `datafile`. This will initialize an HTTPConfigManager that makes an HTTP GET request to the URL (formed using your provided `sdk_key` and the default datafile CDN url template) to asynchronously download the project datafile at regular intervals and update ProjectConfig when a new datafile is recieved.
39+
1. Initialize Optimizely by providing an `sdk_key` and an optional `datafile`. This will initialize an HTTPConfigManager that makes an HTTP GET request to the URL (formed using your provided `sdk_key` and the default datafile CDN url template) to asynchronously download the project datafile at regular intervals and update ProjectConfig when a new datafile is received.
4040

4141
```
4242
optimizely_instance = Optimizely::OptimizelyFactory.default_instance('put_your_sdk_key_here', datafile)

0 commit comments

Comments
 (0)