Skip to content

Commit

Permalink
Remove /redirects.rb (#3305)
Browse files Browse the repository at this point in the history
Will restore when Prod uses Netlify
  • Loading branch information
chenopis authored Apr 10, 2017
1 parent fe10be9 commit 817fff8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 82 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ Session.vim
tags

kubernetes.github.io.iml
_redirects
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all build build-preview generate-redirects help serve
.PHONY: all build build-preview help serve

help: ## Show this help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
Expand All @@ -11,8 +11,5 @@ build: ## Build site with production settings and put deliverables in _site.
build-preview: ## Build site with drafts and future posts enabled.
jekyll build --drafts --future

generate-redirects: ## Generate a redirects file and copy it into the _site directory.
mkdir -p _site && REDIRECTS_PATH=_site/_redirects ruby redirects.rb

serve: ## Boot the development server.
jekyll serve
4 changes: 2 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build]
command = "make build generate-redirects"
command = "make build"
publish = "_site"

[context.deploy-preview]
command = "make build-preview generate-redirects"
command = "make build-preview"
75 changes: 0 additions & 75 deletions redirects.rb

This file was deleted.

0 comments on commit 817fff8

Please sign in to comment.