Compare commits

..
Author SHA1 Message Date
swaits b399080660 chore(glossy): bump version to 0.8.0 2025-04-03 15:24:29 -07:00
27 changed files with 14 additions and 13 deletions

No files matched your search

+2 -2
View File
@@ -10,10 +10,10 @@ Pretty simple. Import `codly`. Initialize it. Import `codly-languages`.
Configure `codly` with the languages. Like this:
```typst
#import "@preview/codly:1.3.0": *
#import "@preview/codly:1.2.0": *
#show: codly-init
#import "@preview/codly-languages:0.1.10": *
#import "@preview/codly-languages:0.1.8": *
#codly(languages: codly-languages)
```
+8 -7
View File
@@ -4,20 +4,21 @@
// To use:
//
// ```typst
// #import "@preview/codly:1.3.0": *
// #import "@preview/codly:1.2.0": *
// #show: codly-init
//
// #import "codly-languages.typ:0.1.10": *
// #import "codly-languages.typ:0.1.8": *
// #codly(languages: codly-languages)
// ```
#let codly-languages = {
// helper function which takes an image filename and creates an icon
let __icon(image-filename) = {
box(
image("icons/" + image-filename, height: 130%, fit: "contain"),
image("icons/" + image-filename, height: 0.9em),
baseline: 0.05em,
inset: 0pt,
outset: 0pt,
)
) + h(0.3em)
}
let __emoji(emoji) = {
@@ -25,7 +26,7 @@
emoji,
inset: 0pt,
outset: 0pt,
)
) + h(0.3em)
}
// configurations for languages
@@ -642,9 +643,9 @@
tsx: (name: "TSX", color: rgb("#007acc"), icon: __icon("typescript.svg")), //Devicons
typescriptreact: (name: "React", color: rgb("#61dafb"), icon: __icon("react.svg")), //Devicons
//Typst
typst: (name: "Typst", color: rgb("#458fa0"), icon: __icon("typst.svg")), //Typst
typst: (name: "Typst", color: rgb("#8b70c3"), icon: __icon("typst.svg")), //Typst
typ: (name: "Typst", color: rgb("#458fa0"), icon: __icon("typst.svg")), //Typst
typc: (name: "Typst", color: rgb("#458fa0"), icon: __icon("typst.svg")), //Typst
typc: (name: "Typst", color: rgb("#8b70c3"), icon: __icon("typst.svg")), //Typst
typm: (name: "Typst", color: rgb("#458fa0"), icon: __icon("typst.svg")), //Typst
//UML
uml: (name: "UML", color: rgb("#452e7f"), icon: __icon("unifiedmodelinglanguage.svg")), //Devicons
Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

@@ -1,4 +1,4 @@
#import "@preview/codly:1.3.0": *
#import "@preview/codly:1.2.0": *
#import "/lib.typ": *
#show: codly-init
#codly(languages: codly-languages)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 254 KiB

Binary file not shown.
+1 -1
View File
@@ -1,5 +1,5 @@
#import "/lib.typ": *
#import "@preview/codly:1.3.0": *
#import "@preview/codly:1.2.0": *
#show: codly-init
#codly(languages: codly-languages)
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "codly-languages"
version = "0.1.10"
version = "0.1.8"
entrypoint = "lib.typ"
authors = ["Stephen Waits <steve@waits.net>"]
license = "MIT"
+1 -1
View File
@@ -4,7 +4,7 @@
RSYNC_OPTS="--archive --delete --itemize-changes --human-readable"
# Set the destination base directory
DEST_DIR="$HOME/Code/typst-packages-fork/packages/preview"
DEST_DIR="$HOME/Code/forks/typst-packages-fork/packages/preview"
# Ensure the destination base directory exists
mkdir -p "$DEST_DIR"