From f64f47fa5c0709124fca2754291b5c80f10172bd Mon Sep 17 00:00:00 2001 From: Tom Faulhaber Date: Mon, 2 May 2011 00:35:49 -0700 Subject: [PATCH 1/6] Added java.classpath and java.jdbc to the list of supported libs --- params/java.classpath/build.xml | 22 ++++++++++++++ params/java.classpath/params.clj | 29 +++++++++++++++++++ .../java.classpath/templates/description.html | 7 +++++ params/java.jdbc/build.xml | 22 ++++++++++++++ params/java.jdbc/params.clj | 29 +++++++++++++++++++ params/java.jdbc/templates/description.html | 7 +++++ 6 files changed, 116 insertions(+) create mode 100644 params/java.classpath/build.xml create mode 100644 params/java.classpath/params.clj create mode 100644 params/java.classpath/templates/description.html create mode 100644 params/java.jdbc/build.xml create mode 100644 params/java.jdbc/params.clj create mode 100644 params/java.jdbc/templates/description.html diff --git a/params/java.classpath/build.xml b/params/java.classpath/build.xml new file mode 100644 index 0000000..ffaa3b4 --- /dev/null +++ b/params/java.classpath/build.xml @@ -0,0 +1,22 @@ + + + + The subsidiary autodoc build file for building java.classpath + + + + + + + + + + + + + + + + + + diff --git a/params/java.classpath/params.clj b/params/java.classpath/params.clj new file mode 100644 index 0000000..534860f --- /dev/null +++ b/params/java.classpath/params.clj @@ -0,0 +1,29 @@ +(import (java.io File)) + +(let [file-prefix (.getAbsolutePath (File. "../autodoc-work-area/java.classpath")) + root (str file-prefix "/src/")] + {:name "Classpath Utilities", + :file-prefix file-prefix, + :root root, + :source-path "src/main/clojure", + :web-src-dir "https://github.com/clojure/java.classpath/blob/", + + :web-home "http://clojure.github.com/java.classpath/", + :output-path (str file-prefix "/autodoc/"), + :external-doc-tmpdir "/tmp/autodoc/doc", +;; :clojure-contrib-classes (str root "build"), + + :load-jar-dirs [(str root "lib")], + + :namespaces-to-document ["clojure.java.classpath"], + :trim-prefix "clojure.tools.", + + :branches [{:name "master" + :version "0.1.2" + :status "in development" + :params {:built-clojure-jar "/home/tom/src/clj/clojure-1.3/clojure.jar"}}, + ] + + :load-except-list [#"/classes/"], + }) + diff --git a/params/java.classpath/templates/description.html b/params/java.classpath/templates/description.html new file mode 100644 index 0000000..743cf01 --- /dev/null +++ b/params/java.classpath/templates/description.html @@ -0,0 +1,7 @@ +The classpath library provides utilities for dealing with the JVM's classpath. +

+This library is a contributed library to Clojure and can be found at +https://github.com/clojure/java.classpath. +

+Like all of Clojure and its contributed libraries, the classpath library is licensed under the +Eclipse Public License (EPL). diff --git a/params/java.jdbc/build.xml b/params/java.jdbc/build.xml new file mode 100644 index 0000000..9daac53 --- /dev/null +++ b/params/java.jdbc/build.xml @@ -0,0 +1,22 @@ + + + + The subsidiary autodoc build file for building java.jdbc + + + + + + + + + + + + + + + + + + diff --git a/params/java.jdbc/params.clj b/params/java.jdbc/params.clj new file mode 100644 index 0000000..c859517 --- /dev/null +++ b/params/java.jdbc/params.clj @@ -0,0 +1,29 @@ +(import (java.io File)) + +(let [file-prefix (.getAbsolutePath (File. "../autodoc-work-area/java.jdbc")) + root (str file-prefix "/src/")] + {:name "JDBC-based SQL Interface", + :file-prefix file-prefix, + :root root, + :source-path "src/main/clojure", + :web-src-dir "https://github.com/clojure/java.jdbc/blob/", + + :web-home "http://clojure.github.com/java.jdbc/", + :output-path (str file-prefix "/autodoc/"), + :external-doc-tmpdir "/tmp/autodoc/doc", + + :load-jar-dirs [(str root "lib")], + + :namespaces-to-document ["clojure.java.jdbc"], + :trim-prefix nil, + :build-json-index nil, + + :branches [{:name "master" + :version "0.0.1" + :status "in development" + :params {:built-clojure-jar "/home/tom/src/clj/clojure-1.3/clojure.jar"}}, + ] + + :load-except-list [#"/classes/"], + }) + diff --git a/params/java.jdbc/templates/description.html b/params/java.jdbc/templates/description.html new file mode 100644 index 0000000..84227df --- /dev/null +++ b/params/java.jdbc/templates/description.html @@ -0,0 +1,7 @@ +java.jdbc provides a Clojure interface to SQL databases via JDBC. +

+This library is a contributed library to Clojure and can be found at +https://github.com/clojure/java.jdbc. +

+Like all of Clojure and its contributed libraries, the JDBC library is licensed under the +Eclipse Public License (EPL). From 9dc0ae3cb06ca21e99bf49b0bd6a08f81507254a Mon Sep 17 00:00:00 2001 From: Tom Faulhaber Date: Mon, 2 May 2011 00:37:29 -0700 Subject: [PATCH 2/6] Don't bother with the two level structure for single namespace projects --- resources/templates/master-toc.html | 10 ++++--- src/autodoc/build_html.clj | 42 ++++++++++++++++++----------- 2 files changed, 32 insertions(+), 20 deletions(-) diff --git a/resources/templates/master-toc.html b/resources/templates/master-toc.html index ffd8dcc..e195044 100644 --- a/resources/templates/master-toc.html +++ b/resources/templates/master-toc.html @@ -6,10 +6,12 @@

  • Overview
  • API Index
  • - Namespaces - +
    + Namespaces + +
    Other Versions