diff --git a/packages/preview/codly-languages/0.1.5/.gitignore b/packages/preview/codly-languages/0.1.5/.gitignore new file mode 100644 index 000000000..f1ca904a0 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/.gitignore @@ -0,0 +1,2 @@ +tests/**/out/ +tests/**/diff/ diff --git a/packages/preview/codly-languages/0.1.5/LICENSE b/packages/preview/codly-languages/0.1.5/LICENSE new file mode 100644 index 000000000..a4ad6f147 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 Stephen Waits + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/preview/codly-languages/0.1.5/README.md b/packages/preview/codly-languages/0.1.5/README.md new file mode 100644 index 000000000..ee93de220 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/README.md @@ -0,0 +1,55 @@ +# `codly-languages` - Language configurations for `codly` + +Provides a set of predefined language configurations for use with the `codly` +code listing package. For each supported language, this package defines a +name, icon, and color to use when displaying code. + +## Usage + +Pretty simple. Import `codly`. Initialize it. Import `codly-languages`. +Configure `codly` with the languages. Like this: + +```typst +#import "@preview/codly:1.1.1": * +#show: codly-init + +#import "@preview/codly-languages:0.1.5": * +#codly(languages: codly-languages) +``` + +Then use code blocks as you normally would and the output, for supported +languages, should look like this: + +![Example code listings](thumbnail.png) + +## Contributing + +Some languages are still missing. All contributions welcome. + +## Icon Attribution + +| **Icon** | **Source** | **License** | +| ----------------- | ---------------------------------------- | ---------------------------- | +| `css3.svg` | [CSS-Next/logo.css][css3-source] | [CC0][css3-license] | +| `cuda.svg` | [vscode-icons/vscode-icons][cuda-source] | [MIT][cuda-license] | +| `lisp.svg` | [Wikipedia (User:Jooja)][lisp-source] | [CC BY-SA 4.0][lisp-license] | +| `typst-small.png` | [Dherse/codly][typst-source] | [MIT][typst-license] | + +[css3-source]: https://github.com/CSS-Next/logo.css/blob/main/css.svg?short_path=c59d4da +[css3-license]: https://github.com/CSS-Next/logo.css/blob/main/LICENSE +[cuda-source]: https://github.com/vscode-icons/vscode-icons/tree/master +[cuda-license]: https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE +[lisp-source]: https://commons.wikimedia.org/wiki/File:Lisp_logo.svg +[lisp-license]: https://commons.wikimedia.org/wiki/File:Lisp_logo.svg#Licensing +[typst-source]: https://github.com/Dherse/codly +[typst-license]: https://github.com/Dherse/codly/blob/main/LICENSE + +All icons not listed in this table come from the +[devicons/devicon][default-source] project, [MIT licensed][default-license]. + +[default-source]: https://github.com/devicons/devicon/ +[default-license]: https://github.com/devicons/devicon/blob/master/LICENSE + +## License + +This package is released under the [MIT License](LICENSE). diff --git a/packages/preview/codly-languages/0.1.5/icons/aarch64.svg b/packages/preview/codly-languages/0.1.5/icons/aarch64.svg new file mode 100644 index 000000000..94eb2fd90 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/aarch64.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + diff --git a/packages/preview/codly-languages/0.1.5/icons/angular.svg b/packages/preview/codly-languages/0.1.5/icons/angular.svg new file mode 100644 index 000000000..0b1a7527a --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/angular.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/packages/preview/codly-languages/0.1.5/icons/ansible.svg b/packages/preview/codly-languages/0.1.5/icons/ansible.svg new file mode 100644 index 000000000..ef2ba5f0b --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/ansible.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/apache.svg b/packages/preview/codly-languages/0.1.5/icons/apache.svg new file mode 100644 index 000000000..4c7f7041a --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/apache.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/apl.svg b/packages/preview/codly-languages/0.1.5/icons/apl.svg new file mode 100644 index 000000000..2114295df --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/apl.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/awk.svg b/packages/preview/codly-languages/0.1.5/icons/awk.svg new file mode 100644 index 000000000..b16968bac --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/awk.svg @@ -0,0 +1,2 @@ + +file_type_awk \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/bash.svg b/packages/preview/codly-languages/0.1.5/icons/bash.svg new file mode 100644 index 000000000..4cbbc9e6c --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/bash.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/c.svg b/packages/preview/codly-languages/0.1.5/icons/c.svg new file mode 100644 index 000000000..d0841f2e6 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/cairo.svg b/packages/preview/codly-languages/0.1.5/icons/cairo.svg new file mode 100644 index 000000000..56cc3bda7 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/cairo.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/clojure.svg b/packages/preview/codly-languages/0.1.5/icons/clojure.svg new file mode 100644 index 000000000..63abd2e6c --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/clojure.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/clojurescript.svg b/packages/preview/codly-languages/0.1.5/icons/clojurescript.svg new file mode 100644 index 000000000..428214d3b --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/clojurescript.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/cmake.svg b/packages/preview/codly-languages/0.1.5/icons/cmake.svg new file mode 100644 index 000000000..0c1ab97bf --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/cmake.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/coffeescript.svg b/packages/preview/codly-languages/0.1.5/icons/coffeescript.svg new file mode 100644 index 000000000..9e2fe7e58 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/coffeescript.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/cplusplus.svg b/packages/preview/codly-languages/0.1.5/icons/cplusplus.svg new file mode 100644 index 000000000..6cae2226d --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/cplusplus.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/packages/preview/codly-languages/0.1.5/icons/crystal.svg b/packages/preview/codly-languages/0.1.5/icons/crystal.svg new file mode 100644 index 000000000..732455af2 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/crystal.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/csharp.svg b/packages/preview/codly-languages/0.1.5/icons/csharp.svg new file mode 100644 index 000000000..acc487eb5 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/csharp.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/css3.svg b/packages/preview/codly-languages/0.1.5/icons/css3.svg new file mode 100644 index 000000000..c53accda0 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/css3.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/packages/preview/codly-languages/0.1.5/icons/cuda.svg b/packages/preview/codly-languages/0.1.5/icons/cuda.svg new file mode 100644 index 000000000..06f1103e1 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/cuda.svg @@ -0,0 +1 @@ +file_type_cuda \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/dart.svg b/packages/preview/codly-languages/0.1.5/icons/dart.svg new file mode 100644 index 000000000..8c78fdb26 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/dart.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/docker.svg b/packages/preview/codly-languages/0.1.5/icons/docker.svg new file mode 100644 index 000000000..bbeaed2ef --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/docker.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/elixir.svg b/packages/preview/codly-languages/0.1.5/icons/elixir.svg new file mode 100644 index 000000000..a38b8525f --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/elixir.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/elm.svg b/packages/preview/codly-languages/0.1.5/icons/elm.svg new file mode 100644 index 000000000..b875576d9 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/elm.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/emacs.svg b/packages/preview/codly-languages/0.1.5/icons/emacs.svg new file mode 100644 index 000000000..eb61b10a2 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/emacs.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/packages/preview/codly-languages/0.1.5/icons/erlang.svg b/packages/preview/codly-languages/0.1.5/icons/erlang.svg new file mode 100644 index 000000000..08909d02e --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/erlang.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/fortran.svg b/packages/preview/codly-languages/0.1.5/icons/fortran.svg new file mode 100644 index 000000000..f9cc8de76 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/fortran.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/preview/codly-languages/0.1.5/icons/fsharp.svg b/packages/preview/codly-languages/0.1.5/icons/fsharp.svg new file mode 100644 index 000000000..9aadcc362 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/fsharp.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/git.svg b/packages/preview/codly-languages/0.1.5/icons/git.svg new file mode 100644 index 000000000..93f25f923 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/git.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/go.svg b/packages/preview/codly-languages/0.1.5/icons/go.svg new file mode 100644 index 000000000..433778040 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/go.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/graphql.svg b/packages/preview/codly-languages/0.1.5/icons/graphql.svg new file mode 100644 index 000000000..3265b7185 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/graphql.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/groovy.svg b/packages/preview/codly-languages/0.1.5/icons/groovy.svg new file mode 100644 index 000000000..fcdcb1cf3 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/groovy.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/grpc.svg b/packages/preview/codly-languages/0.1.5/icons/grpc.svg new file mode 100644 index 000000000..4e0ab99c1 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/grpc.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/handlebars.svg b/packages/preview/codly-languages/0.1.5/icons/handlebars.svg new file mode 100644 index 000000000..220788af8 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/handlebars.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/haskell.svg b/packages/preview/codly-languages/0.1.5/icons/haskell.svg new file mode 100644 index 000000000..d3cc31129 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/haskell.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/haxe.svg b/packages/preview/codly-languages/0.1.5/icons/haxe.svg new file mode 100644 index 000000000..2bd2e6300 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/haxe.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/html5.svg b/packages/preview/codly-languages/0.1.5/icons/html5.svg new file mode 100644 index 000000000..c2dda3a42 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/html5.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/java.svg b/packages/preview/codly-languages/0.1.5/icons/java.svg new file mode 100644 index 000000000..051bf254a --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/java.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/javascript.svg b/packages/preview/codly-languages/0.1.5/icons/javascript.svg new file mode 100644 index 000000000..7975261bd --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/javascript.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/json.svg b/packages/preview/codly-languages/0.1.5/icons/json.svg new file mode 100644 index 000000000..90bb4d37b --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/json.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/julia.svg b/packages/preview/codly-languages/0.1.5/icons/julia.svg new file mode 100644 index 000000000..121d20bd4 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/julia.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/kotlin.svg b/packages/preview/codly-languages/0.1.5/icons/kotlin.svg new file mode 100644 index 000000000..1b8d8f462 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/kotlin.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/packages/preview/codly-languages/0.1.5/icons/latex.svg b/packages/preview/codly-languages/0.1.5/icons/latex.svg new file mode 100644 index 000000000..df152c6b9 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/latex.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/less.svg b/packages/preview/codly-languages/0.1.5/icons/less.svg new file mode 100644 index 000000000..ea6bf9007 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/less.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/lisp.svg b/packages/preview/codly-languages/0.1.5/icons/lisp.svg new file mode 100644 index 000000000..dd1b2497f --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/lisp.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/packages/preview/codly-languages/0.1.5/icons/lua.svg b/packages/preview/codly-languages/0.1.5/icons/lua.svg new file mode 100644 index 000000000..6b7ea4b08 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/lua.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/markdown.svg b/packages/preview/codly-languages/0.1.5/icons/markdown.svg new file mode 100644 index 000000000..0d0a31f62 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/markdown.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/matlab.svg b/packages/preview/codly-languages/0.1.5/icons/matlab.svg new file mode 100644 index 000000000..0eb7d2025 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/matlab.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/mysql.svg b/packages/preview/codly-languages/0.1.5/icons/mysql.svg new file mode 100644 index 000000000..207170c11 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/mysql.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/neovim.svg b/packages/preview/codly-languages/0.1.5/icons/neovim.svg new file mode 100644 index 000000000..4c3d4047f --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/neovim.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/nginx.svg b/packages/preview/codly-languages/0.1.5/icons/nginx.svg new file mode 100644 index 000000000..e8e8cdb10 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/nginx.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/nim.svg b/packages/preview/codly-languages/0.1.5/icons/nim.svg new file mode 100644 index 000000000..678c15f18 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/nim.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/nixos.svg b/packages/preview/codly-languages/0.1.5/icons/nixos.svg new file mode 100644 index 000000000..fb26b8093 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/nixos.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/objectivec.svg b/packages/preview/codly-languages/0.1.5/icons/objectivec.svg new file mode 100644 index 000000000..7e3ed4f18 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/objectivec.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/ocaml.svg b/packages/preview/codly-languages/0.1.5/icons/ocaml.svg new file mode 100644 index 000000000..7a020aa92 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/ocaml.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/perl.svg b/packages/preview/codly-languages/0.1.5/icons/perl.svg new file mode 100644 index 000000000..49f367388 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/perl.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/php.svg b/packages/preview/codly-languages/0.1.5/icons/php.svg new file mode 100644 index 000000000..32b7a5b44 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/php.svg @@ -0,0 +1,2 @@ + + diff --git a/packages/preview/codly-languages/0.1.5/icons/postgresql.svg b/packages/preview/codly-languages/0.1.5/icons/postgresql.svg new file mode 100644 index 000000000..4656cb79a --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/postgresql.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/powershell.svg b/packages/preview/codly-languages/0.1.5/icons/powershell.svg new file mode 100644 index 000000000..f3daf0fcb --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/powershell.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/processing.svg b/packages/preview/codly-languages/0.1.5/icons/processing.svg new file mode 100644 index 000000000..1c2595982 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/processing.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/prolog.svg b/packages/preview/codly-languages/0.1.5/icons/prolog.svg new file mode 100644 index 000000000..5a70b98e1 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/prolog.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/purescript.svg b/packages/preview/codly-languages/0.1.5/icons/purescript.svg new file mode 100644 index 000000000..ad99a375b --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/purescript.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/preview/codly-languages/0.1.5/icons/python.svg b/packages/preview/codly-languages/0.1.5/icons/python.svg new file mode 100644 index 000000000..e0e096a24 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/python.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/r.svg b/packages/preview/codly-languages/0.1.5/icons/r.svg new file mode 100644 index 000000000..970da725a --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/r.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/rails.svg b/packages/preview/codly-languages/0.1.5/icons/rails.svg new file mode 100644 index 000000000..a1ca50967 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/rails.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/ruby.svg b/packages/preview/codly-languages/0.1.5/icons/ruby.svg new file mode 100644 index 000000000..9c651106b --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/ruby.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/rust.svg b/packages/preview/codly-languages/0.1.5/icons/rust.svg new file mode 100644 index 000000000..3f2c9b0ac --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/rust.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/sass.svg b/packages/preview/codly-languages/0.1.5/icons/sass.svg new file mode 100644 index 000000000..4ca44ff6d --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/sass.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/scala.svg b/packages/preview/codly-languages/0.1.5/icons/scala.svg new file mode 100644 index 000000000..6d3fd54a0 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/scala.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/solidity.svg b/packages/preview/codly-languages/0.1.5/icons/solidity.svg new file mode 100644 index 000000000..9bcc1c345 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/solidity.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/sql.svg b/packages/preview/codly-languages/0.1.5/icons/sql.svg new file mode 100644 index 000000000..4cfff465d --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/sql.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/preview/codly-languages/0.1.5/icons/sqlite.svg b/packages/preview/codly-languages/0.1.5/icons/sqlite.svg new file mode 100644 index 000000000..0e99ba292 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/sqlite.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/ssh.svg b/packages/preview/codly-languages/0.1.5/icons/ssh.svg new file mode 100644 index 000000000..1a8f51f77 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/ssh.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/stylus.svg b/packages/preview/codly-languages/0.1.5/icons/stylus.svg new file mode 100644 index 000000000..0e0b2329f --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/stylus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/svelte.svg b/packages/preview/codly-languages/0.1.5/icons/svelte.svg new file mode 100644 index 000000000..9f52cb7e9 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/svelte.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/swift.svg b/packages/preview/codly-languages/0.1.5/icons/swift.svg new file mode 100644 index 000000000..68630abe0 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/swift.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/terraform.svg b/packages/preview/codly-languages/0.1.5/icons/terraform.svg new file mode 100644 index 000000000..6a17e8680 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/terraform.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/tex.svg b/packages/preview/codly-languages/0.1.5/icons/tex.svg new file mode 100644 index 000000000..66ac65b01 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/tex.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/text.svg b/packages/preview/codly-languages/0.1.5/icons/text.svg new file mode 100644 index 000000000..131ecc981 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/text.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/typescript.svg b/packages/preview/codly-languages/0.1.5/icons/typescript.svg new file mode 100644 index 000000000..e1db5f196 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/typescript.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/typst-small.png b/packages/preview/codly-languages/0.1.5/icons/typst-small.png new file mode 100644 index 000000000..24edfbab1 Binary files /dev/null and b/packages/preview/codly-languages/0.1.5/icons/typst-small.png differ diff --git a/packages/preview/codly-languages/0.1.5/icons/unifiedmodelinglanguage.svg b/packages/preview/codly-languages/0.1.5/icons/unifiedmodelinglanguage.svg new file mode 100644 index 000000000..c234a84ca --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/unifiedmodelinglanguage.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/packages/preview/codly-languages/0.1.5/icons/vala.svg b/packages/preview/codly-languages/0.1.5/icons/vala.svg new file mode 100644 index 000000000..afd6bab28 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/vala.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/vim.svg b/packages/preview/codly-languages/0.1.5/icons/vim.svg new file mode 100644 index 000000000..8cda94ea1 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/vim.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/visualbasic.svg b/packages/preview/codly-languages/0.1.5/icons/visualbasic.svg new file mode 100644 index 000000000..f10686a58 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/visualbasic.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/vyper.svg b/packages/preview/codly-languages/0.1.5/icons/vyper.svg new file mode 100644 index 000000000..44e65124f --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/vyper.svg @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/wasm.svg b/packages/preview/codly-languages/0.1.5/icons/wasm.svg new file mode 100644 index 000000000..ee6834914 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/wasm.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/xml.svg b/packages/preview/codly-languages/0.1.5/icons/xml.svg new file mode 100644 index 000000000..bb16105b4 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/xml.svg @@ -0,0 +1 @@ + diff --git a/packages/preview/codly-languages/0.1.5/icons/yaml.svg b/packages/preview/codly-languages/0.1.5/icons/yaml.svg new file mode 100644 index 000000000..56618856d --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/yaml.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/icons/zig.svg b/packages/preview/codly-languages/0.1.5/icons/zig.svg new file mode 100644 index 000000000..6d81a00ef --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/icons/zig.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/preview/codly-languages/0.1.5/lib.typ b/packages/preview/codly-languages/0.1.5/lib.typ new file mode 100644 index 000000000..eff5327f3 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/lib.typ @@ -0,0 +1,160 @@ +// The only export is this function which returns a dictionary of languages with +// all fields required by `codly`. +// +// To use: +// +// ```typst +// #import "@preview/codly:1.1.1": * +// #show: codly-init +// +// #import "codly-languages.typ": * +// #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: 0.9em), + baseline: 0.05em, + inset: 0pt, + outset: 0pt, + ) + h(0.3em) + } + + // configurations for 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")), + apl: (name: "APL", color: rgb("#24a148"), icon: __icon("apl.svg")), + awk: (name: "Awk", color: rgb("#0a094d"), icon: __icon("awk.svg")), + 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")), + cuda: (name: "CUDA", color: rgb("#80bc00"), icon: __icon("cuda.svg")), + cu: (name: "CUDA", color: rgb("#80bc00"), icon: __icon("cuda.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")), + lisp: (name: "Lisp", color: rgb("#3FBF3F"), icon: __icon("lisp.svg")), + lua: (name: "Lua", color: rgb("#000080"), icon: __icon("lua.svg")), + markdown: (name: "Markdown", color: rgb("#000000"), icon: __icon("markdown.svg")), + 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")), + ) +} diff --git a/packages/preview/codly-languages/0.1.5/tests/basic-output/ref/1.png b/packages/preview/codly-languages/0.1.5/tests/basic-output/ref/1.png new file mode 100644 index 000000000..cae742a60 Binary files /dev/null and b/packages/preview/codly-languages/0.1.5/tests/basic-output/ref/1.png differ diff --git a/packages/preview/codly-languages/0.1.5/tests/basic-output/test.typ b/packages/preview/codly-languages/0.1.5/tests/basic-output/test.typ new file mode 100644 index 000000000..a1c330c6d --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/tests/basic-output/test.typ @@ -0,0 +1,71 @@ +#import "/lib.typ": * +#import "@preview/codly:1.1.1": * +#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 + +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 + +``` + +```kotlin +fun main() { + println("Hello, World!") +} +``` diff --git a/packages/preview/codly-languages/0.1.5/tests/data-check/ref/1.png b/packages/preview/codly-languages/0.1.5/tests/data-check/ref/1.png new file mode 100644 index 000000000..220caf25f Binary files /dev/null and b/packages/preview/codly-languages/0.1.5/tests/data-check/ref/1.png differ diff --git a/packages/preview/codly-languages/0.1.5/tests/data-check/test.typ b/packages/preview/codly-languages/0.1.5/tests/data-check/test.typ new file mode 100644 index 000000000..c98e79460 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/tests/data-check/test.typ @@ -0,0 +1,163 @@ +#import "/lib.typ": * + +#let base-languages = ( + "aarch64", + "angular", + "ansible", + "apache", + "apl", + "awk", + "bash", + "c", + "cairo", + "clojure", + "clojurescript", + "cmake", + "coffeescript", + "cplusplus", + "crystal", + "csharp", + "css", + "cuda", + "dart", + "docker", + "elixir", + "elm", + "emacs", + "erlang", + "fortran", + "fsharp", + "git", + "go", + "graphql", + "groovy", + "grpc", + "handlebars", + "haskell", + "haxe", + "html", + "java", + "javascript", + "json", + "julia", + "kotlin", + "latex", + "less", + "lisp", + "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", + "cu", + "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. diff --git a/packages/preview/codly-languages/0.1.5/thumbnail.png b/packages/preview/codly-languages/0.1.5/thumbnail.png new file mode 100644 index 000000000..c3470ae3c Binary files /dev/null and b/packages/preview/codly-languages/0.1.5/thumbnail.png differ diff --git a/packages/preview/codly-languages/0.1.5/typst.toml b/packages/preview/codly-languages/0.1.5/typst.toml new file mode 100644 index 000000000..1d211d3d3 --- /dev/null +++ b/packages/preview/codly-languages/0.1.5/typst.toml @@ -0,0 +1,10 @@ +[package] +name = "codly-languages" +version = "0.1.5" +entrypoint = "lib.typ" +authors = ["Stephen Waits "] +license = "MIT" +description = "A set of language configurations for use with codly" +keywords = ["code", "languages", "template", "raw"] +repository = "https://github.com/swaits/typst-collection" +exclude = ["thumbnail.png", "tests"]