{"id":13681593,"url":"https://github.com/srid/rib-sample","last_synced_at":"2025-07-22T08:03:00.905Z","repository":{"id":53476085,"uuid":"200400881","full_name":"srid/rib-sample","owner":"srid","description":"Sample site for the Rib static site generator","archived":false,"fork":false,"pushed_at":"2021-03-29T17:34:02.000Z","size":75,"stargazers_count":24,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-04T12:07:28.388Z","etag":null,"topics":["clay","haskell","lucid","pandoc","shake","static-site-generation","template"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","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/srid.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}},"created_at":"2019-08-03T17:06:39.000Z","updated_at":"2023-09-03T21:09:10.000Z","dependencies_parsed_at":"2022-08-19T03:30:41.998Z","dependency_job_id":null,"html_url":"https://github.com/srid/rib-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/srid/rib-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Frib-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Frib-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Frib-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Frib-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srid","download_url":"https://codeload.github.com/srid/rib-sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Frib-sample/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266454635,"owners_count":23931332,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["clay","haskell","lucid","pandoc","shake","static-site-generation","template"],"created_at":"2024-08-02T13:01:32.771Z","updated_at":"2025-07-22T08:03:00.813Z","avatar_url":"https://github.com/srid.png","language":"Haskell","funding_links":[],"categories":["Haskell"],"sub_categories":[],"readme":"# rib-sample\n\nSample site for the [Rib](https://github.com/srid/rib) static site generator.\n\n## Prerequisites\n\nFirst, install the [Nix package manager](https://nixos.org/nix/):\n\n``` bash\nbash \u003c(curl https://nixos.org/nix/install)\n```\n\nOptionally, enable the [Nix cache](https://srid.cachix.org/) if you would like to speed up local builds:\n\n``` bash\n# If you do not already have cachix, install it:\nnix-env -iA cachix -f https://cachix.org/api/v1/install\n# Enable nix cache for rib\ncachix use srid\n```\n\n## Running\n\nTo build and run the site:\n\n```bash\nnix-shell --run 'ghcid -T \":main -wS\"'\n```\n\nThis launches a web server at http://localhost:8080 serving the statically\ngenerated content. Changing either `./src/Main.hs` or the content in `./content`\nreloads everything.\n\n### Use a custom rib and port\n\nYou might have a local checkout of rib with certain modifications. And you might\nwant to run ghcid with the server running at a different port. Both of this can\nachieved using the following command:\n\n```bash\n# Assuming rib is cloned at ../rib\nnix-shell --arg rib ../rib --run 'ghcid -T \":main -ws :8081\"'\n```\n\n## IDE support\n\nThe `.vscode` directory contains the necessary settings to work with a rib project.\n\n- Ensure that Nix is installed\n- Run `code .` to open the project in VSCode, and install the recommended extensions.\n  - The default settings have auto-format enabled.\n\n## Building the executable\n\nA fully built executable can be produced using `nix-build`:\n\n```text\n$ nix-build \n...\n$ ./result/bin/rib-sample --help\nUsage: rib-sample [--rebuild-all] [-w|--watch] [(-s|--serve [HOST]:PORT) | -S]\n                  [--quiet] [--input-dir INPUTDIR] [--output-dir OUTPUTDIR]\n  Generate a static site at OUTPUTDIR using input from INPUTDIR\n\nAvailable options:\n  --rebuild-all            Rebuild all sources\n  -w,--watch               Watch for changes and regenerate\n  -s,--serve [HOST]:PORT   Run a HTTP server on the generated directory\n  -S                       Like `-s 127.0.0.1:8080`\n  --quiet                  Log nothing\n  --input-dir INPUTDIR     Directory containing the source files (default:\n                           content)\n  --output-dir OUTPUTDIR   Directory where files will be generated (default:\n                           dest)\n  -h,--help                Show this help text\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrid%2Frib-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrid%2Frib-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrid%2Frib-sample/lists"}