File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 11USER =` whoami `
22GIT_BRANCH =` git rev-parse --abbrev-ref HEAD `
3- STAGING_URL ="https://docs-mongodborg-staging.corp.mongodb.com"
43STAGING_BUCKET =docs-mongodb-org-staging
54STAGING_PREFIX =tutorials
5+ STAGING_URL =http://docs-mongodb-org-staging.s3-website-us-east-1.amazonaws.com/${STAGING_PREFIX}/${USER}/${GIT_BRANCH}
66
77.PHONY : build server help stage
88
99help : # # Show this help message
1010 @grep -E ' ^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | sort | awk ' BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
1111
1212build : | tools/node_modules # # Build into public/
13- hugo
13+ hugo -b " ${STAGING_URL} "
1414 $(NODE ) tools/genindex.js content public/search.json public/tags.json --config config.toml
1515
1616server : # # Host the documentation on port 1313
@@ -19,7 +19,7 @@ server: ## Host the documentation on port 1313
1919
2020stage : build # Upload built artifacts to the staging URL
2121 mut-publish public/ ${STAGING_BUCKET} --prefix=${STAGING_PREFIX} --stage ${ARGS}
22- @echo " Hosted at ${STAGING_URL} / ${STAGING_PREFIX} / ${USER} / ${GIT_BRANCH} /index.html "
22+ @echo " Hosted at ${STAGING_URL} "
2323
2424tools/node_modules : tools/package.json
2525 cd tools && npm update
Original file line number Diff line number Diff line change 1- baseurl = " http://docs-mongodb-org-staging.s3-website-us-east-1.amazonaws.com/tutorials/kirby/master"
21languageCode = " en-us"
32title = " MongoDB Tutorials"
43theme = " mongodb-tutorials"
You can’t perform that action at this time.
0 commit comments