diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d956ab0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +/target +/classes +/checkouts +profiles.clj +pom.xml +pom.xml.asc +*.jar +*.class +/.lein-* +/.nrepl-port +/.prepl-port +.hgignore +.hg/ diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..720ff63 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,24 @@ +# Change Log +All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/). + +## [Unreleased] +### Changed +- Add a new arity to `make-widget-async` to provide a different widget shape. + +## [0.1.1] - 2024-10-14 +### Changed +- Documentation on how to make the widgets. + +### Removed +- `make-widget-sync` - we're all async, all the time. + +### Fixed +- Fixed widget maker to keep working when daylight savings switches over. + +## 0.1.0 - 2024-10-14 +### Added +- Files from the new template. +- Widget maker public API - `make-widget-sync`. + +[Unreleased]: https://sourcehost.site/your-name/website/compare/0.1.1...HEAD +[0.1.1]: https://sourcehost.site/your-name/website/compare/0.1.0...0.1.1 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..0efc69b --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +Copyright 2024 Archie Hilton + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the “Software”), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + diff --git a/README.md b/README.md new file mode 100644 index 0000000..c676b75 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# website + +A Clojure library designed to ... well, that part is up to you. + +## Usage + +FIXME + +## License + +See [LICENSE](LICENSE) diff --git a/doc/intro.md b/doc/intro.md new file mode 100644 index 0000000..0a237da --- /dev/null +++ b/doc/intro.md @@ -0,0 +1,3 @@ +# Introduction to website + +TODO: write [great documentation](http://jacobian.org/writing/what-to-write/) diff --git a/project.clj b/project.clj new file mode 100644 index 0000000..a1f1531 --- /dev/null +++ b/project.clj @@ -0,0 +1,8 @@ +(defproject website "0.1.0-SNAPSHOT" + :description "FIXME: write description" + :url "http://example.com/FIXME" + :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" + :url "https://www.eclipse.org/legal/epl-2.0/"} + :dependencies [[org.clojure/clojure "1.11.1"] + [hiccup "2.0.0-RC3"]] + :repl-options {:init-ns website.core}) diff --git a/src/website/core.clj b/src/website/core.clj new file mode 100644 index 0000000..247b597 --- /dev/null +++ b/src/website/core.clj @@ -0,0 +1,20 @@ +(ns website.core) + +;; Requirements: +;; - Parse markdown into html content +;; - Build templates from html +;; - Handle images +;; - Automatically update when new content is pushed +;; - Blog framework +;; - Ability to link blogs covering the same project automatically +;; - Parse YAML headers for date and project +;; +;; Stack +;; - Clojure for the SSB +;; - Just HTML/CSS/JS I don't need anything fancy +;; - Markdown files in a directory + +(defn foo + "I don't do a whole lot." + [x] + (println x "Hello, World!")) diff --git a/test/website/core_test.clj b/test/website/core_test.clj new file mode 100644 index 0000000..6f9f35a --- /dev/null +++ b/test/website/core_test.clj @@ -0,0 +1,7 @@ +(ns website.core-test + (:require [clojure.test :refer :all] + [website.core :refer :all])) + +(deftest a-test + (testing "FIXME, I fail." + (is (= 0 1))))