diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 82628a773..000000000 --- a/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -language: ruby -rvm: [2.7.1] - -before_install: - - nvm install 12 - - nvm use 12 - - node --version - - ruby --version - -install: - - yarn --frozen-lockfile - - bundle --jobs=3 --retry=3 --deployment --path=${BUNDLE_PATH:-vendor/bundle} - -script: - - yarn build - - yarn test - - yarn test:smoke - -cache: - bundler: true - yarn: true - -notifications: - slack: - if: branch = master OR branch =~ ^.*slack.*$ - rooms: - - secure: FN4trzyyUdtZ6DXj4G3A7YnhqkPyqi8jN9BIdA6S6D2eJEH1gPbZUfbqAW87LKckKZ9iYB5KDF5IuELhR3vv1DeHRqm3MKRU91JVBDT7EXbF86Z1J/JMJxNOcoWdCilcgpnm9NCkMAPFC9h6Y3txYhaLWLsnDaWlvehBsJg+Ql4= - on_success: change - on_failure: always diff --git a/_includes/meta.html b/_includes/meta.html index f9e3e2c29..336dd6d19 100644 --- a/_includes/meta.html +++ b/_includes/meta.html @@ -2,13 +2,13 @@ - + {% if meta_title %} - {{ meta_title }} - - - + {{ meta_title | escape }} + + + {% endif %} {% if meta_image %} @@ -24,11 +24,11 @@ {% endif %} - - + + {% if page.url == '/' %} - - + + {% endif %} {% if page.author %} @@ -41,15 +41,15 @@ {% endif %} {% if site.title %} - + {% endif %} {% if site.facebook.app_id %} - + {% endif %} {% if site.facebook.admin %} - + {% endif %} {% if page.date %} @@ -57,12 +57,12 @@ {% endif %} {% if page.category %} - + {% endif %} {% if page.tags %} {% for tag in page.tags %} - + {% endfor %} {% endif %} diff --git a/jsdoc.md b/jsdoc.md index 995a40411..b28782b7a 100644 --- a/jsdoc.md +++ b/jsdoc.md @@ -20,22 +20,24 @@ weight: -1 * foo('hello') */ -function foo(n) { return n } +function foo(n) { + return n +} ``` See: ### Types -| Type | Description | -| --- | --- | -| `@param {string=} n` | Optional | -| `@param {string} [n]` | Optional | -| `@param {(string|number)} n` | Multiple types | -| `@param {*} n` | Any type | -| `@param {...string} n` | Repeatable arguments | -| `@param {string} [n="hi"]` | Optional with default | -| `@param {string[]} n` | Array of strings | +| Type | Description | +| ------------------------------- | ------------------------------------- | +| `@param {string=} n` | Optional | +| `@param {string} [n]` | Optional | +| `@param {(string|number)} n` | Multiple types | +| `@param {*} n` | Any type | +| `@param {...string} n` | Repeatable arguments | +| `@param {string} [n="hi"]` | Optional with default | +| `@param {string[]} n` | Array of strings | | `@return {Promise} n` | Promise fulfilled by array of strings | See: @@ -74,14 +76,15 @@ const FOO = 1 * @param {Song} song - The {@link Song} to be played */ -function play (song) { -} +function play(song) {} ``` See: ### Typedef Shorthand +{% raw %} + ```js /** * A song @@ -89,14 +92,15 @@ See: */ ``` +{% endraw %} + ```js /** * Plays a song * @param {Song} song - The {@link Song} to be played */ -function play (song) { -} +function play(song) {} ``` See: @@ -112,7 +116,7 @@ See: * @param {Bar} x */ -function test(x) { } +function test(x) {} ``` This syntax is [TypeScript-specific](https://github.com/Microsoft/TypeScript/wiki/JsDoc-support-in-JavaScript#import-types). diff --git a/netlify.toml b/netlify.toml index f2d28961e..2e0eb689c 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,18 +3,14 @@ publish = "_site/" [[plugins]] - # https://www.npmjs.com/package/netlify-purge-cloudflare-on-deploy - package = "netlify-purge-cloudflare-on-deploy" - -# [[plugins]] -# # https://www.npmjs.com/package/netlify-plugin-minify-html -# package = "netlify-plugin-minify-html" -# -# [plugins.inputs] -# contexts = [ 'production', 'branch-deploy', 'deploy-preview' ] -# -# # https://github.com/kangax/html-minifier#options-quick-reference -# [plugins.inputs.minifierOptions] -# removeComments = true -# minifyCSS = true -# minifyJS = true + # https://www.npmjs.com/package/netlify-plugin-minify-html + package = "netlify-plugin-minify-html" + + [plugins.inputs] + contexts = [ 'production', 'branch-deploy', 'deploy-preview' ] + + # https://github.com/kangax/html-minifier#options-quick-reference + [plugins.inputs.minifierOptions] + removeComments = true + minifyCSS = true + minifyJS = true