summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md7
-rw-r--r--pom.xml80
-rw-r--r--project.clj11
3 files changed, 94 insertions, 4 deletions
diff --git a/README.md b/README.md
index 7d6a5c5..b85d12c 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
# mf2clj
+[![Clojars Project](https://img.shields.io/clojars/v/org.clojars.eltrac/mf2clj.svg)](https://clojars.org/org.clojars.eltrac/mf2clj)
+
A Clojure library that parses [microformats](http://microformats.org/). Under the hood, it's a thin wrapper of a [Extism](https://extism.org/) plugin written in Go (source of which is also in this repository), and the plugin itself is a wrapper of Will Norris' [microformats parser](https://github.com/willnorris/microformats). *Yes, that's a lot of wrappers! I have a good excuse for that.*
---
@@ -76,8 +78,9 @@ I suppose I could use [Rust](https://crates.io/crates/microformats/0.2.0), but i
## Usage
-> [!note]
-> *I'm still working on publishing to Clojars.*
+```
+[org.clojars.eltrac/mf2clj "0.0.1"]
+```
```clojure
(require '[mf2clj.core :as mf2clj])
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..a76a88e
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.clojars.eltrac</groupId>
+ <artifactId>mf2clj</artifactId>
+ <packaging>jar</packaging>
+ <version>0.0.1</version>
+ <name>mf2clj</name>
+ <description>A Clojure wrapper of Will Norris' microformats parser in Go, which runs WebAssembly under the hood.</description>
+ <url>https://codeberg.org/eltrac/mf2clj</url>
+ <licenses>
+ <license>
+ <name>GNU Affero General Public License</name>
+ <url>https://www.gnu.org/licenses/agpl-3.0.html</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <scm>
+ <tag>6dfdbec6b044b7462456622850b22b39051fbe91</tag>
+ </scm>
+ <build>
+ <sourceDirectory>src</sourceDirectory>
+ <testSourceDirectory>test</testSourceDirectory>
+ <resources>
+ <resource>
+ <directory>resources</directory>
+ </resource>
+ </resources>
+ <testResources>
+ <testResource>
+ <directory>resources</directory>
+ </testResource>
+ </testResources>
+ <directory>target</directory>
+ <outputDirectory>target/classes</outputDirectory>
+ <plugins/>
+ </build>
+ <repositories>
+ <repository>
+ <id>central</id>
+ <url>https://repo1.maven.org/maven2/</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>clojars</id>
+ <url>https://repo.clojars.org/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ </repositories>
+ <dependencyManagement>
+ <dependencies/>
+ </dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.clojure</groupId>
+ <artifactId>clojure</artifactId>
+ <version>1.12.4</version>
+ </dependency>
+ <dependency>
+ <groupId>org.extism.sdk</groupId>
+ <artifactId>chicory-sdk-core</artifactId>
+ <version>0.3.0</version>
+ </dependency>
+ </dependencies>
+</project>
+
+<!-- This file was autogenerated by Leiningen.
+ Please do not edit it directly; instead edit project.clj and regenerate it.
+ It should not be considered canonical data. For more information see
+ https://codeberg.org/leiningen/leiningen -->
diff --git a/project.clj b/project.clj
index e1ea578..2f7222c 100644
--- a/project.clj
+++ b/project.clj
@@ -1,9 +1,16 @@
-(defproject mf2clj "0.0.1"
+(defproject org.clojars.eltrac/mf2clj "0.0.1"
:description "A Clojure wrapper of Will Norris' microformats parser in Go, which runs WebAssembly under the hood."
- :url "https://src.eltr.ac/eltrac/mf2clj"
+ :url "https://codeberg.org/eltrac/mf2clj"
:min-lein-version "2.0.0"
:dependencies [[org.clojure/clojure "1.12.4"]
[org.extism.sdk/chicory-sdk-core "0.3.0"]]
+ :deploy-repositories [["clojars" {:url "https://repo.clojars.org"
+ :sign-releases false}]
+ ;; personally I prefer better crypto tools
+ ;; other than GPG, but Clojars only use GPG
+ ;; so I will have to postpone signing releases
+ ["releases" :clojars]
+ ["snapshots" :clojars]]
:profiles {:uberjar {:aot :all}}
:license {:name "GNU Affero General Public License"
:url "https://www.gnu.org/licenses/agpl-3.0.html"