Skip to content

Commit

Permalink
Remove references to the old contrib pprint in favor of the version in
Browse files Browse the repository at this point in the history
core now that we're running on 1.2
  • Loading branch information
tomfaulhaber committed Oct 28, 2010
1 parent d049788 commit c7124c1
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 14 deletions.
3 changes: 1 addition & 2 deletions src/autodoc/autodoc.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
(ns autodoc.autodoc
(:use
[clojure.contrib.pprint :only (cl-format)]
[clojure.contrib.pprint.utilities :only (prlabel)]
[clojure.pprint :only (cl-format)]
[clojure.contrib.duck-streams :only [make-parents]]
[clojure.contrib.java-utils :only [file]]
[clojure.contrib.find-namespaces :only [find-namespaces-in-dir]]
Expand Down
3 changes: 1 addition & 2 deletions src/autodoc/branches.clj
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
(ns autodoc.branches
(:use [clojure.contrib.duck-streams :only [reader]]
[clojure.contrib.java-utils :only [file]]
[clojure.contrib.pprint :only [cl-format pprint]]
[clojure.contrib.pprint.utilities :only [prlabel]]
[clojure.pprint :only [cl-format pprint]]
[clojure.contrib.str-utils :only (re-split)]
[clojure.contrib.shell-out :only [with-sh-dir sh]]
[autodoc.params :only (params)]
Expand Down
9 changes: 3 additions & 6 deletions src/autodoc/build_html.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
[java.io File FileWriter BufferedWriter StringReader])
(:require [clojure.contrib.str-utils :as str])
(:use [net.cgrand.enlive-html :exclude (deftemplate)]
[clojure.contrib.pprint :only (pprint cl-format)]
[clojure.contrib.pprint.examples.json :only (print-json)]
[clojure.contrib.pprint.utilities :only (prlabel)]
[clojure.pprint :only (pprint cl-format)]
[clojure.contrib.json :only (pprint-json)]
[clojure.contrib.duck-streams :only (with-out-writer)]
[clojure.contrib.java-utils :only (file)]
[clojure.contrib.shell-out :only (sh)]
Expand Down Expand Up @@ -473,7 +472,7 @@ vars in ns-info that begin with that letter"
(when (params :build-json-index)
(with-out-writer (BufferedWriter.
(FileWriter. (file (params :output-path) *index-json-file*)))
(print-json (structured-index ns-info branch)))))
(pprint-json (structured-index ns-info branch)))))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
Expand Down Expand Up @@ -530,14 +529,12 @@ vars in ns-info that begin with that letter"
(defn make-all-pages
([] (make-all-pages {:first? true} nil (contrib-info)))
([branch-info all-branch-info ns-info]
(prlabel make-all-pages branch-info all-branch-info)
(let [doc-dir (str (when-not (:first? branch-info)
(str (branch-subdir (:name branch-info)) "/"))
"doc")]
(let [prefix (if (:first? branch-info) nil "../")
master-toc (make-master-toc ns-info branch-info all-branch-info prefix)
external-docs (wrap-external-doc doc-dir master-toc)]
(prlabel make-all-pages external-docs)
(make-overview ns-info master-toc branch-info prefix)
(doseq [ns ns-info]
(make-ns-page ns master-toc external-docs branch-info prefix))
Expand Down
3 changes: 1 addition & 2 deletions src/autodoc/doc_files.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
;as necessary."
(:use [autodoc.params :only [params]]
[clojure.contrib.shell-out :only [sh]]
[clojure.contrib.java-utils :only [delete-file]]
[clojure.contrib.pprint.utilities :only [prlabel]])
[clojure.contrib.java-utils :only [delete-file]])
(:require [clojure.contrib.duck-streams :as io])
(:import [java.io File]))

Expand Down
2 changes: 1 addition & 1 deletion src/autodoc/gen_docs.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns autodoc.gen-docs
(:use [clojure.contrib.java-utils :only (delete-file)]
[clojure.contrib.pprint :only (pprint)]
[clojure.pprint :only (pprint)]
[autodoc.load-files :only (load-namespaces)]
[autodoc.build-html :only (make-all-pages)]
[autodoc.params :only (params params-from-dir)]
Expand Down
2 changes: 1 addition & 1 deletion src/autodoc/git_tools.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(ns autodoc.git-tools
(:use [clojure.contrib.pprint :only [cl-format]]
(:use [clojure.pprint :only [cl-format]]
[clojure.contrib.shell-out :only [sh with-sh-dir]]
[autodoc.build-html :only [branch-subdir]])
(:import [java.io File]))
Expand Down

0 comments on commit c7124c1

Please sign in to comment.