Fix codox settings and build API docs together with the site

This commit is contained in:
Juho Teperi 2017-03-19 22:13:25 +02:00
parent 70adddae37
commit 44a4d50bcd
4 changed files with 11 additions and 5 deletions

View File

@ -70,7 +70,7 @@ push-gh-pages: build-gh-pages
git push origin gh-pages:gh-pages
# build site and push to reagent-project's doc site
push-project-docs: gen-site
push-project-docs: gen-site gen-docs
# sanity check
test -f $(SITEDIR)/index.html
test ! -e $(OUTPUTDIR)
@ -78,6 +78,8 @@ push-project-docs: gen-site
git clone git@github.com:reagent-project/reagent-project.github.io.git tmp
rm -fr tmp/*
cp -r $(SITEDIR)/* tmp/
mkdir -p tmp/docs/master/
cp -r target/doc/* tmp/docs/master/
cd tmp && \
git add . && git commit -m "Updated" && \
git push
@ -90,6 +92,9 @@ gen-site: clean
lein with-profile prod cljsbuild once
lein with-profile prerender cljsbuild once
gen-docs: clean
lein codox
# copy contents of $(SITEDIR) to branch gh-pages
gh-pages-add:
# sanity check

View File

@ -8,7 +8,7 @@ Reagent provides a way to write efficient React components using (almost) nothin
* **[Detailed intro with live examples](http://reagent-project.github.io/)**
* **[News](http://reagent-project.github.io/news/index.html)**
* **[Reagent Project Mailing List](https://groups.google.com/forum/#!forum/reagent-project)**
* **[API Documentation](http://blog.ducky.io/reagent-docs/index.html)**
* **[API Documentation](http://reagent-project.github.io/docs/master/)**
### Prerequisites

View File

@ -31,7 +31,7 @@
[:li [link {:href index-page} "Intro"]]
[:li [link {:href news/url} "News"]]
[:li>a github "GitHub"]
[:li [link {:href "http://blog.ducky.io/reagent-docs/index.html"} "API"]]]
[:li [:a {:href "http://reagent-project.github.io/docs/master/"} "API"]]]
[:div @test-results]
[tools/main-content]
[github-badge]])

View File

@ -9,12 +9,13 @@
[cljsjs/react-dom-server "15.4.2-2"]]
:plugins [[lein-cljsbuild "1.1.5"]
[codox "0.9.0"]]
[lein-codox "0.10.3"]]
:source-paths ["src"]
:codox {:language :clojurescript
:exclude clojure.string}
:exclude clojure.string
:source-paths ["src"]}
:profiles {:test {:cljsbuild
{:builds {:client {:source-paths ["test"]