Skip to content

Commit

Permalink
prepare for 0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Oct 4, 2024
1 parent 795d13e commit 9e36427
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 11 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@

## 0.12

- Remove fallback to and dependency on `printbox-html` from `printbox-md` (@lukstafi)
- introduce notion of extensions (@lukstafi)
- add `printbox-ext-plot` extension for text and HTML plots (@lukstafi)
- feat: add `?stretch` param to `frame`

- fix #45, problem with nested frames

## 0.11

- Anchors (with self-links if inner is non-empty)
Expand Down
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(name printbox)
(using mdx 0.2)
(generate_opam_files true)
(version 0.11)
(version 0.12)
(license "BSD-2-Clause")

(authors "Simon Cruanes" "Guillaume Bury" "lukstafi")
Expand Down
2 changes: 1 addition & 1 deletion printbox-ext-plot.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.11"
version: "0.12"
synopsis: "Printbox extension for plotting"
description: """

Expand Down
2 changes: 1 addition & 1 deletion printbox-html.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.11"
version: "0.12"
synopsis: "Printbox unicode handling"
description: """

Expand Down
2 changes: 1 addition & 1 deletion printbox-md.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.11"
version: "0.12"
synopsis: "Printbox Markdown rendering"
description: """

Expand Down
2 changes: 1 addition & 1 deletion printbox-text.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.11"
version: "0.12"
synopsis: "Text renderer for printbox, using unicode edges"
maintainer: ["c-cube" "lukstafi"]
authors: ["Simon Cruanes" "Guillaume Bury" "lukstafi"]
Expand Down
2 changes: 1 addition & 1 deletion printbox.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.11"
version: "0.12"
synopsis:
"Allows to print nested boxes, lists, arrays, tables in several formats"
maintainer: ["c-cube" "lukstafi"]
Expand Down
8 changes: 4 additions & 4 deletions src/PrintBox.mli
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ type t
type ext = ..
(** Extensions of the representation.
@since NEXT_RELEASE
@since 0.12
*)

(** The type [view] can be used to observe the inside of the box,
Expand All @@ -115,7 +115,7 @@ type ext = ..
@since 0.3 added [Align]
@since 0.5 added [Link]
@since 0.11 added [Anchor]
@since NEXT_RELEASE added [Stretch]
@since 0.12 added [Stretch]
*)
type view = private
| Empty
Expand Down Expand Up @@ -192,7 +192,7 @@ val float : float -> t
val frame : ?stretch:bool -> t -> t
(** Put a single frame around the box.
@param stretch if true (default false), the frame expands to
fill the available space. Present since NEXT_RELEASE *)
fill the available space. Present since 0.12 *)

val pad : t -> t
(** Pad the given box with some free space *)
Expand Down Expand Up @@ -330,7 +330,7 @@ val anchor : id:string -> t -> t
val extension : key:string -> ext -> t
(** [extension ~key ext] embeds an extended representation [ext] as a box. [ext] must be
recognized by the used backends as an extension registered under [key].
@since NEXT_RELEASE
@since 0.12
*)

(** {2 Styling combinators} *)
Expand Down
2 changes: 1 addition & 1 deletion src/printbox-text/PrintBox_text.mli
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ val str_display_width : String.t -> int -> int -> int
(** [str_display_width s pos len] computes the width in visible characters
of the string [s] starting at string position [pos] and stopping right before [pos + len].
See {!set_string_len}.
@since NEXT_RELEASE
@since 0.12
*)

0 comments on commit 9e36427

Please sign in to comment.