Module Arod_component.Note

Note component rendering using htmlit.

module Note = Bushel.Note
module I = Arod.Icons

Helpers

val heading : ctx:'a -> Bushel.Entry.entry -> Htmlit.El.html

Render a heading for an entry with date, via link, and DOI.

val brief : ctx:Arod__.Arod_ctx.t -> Bushel__.Bushel_note.t -> Htmlit.El.html * (int * bool) option

Brief note for lists with truncated body.

val full : ctx:Arod.Ctx.t -> Note.t -> Htmlit.El.html * Arod.Md.sidenote list

Full note rendering with parent reference link.

val full_page : ctx:Arod.Ctx.t -> Bushel__.Bushel_note.t -> Htmlit.El.html * Arod.Md.sidenote list * (string * string) list

Full note page with proper header and article structure.

val format_number : int -> string

Format a number with comma thousands separators.

val compact : ctx:Arod.Ctx.t -> Bushel__.Bushel_note.t -> Htmlit.El.html

Compact note card for list view.

val notes_list : ctx:Arod.Ctx.t -> Htmlit.El.html * Htmlit.El.html

Notes list page grouped by month with calendar sidebar. Returns (article, sidebar).

val for_feed : ctx:Arod__.Arod_ctx.t -> Bushel__.Bushel_note.t -> Htmlit.El.html * (int * bool) option

Truncated note for feeds.

val references : ctx:Arod.Ctx.t -> Bushel__.Bushel_note.t -> Htmlit.El.html

Citation references section for notes with DOI-bearing links.