Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Scripting deployment docs

  • Loading branch information...
commit bba47c6eb54e1fe9102d29889c6efa6b9c3070d2 1 parent 20668a1
Dav Glass authored April 12, 2012

Showing 2 changed files with 32 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  Makefile
  2. 29  scripts/docs.sh
3  Makefile
@@ -18,6 +18,9 @@ api:
18 18
 
19 19
 docs: clean help doc api
20 20
 
  21
+deploydocs:
  22
+	./scripts/docs.sh
  23
+
21 24
 test:
22 25
 	./scripts/prep.sh
23 26
 	./node_modules/.bin/yuitest ./tests/parser.js
29  scripts/docs.sh
... ...
@@ -0,0 +1,29 @@
  1
+#!/bin/bash
  2
+
  3
+cd "$(dirname "$0")"
  4
+
  5
+out=../../yuidocjs-pages
  6
+
  7
+cd $out
  8
+
  9
+out=`pwd`
  10
+
  11
+cd -
  12
+
  13
+if [ ! -d $out ]; then
  14
+
  15
+    echo "Could not find $out"
  16
+    exit;
  17
+fi
  18
+
  19
+echo "Deploying Doc Files to Github Pages"
  20
+
  21
+cd ../
  22
+wait
  23
+make docs
  24
+wait
  25
+rm -rRf $out/*
  26
+wait
  27
+cp -R output/* $out/
  28
+wait
  29
+echo "Doc Deploy Complete, checkin and push now."

0 notes on commit bba47c6

Please sign in to comment.
Something went wrong with that request. Please try again.