Skip to content

Commit

Permalink
Tweak URLs for move to clj-commons
Browse files Browse the repository at this point in the history
  • Loading branch information
hlship committed Jun 22, 2023
1 parent 0fad2af commit 639a0b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 23 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Clojars](https://img.shields.io/clojars/v/io.aviso/pretty.svg)](http://clojars.org/io.aviso/pretty)
[![CI](https://github.com/AvisoNovate/pretty/actions/workflows/clojure.yml/badge.svg)](https://github.com/AvisoNovate/pretty/actions/workflows/clojure.yml)
[![Clojars](https://img.shields.io/clojars/v/org.clj-commons/pretty.svg)](http://clojars.org/clj-commons/pretty)
[![CI](https://github.com/clj-commons/pretty/actions/workflows/clojure.yml/badge.svg)](https://github.com/AvisoNovate/pretty/actions/workflows/clojure.yml)

*Sometimes, neatness counts*

Expand Down
21 changes: 2 additions & 19 deletions build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[net.lewisship.build :as b]
[clojure.string :as str]))

(def lib 'io.aviso/pretty)
(def lib 'org.clj-commons/pretty)
(def version (-> "VERSION.txt" slurp str/trim))

(def jar-params {:project-name lib
Expand All @@ -27,22 +27,5 @@
(defn codox
[_params]
(b/generate-codox {:project-name lib
:version version
:aliases [:dev]}))
:version version}))

(def publish-dir "../aviso-docs/pretty")

(defn publish
"Generate Codox documentation and publish via a GitHub push."
[_params]
(println "Generating Codox documentation ...")
(codox nil)
(println "Copying documentation to" publish-dir "...")
(build/copy-dir {:target-dir publish-dir
:src-dirs ["target/doc"]})
(println "Committing changes ...")
(build/process {:dir publish-dir
:command-args ["git" "commit" "-a" "-m" (str "io.aviso/pretty " version)]})
(println "Pushing changes ...")
(build/process {:dir publish-dir
:command-args ["git" "push"]}))
4 changes: 2 additions & 2 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
{:main-opts ["-m" "clj-commons.pretty.repl"]}}

:net.lewisship.build/scm
{:url "https://github.com/AvisoNovate/pretty"}
{:url "https://github.com/clj-commons/pretty"}

:codox/config
{:description "Clojure library to help print things, prettily"
:source-uri "https://github.com/AvisoNovate/pretty/blob/master/{filepath}#L{line}"}}
:source-uri "https://github.com/clj-commons/pretty/blob/master/{filepath}#L{line}"}}

0 comments on commit 639a0b1

Please sign in to comment.