Reenable minifier, disable Travis (#1473)
This commit is contained in:
parent
c27d9bf443
commit
f534ec6c72
29
.travis.yml
29
.travis.yml
|
@ -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
|
|
|
@ -2,13 +2,13 @@
|
||||||
<meta charset='utf-8'>
|
<meta charset='utf-8'>
|
||||||
<meta content='width=device-width, initial-scale=1.0' name='viewport'>
|
<meta content='width=device-width, initial-scale=1.0' name='viewport'>
|
||||||
<link href='{{ base }}/assets/favicon.png' rel='shortcut icon'>
|
<link href='{{ base }}/assets/favicon.png' rel='shortcut icon'>
|
||||||
<meta content='{{ page.url }}' name='app:pageurl'>
|
<meta content='{{ page.url | escape }}' name='app:pageurl'>
|
||||||
|
|
||||||
{% if meta_title %}
|
{% if meta_title %}
|
||||||
<title>{{ meta_title }}</title>
|
<title>{{ meta_title | escape }}</title>
|
||||||
<meta content='{{ meta_title }}' property='og:title'>
|
<meta content='{{ meta_title | escape }}' property='og:title'>
|
||||||
<meta content='{{ meta_title }}' property='twitter:title'>
|
<meta content='{{ meta_title | escape }}' property='twitter:title'>
|
||||||
<meta content='{{ page.og_type | default: "article" }}' property='og:type'>
|
<meta content='{{ page.og_type | default: "article" | escape }}' property='og:type'>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if meta_image %}
|
{% if meta_image %}
|
||||||
|
@ -24,11 +24,11 @@
|
||||||
<meta content="{{ meta_description | escape }}" property="twitter:description">
|
<meta content="{{ meta_description | escape }}" property="twitter:description">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<link rel="canonical" href="{{ page_url }}">
|
<link rel="canonical" href="{{ page_url | escape }}">
|
||||||
<meta name="og:url" content="{{ page_url }}">
|
<meta name="og:url" content="{{ page_url | escape }}">
|
||||||
{% if page.url == '/' %}
|
{% if page.url == '/' %}
|
||||||
<link rel="prefetch" href="{{ site.url }}">
|
<link rel="prefetch" href="{{ site.url | escape }}">
|
||||||
<link rel="prerender" href="{{ site.url }}">
|
<link rel="prerender" href="{{ site.url | escape }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.author %}
|
{% if page.author %}
|
||||||
|
@ -41,15 +41,15 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if site.title %}
|
{% if site.title %}
|
||||||
<meta content='{{ site.title }}' property='og:site_name'>
|
<meta content='{{ site.title | escape }}' property='og:site_name'>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if site.facebook.app_id %}
|
{% if site.facebook.app_id %}
|
||||||
<meta content='{{ site.facebook.app_id }}' property='fb:app_id'>
|
<meta content='{{ site.facebook.app_id | escape }}' property='fb:app_id'>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if site.facebook.admin %}
|
{% if site.facebook.admin %}
|
||||||
<meta content='{{ site.facebook.admin }}' property='fb:admins'>
|
<meta content='{{ site.facebook.admin | escape }}' property='fb:admins'>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.date %}
|
{% if page.date %}
|
||||||
|
@ -57,12 +57,12 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.category %}
|
{% if page.category %}
|
||||||
<meta content='{{ page.category }}' property='article:section'>
|
<meta content='{{ page.category | escape }}' property='article:section'>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.tags %}
|
{% if page.tags %}
|
||||||
{% for tag in page.tags %}
|
{% for tag in page.tags %}
|
||||||
<meta content='{{ tag }}' property='article:tag'>
|
<meta content='{{ tag | escape }}' property='article:tag'>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
34
jsdoc.md
34
jsdoc.md
|
@ -20,22 +20,24 @@ weight: -1
|
||||||
* foo('hello')
|
* foo('hello')
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function foo(n) { return n }
|
function foo(n) {
|
||||||
|
return n
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
See: <http://usejsdoc.org/index.html>
|
See: <http://usejsdoc.org/index.html>
|
||||||
|
|
||||||
### Types
|
### Types
|
||||||
|
|
||||||
| Type | Description |
|
| Type | Description |
|
||||||
| --- | --- |
|
| ------------------------------- | ------------------------------------- |
|
||||||
| `@param {string=} n` | Optional |
|
| `@param {string=} n` | Optional |
|
||||||
| `@param {string} [n]` | Optional |
|
| `@param {string} [n]` | Optional |
|
||||||
| `@param {(string|number)} n` | Multiple types |
|
| `@param {(string|number)} n` | Multiple types |
|
||||||
| `@param {*} n` | Any type |
|
| `@param {*} n` | Any type |
|
||||||
| `@param {...string} n` | Repeatable arguments |
|
| `@param {...string} n` | Repeatable arguments |
|
||||||
| `@param {string} [n="hi"]` | Optional with default |
|
| `@param {string} [n="hi"]` | Optional with default |
|
||||||
| `@param {string[]} n` | Array of strings |
|
| `@param {string[]} n` | Array of strings |
|
||||||
| `@return {Promise<string[]>} n` | Promise fulfilled by array of strings |
|
| `@return {Promise<string[]>} n` | Promise fulfilled by array of strings |
|
||||||
|
|
||||||
See: <http://usejsdoc.org/tags-type.html>
|
See: <http://usejsdoc.org/tags-type.html>
|
||||||
|
@ -74,14 +76,15 @@ const FOO = 1
|
||||||
* @param {Song} song - The {@link Song} to be played
|
* @param {Song} song - The {@link Song} to be played
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function play (song) {
|
function play(song) {}
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
See: <http://usejsdoc.org/tags-typedef.html>
|
See: <http://usejsdoc.org/tags-typedef.html>
|
||||||
|
|
||||||
### Typedef Shorthand
|
### Typedef Shorthand
|
||||||
|
|
||||||
|
{% raw %}
|
||||||
|
|
||||||
```js
|
```js
|
||||||
/**
|
/**
|
||||||
* A song
|
* A song
|
||||||
|
@ -89,14 +92,15 @@ See: <http://usejsdoc.org/tags-typedef.html>
|
||||||
*/
|
*/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
{% endraw %}
|
||||||
|
|
||||||
```js
|
```js
|
||||||
/**
|
/**
|
||||||
* Plays a song
|
* Plays a song
|
||||||
* @param {Song} song - The {@link Song} to be played
|
* @param {Song} song - The {@link Song} to be played
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function play (song) {
|
function play(song) {}
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
See: <http://usejsdoc.org/tags-typedef.html>
|
See: <http://usejsdoc.org/tags-typedef.html>
|
||||||
|
@ -112,7 +116,7 @@ See: <http://usejsdoc.org/tags-typedef.html>
|
||||||
* @param {Bar} x
|
* @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).
|
This syntax is [TypeScript-specific](https://github.com/Microsoft/TypeScript/wiki/JsDoc-support-in-JavaScript#import-types).
|
||||||
|
|
24
netlify.toml
24
netlify.toml
|
@ -3,18 +3,14 @@
|
||||||
publish = "_site/"
|
publish = "_site/"
|
||||||
|
|
||||||
[[plugins]]
|
[[plugins]]
|
||||||
# https://www.npmjs.com/package/netlify-purge-cloudflare-on-deploy
|
# https://www.npmjs.com/package/netlify-plugin-minify-html
|
||||||
package = "netlify-purge-cloudflare-on-deploy"
|
package = "netlify-plugin-minify-html"
|
||||||
|
|
||||||
# [[plugins]]
|
[plugins.inputs]
|
||||||
# # https://www.npmjs.com/package/netlify-plugin-minify-html
|
contexts = [ 'production', 'branch-deploy', 'deploy-preview' ]
|
||||||
# package = "netlify-plugin-minify-html"
|
|
||||||
#
|
# https://github.com/kangax/html-minifier#options-quick-reference
|
||||||
# [plugins.inputs]
|
[plugins.inputs.minifierOptions]
|
||||||
# contexts = [ 'production', 'branch-deploy', 'deploy-preview' ]
|
removeComments = true
|
||||||
#
|
minifyCSS = true
|
||||||
# # https://github.com/kangax/html-minifier#options-quick-reference
|
minifyJS = true
|
||||||
# [plugins.inputs.minifierOptions]
|
|
||||||
# removeComments = true
|
|
||||||
# minifyCSS = true
|
|
||||||
# minifyJS = true
|
|
||||||
|
|
Loading…
Reference in New Issue