Compare commits
26
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5eee23a59e
|
||
|
|
0a87404a18
|
||
|
|
d2e44f4131
|
||
|
|
7f1d1d711a
|
||
|
|
91de1816e9 | ||
|
|
f4b7cc1374
|
||
|
|
9645626ee5
|
||
|
|
4fdd6e2ccd
|
||
|
|
7c9ab5f046
|
||
|
|
a2a9ad0eed
|
||
|
|
274e9bad2f
|
||
|
|
78c5b8a000
|
||
|
|
53c0206a03
|
||
|
|
3107573ef2
|
||
|
|
6ea69a0ddb
|
||
|
|
6231fe43fb
|
||
|
|
155568c435
|
||
|
|
248c520952
|
||
|
|
adf2ea5021
|
||
|
|
bae9716298
|
||
|
|
86f16a7ac0
|
||
|
|
bf97dcdbab
|
||
|
|
0adcf0bdc0
|
||
|
|
d30225f4e6
|
||
|
|
347d44b5da
|
||
|
|
927c52d402
|
No files matched your search
@@ -7,5 +7,7 @@ tasks:
|
||||
- mirror-to-github: |
|
||||
cd ~/typst-collection
|
||||
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
|
||||
# Explicitly fetch all branches & tags
|
||||
git fetch origin '+refs/heads/*:refs/heads/*' '+refs/tags/*:refs/tags/*' --prune
|
||||
git remote add github git@github.com:swaits/typst-collection.git
|
||||
git push --mirror github
|
||||
@@ -15,6 +15,8 @@ links below to their main page.
|
||||
glossary system with easily customizable output.
|
||||
- [**rfc-vibe**](https://typst.app/universe/package/rfc-vibe): Bring RFC language
|
||||
into everyday docs.
|
||||
- [**swank-tex**](https://typst.app/universe/package/swank-tex): Render those
|
||||
funky logos for TeX, LaTeX, and friends.
|
||||
|
||||
## Templates
|
||||
|
||||
|
||||
File renamed without changes.
File renamed without changes.
@@ -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.0.0": *
|
||||
#import "@preview/codly:1.1.0": *
|
||||
#show: codly-init
|
||||
|
||||
#import "@preview/codly-languages:0.1.0": *
|
||||
#import "@preview/codly-languages:0.1.3": *
|
||||
#codly(languages: codly-languages)
|
||||
```
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -4,7 +4,7 @@
|
||||
// To use:
|
||||
//
|
||||
// ```typst
|
||||
// #import "@preview/codly:1.0.0": *
|
||||
// #import "@preview/codly:1.1.0": *
|
||||
// #show: codly-init
|
||||
//
|
||||
// #import "codly-languages.typ": *
|
||||
@@ -22,8 +22,9 @@
|
||||
}
|
||||
|
||||
// configurations for languages
|
||||
let base-languages = (
|
||||
(
|
||||
aarch64: (name: "Assembly (ARM)", color: rgb("#1b3888"), icon: __icon("aarch64.svg")),
|
||||
arm: (name: "Assembly (ARM)", color: rgb("#1b3888"), icon: __icon("aarch64.svg")),
|
||||
angular: (name: "Angular", color: rgb("#dd0031"), icon: __icon("angular.svg")),
|
||||
ansible: (name: "Ansible", color: rgb("#1a1918"), icon: __icon("ansible.svg")),
|
||||
apache: (name: "Apache", color: rgb("#b7342a"), icon: __icon("apache.svg")),
|
||||
@@ -32,35 +33,51 @@
|
||||
c: (name: "C", color: rgb("#659ad3"), icon: __icon("c.svg")),
|
||||
cairo: (name: "Cairo", color: rgb("#f39914"), icon: __icon("cairo.svg")),
|
||||
clojure: (name: "Clojure", color: rgb("#ffffff"), icon: __icon("clojure.svg")),
|
||||
clj: (name: "Clojure", color: rgb("#ffffff"), icon: __icon("clojure.svg")),
|
||||
clojurescript: (name: "ClojureScript", color: rgb("#96ca4b"), icon: __icon("clojurescript.svg")),
|
||||
cljs: (name: "ClojureScript", color: rgb("#96ca4b"), icon: __icon("clojurescript.svg")),
|
||||
cmake: (name: "CMake", color: rgb("#064f8c"), icon: __icon("cmake.svg")),
|
||||
coffeescript: (name: "CoffeeScript", color: rgb("#28334c"), icon: __icon("coffeescript.svg")),
|
||||
coffee: (name: "CoffeeScript", color: rgb("#28334c"), icon: __icon("coffeescript.svg")),
|
||||
cplusplus: (name: "C++", color: rgb("#00599c"), icon: __icon("cplusplus.svg")),
|
||||
cpp: (name: "C++", color: rgb("#00599c"), icon: __icon("cplusplus.svg")),
|
||||
cxx: (name: "C++", color: rgb("#00599c"), icon: __icon("cplusplus.svg")),
|
||||
crystal: (name: "Crystal", color: rgb("#000000"), icon: __icon("crystal.svg")),
|
||||
csharp: (name: "C#", color: rgb("#9b4f96"), icon: __icon("csharp.svg")),
|
||||
cs: (name: "C#", color: rgb("#9b4f96"), icon: __icon("csharp.svg")),
|
||||
css: (name: "CSS", color: rgb("#1572b6"), icon: __icon("css3.svg")),
|
||||
dart: (name: "Dart", color: rgb("#00c4b3"), icon: __icon("dart.svg")),
|
||||
docker: (name: "Docker", color: rgb("#3a4d54"), icon: __icon("docker.svg")),
|
||||
dockerfile: (name: "Docker", color: rgb("#3a4d54"), icon: __icon("docker.svg")),
|
||||
elixir: (name: "Elixir", color: rgb("#685574"), icon: __icon("elixir.svg")),
|
||||
ex: (name: "Elixir", color: rgb("#685574"), icon: __icon("elixir.svg")),
|
||||
elm: (name: "Elm", color: rgb("#efa500"), icon: __icon("elm.svg")),
|
||||
emacs: (name: "Emacs", color: rgb("#421f5f"), icon: __icon("emacs.svg")),
|
||||
erlang: (name: "Erlang", color: rgb("#a90533"), icon: __icon("erlang.svg")),
|
||||
erl: (name: "Erlang", color: rgb("#a90533"), icon: __icon("erlang.svg")),
|
||||
fortran: (name: "Fortran", color: rgb("#734c94"), icon: __icon("fortran.svg")),
|
||||
fsharp: (name: "F#", color: rgb("#378bba"), icon: __icon("fsharp.svg")),
|
||||
fs: (name: "F#", color: rgb("#378bba"), icon: __icon("fsharp.svg")),
|
||||
git: (name: "Git", color: rgb("#f34f29"), icon: __icon("git.svg")),
|
||||
go: (name: "Go", color: rgb("#f6d2a2"), icon: __icon("go.svg")),
|
||||
golang: (name: "Go", color: rgb("#f6d2a2"), icon: __icon("go.svg")),
|
||||
graphql: (name: "GraphQL", color: rgb("#e434aa"), icon: __icon("graphql.svg")),
|
||||
groovy: (name: "Groovy", color: rgb("#619cbc"), icon: __icon("groovy.svg")),
|
||||
grpc: (name: "gRPC", color: rgb("#3d5a60"), icon: __icon("grpc.svg")),
|
||||
handlebars: (name: "Handlebars", color: rgb("#000000"), icon: __icon("handlebars.svg")),
|
||||
haskell: (name: "Haskell", color: rgb("#463b63"), icon: __icon("haskell.svg")),
|
||||
hs: (name: "Haskell", color: rgb("#463b63"), icon: __icon("haskell.svg")),
|
||||
haxe: (name: "Haxe", color: rgb("#f6b214"), icon: __icon("haxe.svg")),
|
||||
html: (name: "HTML", color: rgb("#e44d26"), icon: __icon("html5.svg")),
|
||||
html5: (name: "HTML", color: rgb("#e44d26"), icon: __icon("html5.svg")),
|
||||
java: (name: "Java", color: rgb("#0074bd"), icon: __icon("java.svg")),
|
||||
javascript: (name: "JavaScript", color: rgb("#f0db4f"), icon: __icon("javascript.svg")),
|
||||
js: (name: "JavaScript", color: rgb("#f0db4f"), icon: __icon("javascript.svg")),
|
||||
json: (name: "JSON", color: rgb("#6d6d6d"), icon: __icon("json.svg")),
|
||||
julia: (name: "Julia", color: rgb("#cb3c33"), icon: __icon("julia.svg")),
|
||||
jl: (name: "Julia", color: rgb("#cb3c33"), icon: __icon("julia.svg")),
|
||||
kotlin: (name: "Kotlin", color: rgb("#5e3cc2"), icon: __icon("kotlin.svg")),
|
||||
kt: (name: "Kotlin", color: rgb("#5e3cc2"), icon: __icon("kotlin.svg")),
|
||||
latex: (name: "LaTeX", color: rgb("#000000"), icon: __icon("latex.svg")),
|
||||
less: (name: "Less", color: rgb("#2a4d80"), icon: __icon("less.svg")),
|
||||
lua: (name: "Lua", color: rgb("#000080"), icon: __icon("lua.svg")),
|
||||
@@ -68,78 +85,73 @@
|
||||
matlab: (name: "Matlab", color: rgb("#4499dd"), icon: __icon("matlab.svg")),
|
||||
mysql: (name: "MySQL", color: rgb("#00618a"), icon: __icon("mysql.svg")),
|
||||
neovim: (name: "Neovim", color: rgb("#517d37"), icon: __icon("neovim.svg")),
|
||||
nvim: (name: "Neovim", color: rgb("#517d37"), icon: __icon("neovim.svg")),
|
||||
nginx: (name: "Nginx", color: rgb("#009900"), icon: __icon("nginx.svg")),
|
||||
nim: (name: "Nim", color: rgb("#f3d400"), icon: __icon("nim.svg")),
|
||||
nix: (name: "Nix", color: rgb("#7ebae4"), icon: __icon("nixos.svg")),
|
||||
nixos: (name: "Nix", color: rgb("#7ebae4"), icon: __icon("nixos.svg")),
|
||||
objectivec: (name: "Objective-C", color: rgb("#0b5a9d"), icon: __icon("objectivec.svg")),
|
||||
objc: (name: "Objective-C", color: rgb("#0b5a9d"), icon: __icon("objectivec.svg")),
|
||||
obj-c: (name: "Objective-C", color: rgb("#0b5a9d"), icon: __icon("objectivec.svg")),
|
||||
ocaml: (name: "OCaml", color: rgb("#484444"), icon: __icon("ocaml.svg")),
|
||||
ml: (name: "OCaml", color: rgb("#484444"), icon: __icon("ocaml.svg")),
|
||||
perl: (name: "Perl", color: rgb("#ffffff"), icon: __icon("perl.svg")),
|
||||
pl: (name: "Perl", color: rgb("#ffffff"), icon: __icon("perl.svg")),
|
||||
php: (name: "PHP", color: rgb("#5c5e8d"), icon: __icon("php.svg")),
|
||||
postgresql: (name: "PostgreSQL", color: rgb("#336791"), icon: __icon("postgresql.svg")),
|
||||
powershell: (name: "PowerShell", color: rgb("#1f2939"), icon: __icon("powershell.svg")),
|
||||
ps1: (name: "PowerShell", color: rgb("#1f2939"), icon: __icon("powershell.svg")),
|
||||
processing: (name: "Processing", color: rgb("#6e8375"), icon: __icon("processing.svg")),
|
||||
prolog: (name: "Prolog", color: rgb("#d6552d"), icon: __icon("prolog.svg")),
|
||||
purescript: (name: "PureScript", color: rgb("#111419"), icon: __icon("purescript.svg")),
|
||||
python: (name: "Python", color: rgb("#efda54"), icon: __icon("python.svg")),
|
||||
py: (name: "Python", color: rgb("#efda54"), icon: __icon("python.svg")),
|
||||
r: (name: "R", color: rgb("#284a8e"), icon: __icon("r.svg")),
|
||||
rails: (name: "Rails", color: rgb("#cc0000"), icon: __icon("rails.svg")),
|
||||
ruby: (name: "Ruby", color: rgb("#742013"), icon: __icon("ruby.svg")),
|
||||
rb: (name: "Ruby", color: rgb("#742013"), icon: __icon("ruby.svg")),
|
||||
rust: (name: "Rust", color: rgb("#de5420"), icon: __icon("rust.svg")),
|
||||
rs: (name: "Rust", color: rgb("#de5420"), icon: __icon("rust.svg")),
|
||||
sass: (name: "SCSS/Sass", color: rgb("#cb6699"), icon: __icon("sass.svg")),
|
||||
scss: (name: "SCSS/Sass", color: rgb("#cb6699"), icon: __icon("sass.svg")),
|
||||
scala: (name: "Scala", color: rgb("#390d09"), icon: __icon("scala.svg")),
|
||||
sc: (name: "Scala", color: rgb("#390d09"), icon: __icon("scala.svg")),
|
||||
shellscript: (name: "Shell", color: rgb("#293138"), icon: __icon("bash.svg")),
|
||||
bash: (name: "Shell", color: rgb("#293138"), icon: __icon("bash.svg")),
|
||||
sh: (name: "Shell", color: rgb("#293138"), icon: __icon("bash.svg")),
|
||||
shell: (name: "Shell", color: rgb("#293138"), icon: __icon("bash.svg")),
|
||||
solidity: (name: "Solidity", color: rgb("#000000"), icon: __icon("solidity.svg")),
|
||||
sol: (name: "Solidity", color: rgb("#000000"), icon: __icon("solidity.svg")),
|
||||
sql: (name: "SQL", color: rgb("#f2f2f2"), icon: __icon("sql.svg")),
|
||||
sqlite: (name: "SQLite", color: rgb("#0b7fcc"), icon: __icon("sqlite.svg")),
|
||||
ssh-config: (name: "SSH", color: rgb("#231f20"), icon: __icon("ssh.svg")),
|
||||
ssh: (name: "SSH", color: rgb("#231f20"), icon: __icon("ssh.svg")),
|
||||
stylus: (name: "Stylus", color: rgb("#333333"), icon: __icon("stylus.svg")),
|
||||
styl: (name: "Stylus", color: rgb("#333333"), icon: __icon("stylus.svg")),
|
||||
svelte: (name: "Svelte", color: rgb("#ff3e00"), icon: __icon("svelte.svg")),
|
||||
swift: (name: "Swift", color: rgb("#f05138"), icon: __icon("swift.svg")),
|
||||
terraform: (name: "Terraform", color: rgb("#5c4ee5"), icon: __icon("terraform.svg")),
|
||||
tf: (name: "Terraform", color: rgb("#5c4ee5"), icon: __icon("terraform.svg")),
|
||||
tex: (name: "TeX", color: rgb("#000000"), icon: __icon("tex.svg")),
|
||||
text: (name: "Text", color: rgb("#4579F9"), icon: __icon("text.svg")),
|
||||
txt: (name: "Text", color: rgb("#4579F9"), icon: __icon("text.svg")),
|
||||
typescript: (name: "TypeScript", color: rgb("#ffffff"), icon: __icon("typescript.svg")),
|
||||
ts: (name: "TypeScript", color: rgb("#ffffff"), icon: __icon("typescript.svg")),
|
||||
typst: (name: "Typst", color: rgb("#458fa0"), icon: __icon("typst-small.png")),
|
||||
typ: (name: "Typst", color: rgb("#458fa0"), icon: __icon("typst-small.png")),
|
||||
typc: (name: "Typst", color: rgb("#458fa0"), icon: __icon("typst-small.png")),
|
||||
typm: (name: "Typst", color: rgb("#458fa0"), icon: __icon("typst-small.png")),
|
||||
uml: (name: "UML", color: rgb("#fbbd16"), icon: __icon("unifiedmodelinglanguage.svg")),
|
||||
vala: (name: "Vala", color: rgb("#6034a5"), icon: __icon("vala.svg")),
|
||||
vim: (name: "Vim", color: rgb("#019833"), icon: __icon("vim.svg")),
|
||||
vimscript: (name: "Vim", color: rgb("#019833"), icon: __icon("vim.svg")),
|
||||
visualbasic: (name: "Visual Basic", color: rgb("#004e8c"), icon: __icon("visualbasic.svg")),
|
||||
vb: (name: "Visual Basic", color: rgb("#004e8c"), icon: __icon("visualbasic.svg")),
|
||||
vyper: (name: "Vyper", color: rgb("#000000"), icon: __icon("vyper.svg")),
|
||||
wasm: (name: "WASM", color: rgb("#654ff0"), icon: __icon("wasm.svg")),
|
||||
xml: (name: "XML", color: rgb("#ae007f"), icon: __icon("xml.svg")),
|
||||
yaml: (name: "YAML", color: rgb("#cb171e"), icon: __icon("yaml.svg")),
|
||||
yml: (name: "YAML", color: rgb("#cb171e"), icon: __icon("yaml.svg")),
|
||||
zig: (name: "Zig", color: rgb("#f7a41d"), icon: __icon("zig.svg")),
|
||||
)
|
||||
|
||||
// add aliases for our languages (e.g. so both "```typ" and "```typst" work)
|
||||
let aliases = (
|
||||
aarch64: ("arm"),
|
||||
coffeescript: ("coffee"),
|
||||
cplusplus: ("cpp", "cxx", "c++"),
|
||||
csharp: ("cs", "c#"),
|
||||
docker: ("dockerfile"),
|
||||
fsharp: ("fs", "f#"),
|
||||
go: ("golang"),
|
||||
neovim: ("nvim"),
|
||||
objectivec: ("objc", "obj-c"),
|
||||
powershell: ("ps1"),
|
||||
ruby: ("rb"),
|
||||
rust: ("rs"),
|
||||
sass: ("scss"),
|
||||
shellscript: ("bash", "shell"),
|
||||
ssh-config: ("ssh"),
|
||||
typescript: ("ts"),
|
||||
typst: ("typ", "typc", "typm"),
|
||||
text: ("txt"),
|
||||
vim: ("vimscript"),
|
||||
visualbasic: ("vb"),
|
||||
)
|
||||
for (lang, aliases) in aliases {
|
||||
for alias in aliases {
|
||||
base-languages.insert(alias, base-languages.at(lang))
|
||||
}
|
||||
}
|
||||
|
||||
// finished
|
||||
base-languages
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 254 KiB |
@@ -0,0 +1,71 @@
|
||||
#import "/lib.typ": *
|
||||
#import "@preview/codly:1.1.0": *
|
||||
#show: codly-init
|
||||
#codly(languages: codly-languages)
|
||||
|
||||
```python
|
||||
print("Hello, World!")
|
||||
```
|
||||
|
||||
```java
|
||||
public class HelloWorld {
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello, World!");
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
```js
|
||||
console.log("Hello, World!");
|
||||
```
|
||||
|
||||
```cpp
|
||||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
std::cout << "Hello, World!" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
```
|
||||
|
||||
```rust
|
||||
fn main() {
|
||||
println!("Hello, World!");
|
||||
}
|
||||
```
|
||||
|
||||
```cs
|
||||
using System;
|
||||
|
||||
class Program {
|
||||
static void Main() {
|
||||
Console.WriteLine("Hello, World!");
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
fmt.Println("Hello, World!")
|
||||
}
|
||||
```
|
||||
|
||||
```swift
|
||||
print("Hello, World!")
|
||||
```
|
||||
|
||||
```php
|
||||
<?php
|
||||
echo "Hello, World!";
|
||||
?>
|
||||
```
|
||||
|
||||
```kotlin
|
||||
fun main() {
|
||||
println("Hello, World!")
|
||||
}
|
||||
```
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 76 KiB |
@@ -0,0 +1,160 @@
|
||||
#import "/lib.typ": *
|
||||
|
||||
#let base-languages = (
|
||||
"aarch64",
|
||||
"angular",
|
||||
"ansible",
|
||||
"apache",
|
||||
"apl",
|
||||
"awk",
|
||||
"bash",
|
||||
"c",
|
||||
"cairo",
|
||||
"clojure",
|
||||
"clojurescript",
|
||||
"cmake",
|
||||
"coffeescript",
|
||||
"cplusplus",
|
||||
"crystal",
|
||||
"csharp",
|
||||
"css",
|
||||
"dart",
|
||||
"docker",
|
||||
"elixir",
|
||||
"elm",
|
||||
"emacs",
|
||||
"erlang",
|
||||
"fortran",
|
||||
"fsharp",
|
||||
"git",
|
||||
"go",
|
||||
"graphql",
|
||||
"groovy",
|
||||
"grpc",
|
||||
"handlebars",
|
||||
"haskell",
|
||||
"haxe",
|
||||
"html",
|
||||
"java",
|
||||
"javascript",
|
||||
"json",
|
||||
"julia",
|
||||
"kotlin",
|
||||
"latex",
|
||||
"less",
|
||||
"lua",
|
||||
"markdown",
|
||||
"matlab",
|
||||
"mysql",
|
||||
"neovim",
|
||||
"nginx",
|
||||
"nim",
|
||||
"nix",
|
||||
"objectivec",
|
||||
"ocaml",
|
||||
"perl",
|
||||
"php",
|
||||
"postgresql",
|
||||
"powershell",
|
||||
"processing",
|
||||
"prolog",
|
||||
"purescript",
|
||||
"python",
|
||||
"r",
|
||||
"rails",
|
||||
"ruby",
|
||||
"rust",
|
||||
"sass",
|
||||
"scala",
|
||||
"solidity",
|
||||
"sql",
|
||||
"sqlite",
|
||||
"ssh-config",
|
||||
"stylus",
|
||||
"svelte",
|
||||
"swift",
|
||||
"terraform",
|
||||
"tex",
|
||||
"text",
|
||||
"typescript",
|
||||
"typst",
|
||||
"uml",
|
||||
"vala",
|
||||
"vim",
|
||||
"visualbasic",
|
||||
"vyper",
|
||||
"wasm",
|
||||
"xml",
|
||||
"yaml",
|
||||
"zig",
|
||||
)
|
||||
|
||||
#for lang in base-languages {
|
||||
if lang not in codly-languages.keys() {
|
||||
panic("warning: language " + lang + " not found in codly-languages")
|
||||
}
|
||||
}
|
||||
|
||||
Found all base languages!
|
||||
|
||||
|
||||
#let aliases = (
|
||||
"arm",
|
||||
"bash",
|
||||
"clj",
|
||||
"cljs",
|
||||
"coffee",
|
||||
"cpp",
|
||||
"cs",
|
||||
"cxx",
|
||||
"dockerfile",
|
||||
"erl",
|
||||
"ex",
|
||||
"fs",
|
||||
"golang",
|
||||
"hs",
|
||||
"html5",
|
||||
"jl",
|
||||
"js",
|
||||
"kt",
|
||||
"ml",
|
||||
"nixos",
|
||||
"nvim",
|
||||
"obj-c",
|
||||
"objc",
|
||||
"pl",
|
||||
"ps1",
|
||||
"py",
|
||||
"rb",
|
||||
"rs",
|
||||
"sc",
|
||||
"scss",
|
||||
"sh",
|
||||
"shell",
|
||||
"sol",
|
||||
"ssh",
|
||||
"styl",
|
||||
"tf",
|
||||
"ts",
|
||||
"txt",
|
||||
"typ",
|
||||
"typc",
|
||||
"typm",
|
||||
"vb",
|
||||
"vimscript",
|
||||
"yml"
|
||||
)
|
||||
|
||||
#for lang in aliases {
|
||||
if lang not in codly-languages.keys() {
|
||||
panic("error: language " + lang + " not found in codly-languages")
|
||||
}
|
||||
}
|
||||
|
||||
Found all language aliases!
|
||||
|
||||
#if codly-languages.keys().len() != base-languages.len() + aliases.len() {
|
||||
panic("error: language count is incorrect")
|
||||
}
|
||||
|
||||
Language key count matches: #codly-languages.keys().len() keys.
|
||||
File renamed without changes.
@@ -1,10 +1,10 @@
|
||||
[package]
|
||||
name = "codly-languages"
|
||||
version = "0.1.0"
|
||||
version = "0.1.3"
|
||||
entrypoint = "lib.typ"
|
||||
authors = ["Stephen Waits <steve@waits.net>"]
|
||||
license = "MIT"
|
||||
description = "A set of language configurations for use with codly"
|
||||
keywords = [ "code", "languages", "template", "raw" ]
|
||||
keywords = ["code", "languages", "template", "raw"]
|
||||
repository = "https://github.com/swaits/typst-collection"
|
||||
exclude = ["thumbnail.png"]
|
||||
exclude = ["thumbnail.png", "tests"]
|
||||
File renamed without changes.
File renamed without changes.
Loaded 100 of 246 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user