Skip to content

Commit 756cf66

Browse files
convenience script to view sites deployed in local gh-pages branch with version selector
1 parent 9c2c8f3 commit 756cf66

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/serve_ghpages.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
# serves local gh-pages - use to verify deployed sites with version selector before pushing gh-pages branch
4+
DATA_DIR="$(cd "$(dirname "${0}")/.." && pwd)"
5+
docker run -v ${DATA_DIR}:/data -p 8000:8000 --rm -it trivadis/mktools bash -c "cd /data; mike serve -a 0.0.0.0:8000"

0 commit comments

Comments
 (0)