forked from dbt-labs/docs.getdbt.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
22 lines (17 loc) · 924 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.PHONY: run install build
run:
npm start
install:
npm install
build:
DOCS_ENV=build npm run build
# Create per-version redirects... hopefully we can phase these out as
# search engines de-index these absolute versioned URLs
cat ../_redirects > build/_redirects
cat ../_redirects | grep 'docs/' | awk '{ print "/v0.15" $$1 "\t" $$2 "\t" $$3 }' >> build/_redirects
cat ../_redirects | grep 'docs/' | awk '{ print "/v0.14" $$1 "\t" $$2 "\t" $$3 }' >> build/_redirects
cat ../_redirects | grep 'docs/' | awk '{ print "/v0.13" $$1 "\t" $$2 "\t" $$3 }' >> build/_redirects
cat ../_redirects | grep 'docs/' | awk '{ print "/v0.12" $$1 "\t" $$2 "\t" $$3 }' >> build/_redirects
cat ../_redirects | grep 'docs/' | awk '{ print "/v0.11" $$1 "\t" $$2 "\t" $$3 }' >> build/_redirects
cat ../_redirects | grep 'docs/' | awk '{ print "/v0.10" $$1 "\t" $$2 "\t" $$3 }' >> build/_redirects
cat ../_headers > build/_headers