{"id":13755908,"url":"https://github.com/lukewilliamboswell/basic-ssg","last_synced_at":"2025-04-09T23:51:44.721Z","repository":{"id":235729566,"uuid":"791108403","full_name":"lukewilliamboswell/basic-ssg","owner":"lukewilliamboswell","description":"Static Site Generation for roc","archived":false,"fork":false,"pushed_at":"2025-01-28T22:44:49.000Z","size":288,"stargazers_count":5,"open_issues_count":3,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-09T23:51:40.233Z","etag":null,"topics":["roc-lang","ssg","static-site-generator"],"latest_commit_sha":null,"homepage":"https://lukewilliamboswell.github.io/basic-ssg/","language":"Roc","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"upl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lukewilliamboswell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-04-24T05:37:28.000Z","updated_at":"2025-02-10T19:54:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"971bc61f-3f06-44de-9c98-5f9aa7c741df","html_url":"https://github.com/lukewilliamboswell/basic-ssg","commit_stats":null,"previous_names":["lukewilliamboswell/basic-ssg"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukewilliamboswell%2Fbasic-ssg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukewilliamboswell%2Fbasic-ssg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukewilliamboswell%2Fbasic-ssg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukewilliamboswell%2Fbasic-ssg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukewilliamboswell","download_url":"https://codeload.github.com/lukewilliamboswell/basic-ssg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131454,"owners_count":21052819,"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":["roc-lang","ssg","static-site-generator"],"created_at":"2024-08-03T11:00:32.590Z","updated_at":"2025-04-09T23:51:44.700Z","avatar_url":"https://github.com/lukewilliamboswell.png","language":"Roc","funding_links":[],"categories":["Roc Platforms 🏢"],"sub_categories":[],"readme":"# Static Site Generatation for Roc\n\nA platform for Static Site Generation. Parse a directory of markdown files, and then transform the content using [roc](https://www.roc-lang.org) into an html site that is ready to be served from a web server or [CDN](https://en.wikipedia.org/wiki/Content_delivery_network).\n\n**Supported Targets**\n\nThe following targets are included in each release.\n\n- MacOS aarch64 and x86_64\n- Linux aarch64 and x86_64\n\nIf you would like an additional target, let me know because it's probably supported by [rustc](https://doc.rust-lang.org/beta/rustc/platform-support.html) and very easy to add.\n\n## Getting Starting\n\nEnsure you have [installed the roc cli](https://www.roc-lang.org/install).\n\nUse the latest [release](https://github.com/lukewilliamboswell/basic-ssg/releases) of this platform by replacing the URL in the header.\n\n```roc\napp [main!] { pf: platform \"\u003cREPLACE WITH URL TO PLATFORM RELEASE\u003e\" }\n\nimport pf.SSG\nimport pf.Types exposing [Args]\nimport pf.Html exposing [div, link, text, a, html, head, body, meta, ul, li]\nimport pf.Html.Attributes exposing [class, http_equiv, href, rel, content, lang, title]\n\nmain! : Args =\u003e Result {} _\nmain! = \\{ input_dir, output_dir } -\u003e\n    # ... use SSG.files!, SSG.parse_markdown!, and SSG.write_file! here to generate site\n```\n\n## Platform Development\n\nEnsure you have [roc](https://www.roc-lang.org/install) \u0026 [cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html) installed.\n\nUsing nix (optional)\n\n```\n$ nix develop\n```\n\n```\n$ roc build.roc\n$ roc example/main.roc -- example/content/ example/output/\n```\n\nYou can generate a new package for distribution using `roc build.roc --release --bundle`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukewilliamboswell%2Fbasic-ssg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukewilliamboswell%2Fbasic-ssg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukewilliamboswell%2Fbasic-ssg/lists"}