Skip to content

Commit

Permalink
Improved documentation build process.
Browse files Browse the repository at this point in the history
  • Loading branch information
niwinz committed Jun 28, 2015
1 parent 3737367 commit dba03a1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Expand Up @@ -8,8 +8,7 @@ pom.xml.asc
*.swp
/.lein-*
/.nrepl-port
/doc/index.html
/doc/api
/doc/dist/
\#*\#
*~
.\#*
16 changes: 11 additions & 5 deletions 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
2 changes: 2 additions & 0 deletions doc/content-docinfo.html
@@ -0,0 +1,2 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic|Liberation+Mono:400|Roboto+Slab:400,700"/>
<link rel="stylesheet" href="https://www.niwi.nz/_assets/asciidoctor-styles/simple-red-titles/stylesheet.css"/>
2 changes: 1 addition & 1 deletion project.clj
Expand Up @@ -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"
Expand Down

0 comments on commit dba03a1

Please sign in to comment.