FAQ
Have you ever felt annoyed to update the README after you released a new
version of your project? Have your users ever struggled to make the older
version work because you forgot to update that README? Suffer no more,
because Clojars has just the right medicine for you.

From now on, you can append */latest-version.svg* to your artefact's link,
which will resolve to an image that shows the latest version of your
project. Then you can embed this image in your README, or Wiki, or wherever
else you like. A couple examples:

https://clojars.org/leiningen/latest-version.svg
https://clojars.org/com.palletops/pallet-cli/latest-version.svg

The only downside of using this feature is that the user can't just select
and copy the dependency line anymore. Although Webkit-based browsers
support text selection in SVGs (and Firefox's support for one is on the
way) it works only when opening the single image, but not when the image is
embedded into the page. But I hope it can be worked around somehow in
future.

Thanks to Nelson Morris and Phil Hagelberg for pushing this out!

--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Christopher Allen at Oct 9, 2013 at 9:47 pm
    Thank you for this!

    What could be done to make the text highlightable/copyable?
    On Tuesday, October 8, 2013 6:25:07 AM UTC-7, Alexander Yakushev wrote:

    Have you ever felt annoyed to update the README after you released a new
    version of your project? Have your users ever struggled to make the older
    version work because you forgot to update that README? Suffer no more,
    because Clojars has just the right medicine for you.

    From now on, you can append */latest-version.svg* to your artefact's
    link, which will resolve to an image that shows the latest version of your
    project. Then you can embed this image in your README, or Wiki, or wherever
    else you like. A couple examples:

    https://clojars.org/leiningen/latest-version.svg
    https://clojars.org/com.palletops/pallet-cli/latest-version.svg

    The only downside of using this feature is that the user can't just select
    and copy the dependency line anymore. Although Webkit-based browsers
    support text selection in SVGs (and Firefox's support for one is on the
    way) it works only when opening the single image, but not when the image is
    embedded into the page. But I hope it can be worked around somehow in
    future.

    Thanks to Nelson Morris and Phil Hagelberg for pushing this out!
    --
    --
    You received this message because you are subscribed to the Google
    Groups "Clojure" group.
    To post to this group, send email to clojure@googlegroups.com
    Note that posts from new members are moderated - please be patient with your first post.
    To unsubscribe from this group, send email to
    clojure+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/clojure?hl=en
    ---
    You received this message because you are subscribed to the Google Groups "Clojure" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Alexander Yakushev at Oct 9, 2013 at 10:16 pm
    The inability to select the text in SVG comes from <img> tag limitations.
    The following two ways of embedding SVG image into the webpage allows
    selecting text in both Webkit browsers and Firefox (in the latter via
    double-clicking and then right-click->Copy):

    <object data="https://clojars.org/leiningen/latest-version.svg"
    type="image/svg+xml"></object>
    <embed src="https://clojars.org/leiningen/latest-version.svg"
    type="image/svg+xml" />

    Unfortunately, Github supports neither of them in its READMEs/wikis. So it
    can be used only when you have direct access to page's HTML, for instance
    on your own website or Github Pages.

    Perhaps the inclusion of <embed> on Github might be lobbied someday, but
    I'm afraid not in the foreseeable future.
    On Wednesday, October 9, 2013 11:47:37 PM UTC+2, Christopher Allen wrote:

    Thank you for this!

    What could be done to make the text highlightable/copyable?
    On Tuesday, October 8, 2013 6:25:07 AM UTC-7, Alexander Yakushev wrote:

    Have you ever felt annoyed to update the README after you released a new
    version of your project? Have your users ever struggled to make the older
    version work because you forgot to update that README? Suffer no more,
    because Clojars has just the right medicine for you.

    From now on, you can append */latest-version.svg* to your artefact's
    link, which will resolve to an image that shows the latest version of your
    project. Then you can embed this image in your README, or Wiki, or wherever
    else you like. A couple examples:

    https://clojars.org/leiningen/latest-version.svg
    https://clojars.org/com.palletops/pallet-cli/latest-version.svg

    The only downside of using this feature is that the user can't just
    select and copy the dependency line anymore. Although Webkit-based browsers
    support text selection in SVGs (and Firefox's support for one is on the
    way) it works only when opening the single image, but not when the image is
    embedded into the page. But I hope it can be worked around somehow in
    future.

    Thanks to Nelson Morris and Phil Hagelberg for pushing this out!
    --
    --
    You received this message because you are subscribed to the Google
    Groups "Clojure" group.
    To post to this group, send email to clojure@googlegroups.com
    Note that posts from new members are moderated - please be patient with your first post.
    To unsubscribe from this group, send email to
    clojure+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/clojure?hl=en
    ---
    You received this message because you are subscribed to the Google Groups "Clojure" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupclojure @
categoriesclojure
postedOct 8, '13 at 1:25p
activeOct 9, '13 at 10:16p
posts3
users2
websiteclojure.org
irc#clojure

People

Translate

site design / logo © 2022 Grokbase