Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [unreleased](https://github.com/wisp3rwind/typst-show-the-frame/releases/tag/<tag>)
# [unreleased](https://github.com/wisp3rwind/typst-scaffolder/releases/tag/<tag>)

## Added

Expand All @@ -9,9 +9,9 @@
## Migration Guide from v0.1.x


# [v0.1.1](https://github.com/wisp3rwind/typst-show-the-frame/releases/tag/v0.1.1)
# [v0.1.1](https://github.com/wisp3rwind/typst-scaffolder/releases/tag/v0.1.1)
- Support all possible `page.margin` specifications


# [v0.1.0](https://github.com/wisp3rwind/typst-show-the-frame/releases/tag/v0.1.0)
# [v0.1.0](https://github.com/wisp3rwind/typst-scaffolder/releases/tag/v0.1.0)
Initial release
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- Create a PR against the typst packages repository
- prepend a new section to the changelog and commit it:
```
# [unreleased](https://github.com/wisp3rwind/typst-show-the-frame/releases/tag/<tag>)
# [unreleased](https://github.com/wisp3rwind/typst-scaffolder/releases/tag/<tag>)

## Added

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Tests](https://github.com/wisp3rwind/typst-show-the-frame/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/wisp3rwind/typst-show-the-frame/actions/workflows/tests.yml)
[![Tests](https://github.com/wisp3rwind/typst-scaffolder/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/wisp3rwind/typst-scaffolder/actions/workflows/tests.yml)

# The `show-the-frame` Package
# The `scaffolder` Package

Show borders around the main text area, header and footer in Typst documents.

Expand All @@ -11,17 +11,17 @@ package.
## Usage

```typst
#import "@preview/show-the-frame:v0.1.1": background
#import "@preview/scaffolder:v0.2.0": scaffolding
#set page(paper: "a6")

#set page(background: background())
#set page(background: scaffolding())

#lorem(100)

#pagebreak()

#set page(
background: background(stroke: blue + 1pt),
background: scaffolding(stroke: blue + 1pt),
columns: 2,
)

Expand Down
6 changes: 3 additions & 3 deletions docs/example-1.typ
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// This is the README example
#import "/src/lib.typ": background
#import "/src/lib.typ": scaffolding
#set page(paper: "a6")

#set page(background: background())
#set page(background: scaffolding())

#lorem(100)

#pagebreak()

#set page(
background: background(stroke: blue + 1pt),
background: scaffolding(stroke: blue + 1pt),
columns: 2,
)

Expand Down
2 changes: 1 addition & 1 deletion src/impl.typ
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
)

// Display lines around the main text area, header and footer.
#let background(
#let scaffolding(
stroke: __default-stroke,
) = context {
let margins = get-page-margins()
Expand Down
2 changes: 1 addition & 1 deletion src/lib.typ
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Only expose a limited number of symbols:
// - the main user-facing function, as well as some helpers that might be useful
// to package authors
#import "impl.typ": background, get-text-dir, get-page-binding, get-page-margins
#import "impl.typ": scaffolding, get-text-dir, get-page-binding, get-page-margins
4 changes: 2 additions & 2 deletions tests/col2/test.typ
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#import "/tests/helper.typ": test-rect
#import "/src/lib.typ": background
#import "/src/lib.typ": scaffolding

#set page(
background: background(),
background: scaffolding(),
footer: test-rect(fill: red),
header: test-rect(fill: green),
paper: "a6",
Expand Down
4 changes: 2 additions & 2 deletions tests/margin-specs/test.typ
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#import "/tests/helper.typ": test-rect
#import "/src/impl.typ": get-page-binding, get-page-margins, get-text-dir
#import "/src/lib.typ": background
#import "/src/lib.typ": scaffolding

#set page(
background: background(),
background: scaffolding(),
// Fill header, footer, ...
footer: test-rect(fill: red),
header: test-rect(fill: green),
Expand Down
4 changes: 2 additions & 2 deletions typst.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "show-the-frame"
name = "scaffolder"
version = "0.1.1"
compiler = "0.12.0"
repository = "https://github.com/wisp3rwind/typst-show-the-frame"
repository = "https://github.com/wisp3rwind/typst-scaffolder"
entrypoint = "src/lib.typ"
authors = [
"wisp3rwind <@wisp3rwind>"
Expand Down