From 5b0e685002cc784c066e810079760c8028a3855e Mon Sep 17 00:00:00 2001 From: XavierAgostini Date: Wed, 4 Dec 2019 14:37:36 -0800 Subject: [PATCH] update config.yml to use segment.com as url for sitemap, and add command to update sitemap.xml url's for stage env --- Makefile | 3 +-- _config.yml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index afaab8207b..f246cc0205 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,6 @@ BIN := ./node_modules/.bin # Core... - JEKYLL_ENV = 'development' ifeq ('${BUILDKITE_BRANCH}','master') JEKYLL_ENV := 'production' @@ -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}" @@ -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: diff --git a/_config.yml b/_config.yml index 3322f5478e..fe8fa35a26 100644 --- a/_config.yml +++ b/_config.yml @@ -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