Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
BIN := ./node_modules/.bin

# Core...

JEKYLL_ENV = 'development'
ifeq ('${BUILDKITE_BRANCH}','master')
JEKYLL_ENV := 'production'
Expand All @@ -21,7 +20,6 @@ intialize-work-dir:
@chmod -R 777 vendor/
@bundle install --path=vendor


.PHONY: build
build: node_modules vendor/bundle
@echo "Jekyll env: ${JEKYLL_ENV}"
Expand All @@ -30,6 +28,7 @@ build: node_modules vendor/bundle
@echo "env: ${JEKYLL_ENV}"
@$(BIN)/webpack --mode=production
@JEKYLL_ENV=${JEKYLL_ENV} bundle exec jekyll build --trace
@if [ '${BUILDKITE_BRANCH}' == 'staging' ]; then echo "updating sitemap.xml..." && sed -i -r 's/segment.com/segment.build/g' ./_site/sitemap.xml; fi;

.PHONY: upload-docs
upload-docs:
Expand Down
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: Segment
description: ""
baseurl: "/docs" # the subpath of your site, e.g. /blog
# url: "http://segment-docs-stage.s3-website-us-west-2.amazonaws.com" # the base hostname & protocol for your site, e.g. http://example.com
url: "https://segment.com" # the base hostname & protocol for your site, e.g. http://example.com
source: ./src


Expand Down