Skip to content

Commit

Permalink
chore: add Makefile for running hugo serve locally
Browse files Browse the repository at this point in the history
  • Loading branch information
smlx committed Aug 21, 2021
1 parent 9af1867 commit be8f273
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
themes
node_modules
package-lock.json
resources
9 changes: 9 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.PHONY: serve
serve:
cd .. && \
docker run --rm -it -v $$(pwd):/src -u $$(id -u) -p 1313:1313 \
--entrypoint sh klakegg/hugo:ext-alpine -c \
'cd docs && npm install postcss postcss-cli autoprefixer && hugo --baseURL=/ --bind=0.0.0.0 serve'

themes/docsy:
git clone --recurse-submodules http://github.com/google/docsy themes/docsy

0 comments on commit be8f273

Please sign in to comment.