Skip to content

Commit 16cbb71

Browse files
committed
Bump to 2.0.0
1 parent 86a7a94 commit 16cbb71

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# codelst (v1.0.0)
1+
# codelst (v2.0.0)
22

33
**codelst** is a [Typst](https://github.com/typst/typst) package for rendering sourcecode with line numbers and some other additions.
44

@@ -7,13 +7,13 @@
77
Import the package from the typst preview repository:
88

99
```js
10-
#import "@preview/codelst:1.0.0": sourcecode
10+
#import "@preview/codelst:2.0.0": sourcecode
1111
```
1212

1313
After importing the package, simply wrap any fenced code block in a call to `#sourcecode()`:
1414

1515
````js
16-
#import "@preview/codelst:1.0.0": sourcecode
16+
#import "@preview/codelst:2.0.0": sourcecode
1717

1818
#sourcecode[```typ
1919
#show "ArtosFlow": name => box[

example.pdf

11 Bytes
Binary file not shown.

manual.pdf

-57 Bytes
Binary file not shown.

manual.typ

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
subtitle: [A *Typst* package to render source code],
99
authors: "Jonas Neugebauer",
1010
url: "https://github.com/jneug/typst-codelst",
11-
version: "1.0.0",
11+
version: "2.0.0",
1212
date: "2023-07-19",
1313
abstract: [
1414
#package[codelst] is a *Typst* package inspired by LaTeX packages like #package[listings]. It adds functionality to render source code with line numbers, highlighted lines and more.
@@ -44,22 +44,22 @@ See `example.typ`/`example.pdf` for some quick examples how to use CODELST.
4444

4545
For Typst 0.9.0 and later, CODELST can be imported from the preview repository:
4646
#sourcecode(numbering:none)[```typ
47-
#import "@preview/codelst:1.0.0": sourcecode
47+
#import "@preview/codelst:2.0.0": sourcecode
4848
```]
4949

5050
Alternatively, the package can be downloaded and saved into the system dependent local package repository.
5151

5252
Either download the current release from GitHub#footnote[#link("https://github.com/jneug/typst-codelst/releases/latest")] and unpack the archive into your system dependent local repository folder#footnote[#link("https://github.com/typst/packages#local-packages")] or clone it directly:
5353
#codesnippet[
5454
```shell-unix-generic
55-
git clone https://github.com/jneug/typst-codelst.git codelst-1.0.0
55+
git clone https://github.com/jneug/typst-codelst.git codelst-2.0.0
5656
```]
5757

58-
In either case, make sure the files are placed in a folder with the correct version number: `codelst-1.0.0`
58+
In either case, make sure the files are placed in a folder with the correct version number: `codelst-2.0.0`
5959

6060
After installing the package, just import it inside your `typ` file:
6161
#codesnippet[```typ
62-
#import "@local/codelst:1.0.0": sourcecode
62+
#import "@local/codelst:2.0.0": sourcecode
6363
```]
6464

6565
== Use as a module

tbump.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
github_url = "https://github.com/jneug/typst-codelst/"
33

44
[version]
5-
current = "1.0.0"
5+
current = "2.0.0"
66

77
# Example of a semver regexp.
88
# Make sure this matches current_version before

typst.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "codelst"
3-
version = "1.0.0"
3+
version = "2.0.0"
44
entrypoint = "codelst.typ"
55
authors = ["Jonas Neugebauer"]
66
license = "MIT"

0 commit comments

Comments
 (0)