{"id":20064134,"url":"https://github.com/i10416/petit","last_synced_at":"2026-05-24T16:35:44.665Z","repository":{"id":38039900,"uuid":"450090747","full_name":"i10416/petit","owner":"i10416","description":"simple Laika theme for website","archived":false,"fork":false,"pushed_at":"2023-02-06T12:21:35.000Z","size":250,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-12T22:43:54.391Z","etag":null,"topics":["laika","scala","ssg","web"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/i10416.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-20T12:35:56.000Z","updated_at":"2023-11-20T10:43:51.000Z","dependencies_parsed_at":"2023-02-18T22:15:35.106Z","dependency_job_id":null,"html_url":"https://github.com/i10416/petit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i10416%2Fpetit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i10416%2Fpetit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i10416%2Fpetit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i10416%2Fpetit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/i10416","download_url":"https://codeload.github.com/i10416/petit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241494142,"owners_count":19971870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laika","scala","ssg","web"],"created_at":"2024-11-13T13:44:55.249Z","updated_at":"2026-05-24T16:35:39.642Z","avatar_url":"https://github.com/i10416.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Release](https://github.com/i10416/petit/actions/workflows/release.yaml/badge.svg)](https://github.com/i10416/petit/actions/workflows/release.yaml)\n\n## Laika Theme: Petit\n\nSimple blog theme for Scala 2.12,2.13 and 3.\n\n| scala 2.12                                                                                                                                                                                               | scala 2.13                                                                                                                                                                                               | scala 3                                                                                                                                                                                            |\n| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| [![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/https/s01.oss.sonatype.org/dev.i10416/petit_2.12.svg)](https://s01.oss.sonatype.org/content/repositories/snapshots/dev/i10416/petit_2.12/) | [![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/https/s01.oss.sonatype.org/dev.i10416/petit_2.13.svg)](https://s01.oss.sonatype.org/content/repositories/snapshots/dev/i10416/petit_2.13/) | [![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/https/s01.oss.sonatype.org/dev.i10416/petit_3.svg)](https://s01.oss.sonatype.org/content/repositories/snapshots/dev/i10416/petit_3/) |\n\n### How to Use\n\nbuild.sbt\n```scala\nlibraryDependencies ++= Seq(\n  \"org.planet42\" %% \"laika-core\" % \"0.18.2\",\n  \"org.planet42\" %% \"laika-io\" % \"0.18.2\",\n  \"dev.i10416\" %% \"petit\" % \"\u003cversion above\u003e\",\n  \"org.typelevel\" %% \"cats-effect\" % \"3.3.11\",\n)\n```\n\nor ammonite scala script\n\nor\n```scala\nimport $ivy.`dev.i10416::petit:\u003cversion above\u003e`\nimport $ivy.`org.planet42::laika-core:0.18.2`\nimport $ivy.`org.planet42::laika-io:0.18.2`\nimport $ivy.`org.typelevel::cats-effect:3.3.11`\n```\n\nDirectory Structure\n\n\n- `\u003csrc\u003e`\n  - article0\n    - README.md\n  - article1\n    - README.md\n  - ...\n\n\nScript\n\n```scala\nimport dev.i10416.petit.Petit\nimport cats.effect.{IO, Async, Sync, Resource}\nimport laika.format\nimport laika.io.api.TreeTransformer\nimport laika.directive.std.StandardDirectives\nimport laika.markdown.github.GitHubFlavor\nimport laika.parse.code.SyntaxHighlighting\nimport laika.api._\nimport cats.effect.unsafe.implicits.global\nimport laika.io.implicits._\n\ndef createTransformer[F[_]: Async]: Resource[F, TreeTransformer[F]] =\n  Transformer\n    .from(format.Markdown)\n    .to(format.HTML)\n    .parallel[F]\n    .withTheme(Petit)\n    .build\ncreateTransformer[IO].use {\n  _.fromDirectory(\"\u003csrc\u003e\").toDirectory(\"\u003cdist\u003e\").transform\n}.unsafeRunSync()\n```\n\n## How to contribute?\n- Give it a star⭐\n- Drop the feedback to the author @i10416\n- Send a PR with fixes of typos/bugs/etc🐛\n\n## License\nLicensed under the Apache License, Version 2.0.\n\n\n## todo\n- publish\n  - [x] release snapshot\n  - [ ] release 0.0.1\n- [x] sitemap generator\n- [x] rss generator\n- [ ] minify css\n  - see https://github.com/i10416/cssminifier\n- [ ] automatically generate last modified date time\n- [ ] link with ogp info directive\n- [ ] add search\n- [ ] add line numbers, line highlight,emphasize options for code blocks\n- [ ] format scala code before transform\n- [ ] enable `foo.ext:title` syntax for code blocks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi10416%2Fpetit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fi10416%2Fpetit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi10416%2Fpetit/lists"}