Use Netlify redirects (#1474)
This commit is contained in:
parent
5d514222d6
commit
1fa97113d5
|
@ -9,6 +9,16 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: "Notes (read me) 📖"
|
||||||
|
run: |
|
||||||
|
# About this workflow
|
||||||
|
# -------------------
|
||||||
|
#
|
||||||
|
# This workflow generates GitHub pages, but IT IS NOT USED. It is
|
||||||
|
# only generated as an emergency fallback in case Netlify goes down.
|
||||||
|
#
|
||||||
|
# 😊
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
title: Commander.js
|
|
||||||
category: Hidden
|
|
||||||
redirect_to: /commander.js
|
|
||||||
---
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
title: CSS animations
|
|
||||||
category: Hidden
|
|
||||||
redirect_to: /css#animation
|
|
||||||
---
|
|
|
@ -1,6 +0,0 @@
|
||||||
---
|
|
||||||
title: CSS background
|
|
||||||
category: Hidden
|
|
||||||
redirect_to: /css#background
|
|
||||||
---
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
title: CSS font
|
|
||||||
category: Hidden
|
|
||||||
redirect_to: /css#fonts
|
|
||||||
---
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
title: CSS selectors
|
|
||||||
category: Hidden
|
|
||||||
redirect_to: /css#selectors
|
|
||||||
---
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
title: expect.js
|
|
||||||
category: Hidden
|
|
||||||
redirect_to: /expectjs
|
|
||||||
---
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
title: Factory Girl
|
|
||||||
category: Ruby libraries
|
|
||||||
redirect_to: /factory_bot
|
|
||||||
---
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
title: Flexbox
|
|
||||||
category: Hidden
|
|
||||||
redirect_to: /css-flexbox
|
|
||||||
---
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
title: Flow
|
|
||||||
redirect_to: /flow
|
|
||||||
category: JavaScript libraries
|
|
||||||
---
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
title: gpgconf
|
|
||||||
category: Hidden
|
|
||||||
redirect_to: /gnupg
|
|
||||||
---
|
|
5
gutom.md
5
gutom.md
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
title: Gutom
|
|
||||||
category: Hidden
|
|
||||||
redirect_to: /ph-food-delivery
|
|
||||||
---
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
title: Handlebars.js
|
|
||||||
category: Hidden
|
|
||||||
redirect_to: /handlebars.js
|
|
||||||
---
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
title: Harvey.js
|
|
||||||
category: Hidden
|
|
||||||
redirect_to: /harvey.js
|
|
||||||
---
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
title: Immutable.js
|
|
||||||
category: Hidden
|
|
||||||
redirect_to: /immutable.js
|
|
||||||
---
|
|
108
netlify.toml
108
netlify.toml
|
@ -1,3 +1,111 @@
|
||||||
[build]
|
[build]
|
||||||
command = "yarn build"
|
command = "yarn build"
|
||||||
publish = "_site/"
|
publish = "_site/"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/flexbox"
|
||||||
|
to = "/css-flexbox"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/flowtype"
|
||||||
|
to = "/flow"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/gpgconf"
|
||||||
|
to = "/gnupg"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/gpg"
|
||||||
|
to = "/gnupg"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/gutom"
|
||||||
|
to = "/ph-food-delivery"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/handlebars-js"
|
||||||
|
to = "/handlebars.js"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/harvey-js"
|
||||||
|
to = "/harvey.js"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/immutable-js"
|
||||||
|
to = "/immutable.js"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/jade"
|
||||||
|
to = "/pug"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/package"
|
||||||
|
to = "/package-json"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/package.json"
|
||||||
|
to = "/package-json"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/phoenix-ecto@1.3"
|
||||||
|
to = "/phoenix-ecto"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/sh"
|
||||||
|
to = "/bash"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/commander-js"
|
||||||
|
to = "/commander.js"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/es2015"
|
||||||
|
to = "/es6"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/es2016"
|
||||||
|
to = "/es6"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/es2017"
|
||||||
|
to = "/es6"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/es2018"
|
||||||
|
to = "/es6"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/expect.js"
|
||||||
|
to = "/expectjs"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/factory_girl"
|
||||||
|
to = "/factory_bot"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/css-animation"
|
||||||
|
to = "/css#animation"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/css-background"
|
||||||
|
to = "/css#background"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/css-font"
|
||||||
|
to = "/css#fonts"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/css-selectors"
|
||||||
|
to = "/css#selectors"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/brew"
|
||||||
|
to = "/homebrew"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/date"
|
||||||
|
to = "/datetime"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/fetch"
|
||||||
|
to = "/js-fetch"
|
||||||
|
|
14
zombie.md
14
zombie.md
|
@ -1,9 +1,16 @@
|
||||||
---
|
---
|
||||||
title: Zombie
|
title: Zombie
|
||||||
category: JavaScript libraries
|
category: JavaScript libraries
|
||||||
|
layout: 2017/sheet
|
||||||
|
intro: |
|
||||||
|
[Zombie](http://zombie.js.org/) is a full-stack testing solution for Node.js.
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Zombie
|
||||||
|
|
||||||
|
### Examples
|
||||||
|
|
||||||
|
```js
|
||||||
browser
|
browser
|
||||||
.visit("http://.../", ->)
|
.visit("http://.../", ->)
|
||||||
.fill("email", "zombie@underworld.dead")
|
.fill("email", "zombie@underworld.dead")
|
||||||
|
@ -11,11 +18,13 @@ category: JavaScript libraries
|
||||||
.select("Born", "1985")
|
.select("Born", "1985")
|
||||||
.uncheck("Send newsletter")
|
.uncheck("Send newsletter")
|
||||||
.clickLink("Link name")
|
.clickLink("Link name")
|
||||||
.pressButton("Sign", -> ...)
|
.pressButton("Sign", () => { ... })
|
||||||
|
|
||||||
.text("H1")
|
.text("H1")
|
||||||
|
```
|
||||||
|
|
||||||
|
### Expectations
|
||||||
|
|
||||||
|
```js
|
||||||
expect(browser.query("#brains"))
|
expect(browser.query("#brains"))
|
||||||
|
|
||||||
expect(browser.body.queryAll(".hand")).length 2
|
expect(browser.body.queryAll(".hand")).length 2
|
||||||
|
@ -24,3 +33,4 @@ category: JavaScript libraries
|
||||||
console.log(browser.html("table.parts"))
|
console.log(browser.html("table.parts"))
|
||||||
|
|
||||||
expect(Browser.text(".card-nopad small"), "A better way to get around!")
|
expect(Browser.text(".card-nopad small"), "A better way to get around!")
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue