diff --git a/.gitignore b/.gitignore
index 0a72af7..25c8de5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,8 +8,7 @@ pom.xml.asc
*.swp
/.lein-*
/.nrepl-port
-/doc/index.html
-/doc/api
+/doc/dist/
\#*\#
*~
.\#*
diff --git a/doc/Makefile b/doc/Makefile
index 5b11c63..be1f227 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -1,7 +1,13 @@
-all: auth
+all: doc
-auth:
- asciidoctor -o index.html content.adoc
+api:
+ cd ..
+ lein doc
-clean:
- rm -f index.html
+doc:
+ mkdir -p dist/latest/
+ asciidoctor -a docinfo -a stylesheet! -o dist/latest/index.html content.adoc
+
+github: doc api
+ ghp-import -m "Generate documentation" -b gh-pages dist/
+ git push origin gh-pages
diff --git a/doc/content-docinfo.html b/doc/content-docinfo.html
new file mode 100644
index 0000000..a16e8f9
--- /dev/null
+++ b/doc/content-docinfo.html
@@ -0,0 +1,2 @@
+
+
diff --git a/project.clj b/project.clj
index 684ceb1..1745e47 100644
--- a/project.clj
+++ b/project.clj
@@ -15,7 +15,7 @@
:profiles {:dev {:codeina {:sources ["src"]
:exclude [buddy.core.sign.impl]
:language :clojure
- :output-dir "doc/api"
+ :output-dir "doc/dist/latest/api"
:src-dir-uri "http://github.com/funcool/buddy-core/blob/master/"
:src-linenum-anchor-prefix "L"}
:plugins [[funcool/codeina "0.1.0-SNAPSHOT"