Skip to content

Commit ab42954

Browse files
committed
Merge pull request #136 from slack/consolidate-docs-1
Cleanups and adapters for documentation consolidation.
2 parents c71b596 + f4cdaa2 commit ab42954

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33

44
# You can set these variables from the command line.
5-
BUILDDIR = _build
5+
BUILDDIR ?= _build/html
66
MKDOCS = mkdocs
77
MKDOCSBUILDOPTS = --clean --strict --verbose
88
MKDOCSBUILD = $(MKDOCS) build $(MKDOCSBUILDOPTS)
@@ -18,9 +18,9 @@ DEV_ENV_PREFIX := docker run --rm -v ${CURDIR}:${DEV_ENV_WORK_DIR} -w ${DEV_ENV_
1818
DEV_ENV_CMD := ${DEV_ENV_PREFIX} ${DEV_ENV_IMAGE}
1919

2020
build:
21-
$(MKDOCSBUILD) --site-dir $(BUILDDIR)/html
21+
$(MKDOCSBUILD) --site-dir $(BUILDDIR)
2222
@echo
23-
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
23+
@echo "Build finished. The HTML pages are in $(BUILDDIR)."
2424

2525
serve:
2626
$(MKDOCSSERVE)
@@ -34,7 +34,7 @@ deps:
3434
test: build
3535
grep -q '<title>Deis Documentation</title>' _build/html/index.html
3636
@echo
37-
@echo "Test finished. The HTML pages are in $(BUILDDIR)/html."
37+
@echo "Test finished. The HTML pages are in $(BUILDDIR)."
3838

3939
docker-build:
4040
docker build --rm -t ${IMAGE} .

_scripts/gutenbuild

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
set -e
4+
set -x
5+
6+
build_dest=$1
7+
8+
PATH=$HOME/.local/bin:$PATH BUILDDIR=${build_dest} make deps build

0 commit comments

Comments
 (0)