Skip to content

Commit

Permalink
Update docs on source + move fabricate v0 API method to prototype ns
Browse files Browse the repository at this point in the history
  • Loading branch information
respatialized committed Dec 12, 2024
1 parent 5b11970 commit 39a90a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/site/fabricate/api.clj
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
:type [:or :string [:fn fs/exists?]]}
{:doc
"The source from which input entries are derived. collect dispatches on ::source"
;; TODO: rename this to align with new namespace convention
:term :site.fabricate.entry/source
:term :site.fabricate.api/source
:type :any}
{:doc
"A map representing a component of a page before, during, and after the assemble and produce operations. One source may produce multiple entries."
Expand All @@ -30,7 +29,7 @@
{:doc "The file where a page was published."
:term :site.fabricate.page/output
:type [:fn fs/exists?]}
{:doc "EDN data structure with the contents of a document."
{:doc "Clojure value with the contents of a document."
:term :site.fabricate.document/data
:type :any}
{:doc
Expand Down Expand Up @@ -108,7 +107,7 @@
"Malli schema describing entries."
(mu/required-keys
(mu/optional-keys
(m/schema [:map :site.fabricate.entry/source :site.fabricate.source/location
(m/schema [:map :site.fabricate.api/source :site.fabricate.source/location
:site.fabricate.page/output :site.fabricate.document/data
:site.fabricate.document/format :site.fabricate.source/format
:site.fabricate.page/format :site.fabricate.page/uri
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns site.fabricate.source.fabricate
(ns site.fabricate.prototype.source.fabricate
"Default data processing functions for Fabricate's page templates."
(:require [site.fabricate.prototype.read :as read]
[site.fabricate.prototype.read.grammar :as grammar]
Expand Down

0 comments on commit 39a90a0

Please sign in to comment.