Use Netlify redirects (#1474)

This commit is contained in:
Rico Sta. Cruz 2020-06-23 01:55:02 +10:00 committed by GitHub
parent 5d514222d6
commit 1fa97113d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 142 additions and 125 deletions

View File

@ -9,6 +9,16 @@ jobs:
runs-on: ubuntu-latest
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
with:
persist-credentials: false

View File

@ -1,5 +0,0 @@
---
title: Homebrew
category: Hidden
redirect_to: /homebrew
---

View File

@ -1,5 +0,0 @@
---
title: Commander.js
category: Hidden
redirect_to: /commander.js
---

View File

@ -1,5 +0,0 @@
---
title: CSS animations
category: Hidden
redirect_to: /css#animation
---

View File

@ -1,6 +0,0 @@
---
title: CSS background
category: Hidden
redirect_to: /css#background
---

View File

@ -1,5 +0,0 @@
---
title: CSS font
category: Hidden
redirect_to: /css#fonts
---

View File

@ -1,5 +0,0 @@
---
title: CSS selectors
category: Hidden
redirect_to: /css#selectors
---

View File

@ -1,5 +0,0 @@
---
title: Date
categoroy: Hidden
redirect_to: /datetime
---

View File

@ -1,5 +0,0 @@
---
title: ES2015
category: JavaScript
redirect_to: /es6
---

View File

@ -1,5 +0,0 @@
---
title: ES2016
category: JavaScript
redirect_to: /es6
---

View File

@ -1,5 +0,0 @@
---
title: ES2017
category: JavaScript
redirect_to: /es6
---

View File

@ -1,5 +0,0 @@
---
title: ES2018
category: JavaScript
redirect_to: /es6
---

View File

@ -1,5 +0,0 @@
---
title: expect.js
category: Hidden
redirect_to: /expectjs
---

View File

@ -1,5 +0,0 @@
---
title: Factory Girl
category: Ruby libraries
redirect_to: /factory_bot
---

View File

@ -1,5 +0,0 @@
---
title: fetch()
category: Hidden
redirect_to: /js-fetch
---

View File

@ -1,5 +0,0 @@
---
title: Flexbox
category: Hidden
redirect_to: /css-flexbox
---

View File

@ -1,5 +0,0 @@
---
title: Flow
redirect_to: /flow
category: JavaScript libraries
---

5
gpg.md
View File

@ -1,5 +0,0 @@
---
title: GPG
category: Hidden
redirect_to: /gnupg
---

View File

@ -1,5 +0,0 @@
---
title: gpgconf
category: Hidden
redirect_to: /gnupg
---

View File

@ -1,5 +0,0 @@
---
title: Gutom
category: Hidden
redirect_to: /ph-food-delivery
---

View File

@ -1,5 +0,0 @@
---
title: Handlebars.js
category: Hidden
redirect_to: /handlebars.js
---

View File

@ -1,5 +0,0 @@
---
title: Harvey.js
category: Hidden
redirect_to: /harvey.js
---

View File

@ -1,5 +0,0 @@
---
title: Immutable.js
category: Hidden
redirect_to: /immutable.js
---

View File

@ -1,3 +1,111 @@
[build]
command = "yarn build"
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"

View File

@ -1,26 +1,36 @@
---
title: Zombie
category: JavaScript libraries
layout: 2017/sheet
intro: |
[Zombie](http://zombie.js.org/) is a full-stack testing solution for Node.js.
---
## Zombie
browser
.visit("http://.../", ->)
.fill("email", "zombie@underworld.dead")
.fill("password", "eat-the-living")
.select("Born", "1985")
.uncheck("Send newsletter")
.clickLink("Link name")
.pressButton("Sign", -> ...)
### Examples
.text("H1")
```js
browser
.visit("http://.../", ->)
.fill("email", "zombie@underworld.dead")
.fill("password", "eat-the-living")
.select("Born", "1985")
.uncheck("Send newsletter")
.clickLink("Link name")
.pressButton("Sign", () => { ... })
.text("H1")
```
### Expectations
expect(browser.query("#brains"))
```js
expect(browser.query("#brains"))
expect(browser.body.queryAll(".hand")).length 2
expect(browser.body.queryAll(".hand")).length 2
console.log(browser.html())
console.log(browser.html("table.parts"))
console.log(browser.html())
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!")
```