{"id":13687020,"url":"https://github.com/fpindia/fpindia-site","last_synced_at":"2025-05-01T12:32:26.649Z","repository":{"id":41204626,"uuid":"508731730","full_name":"fpindia/fpindia-site","owner":"fpindia","description":"The new FPIndia static site built using Ema","archived":false,"fork":false,"pushed_at":"2024-05-19T11:52:21.000Z","size":915,"stargazers_count":6,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-03T15:06:12.018Z","etag":null,"topics":["functional-programming","haskell","india","nix"],"latest_commit_sha":null,"homepage":"https://functionalprogramming.in","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fpindia.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}},"created_at":"2022-06-29T14:44:28.000Z","updated_at":"2024-05-19T11:50:43.000Z","dependencies_parsed_at":"2023-12-10T09:45:13.912Z","dependency_job_id":null,"html_url":"https://github.com/fpindia/fpindia-site","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"srid/ema-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpindia%2Ffpindia-site","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpindia%2Ffpindia-site/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpindia%2Ffpindia-site/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpindia%2Ffpindia-site/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fpindia","download_url":"https://codeload.github.com/fpindia/fpindia-site/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224257395,"owners_count":17281699,"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":["functional-programming","haskell","india","nix"],"created_at":"2024-08-02T15:00:46.716Z","updated_at":"2025-05-01T12:32:26.636Z","avatar_url":"https://github.com/fpindia.png","language":"Haskell","funding_links":[],"categories":["Haskell"],"sub_categories":[],"readme":"# FPIndia Site\n\n[Ema](https://ema.srid.ca/) static site for https://functionalprogramming.in/\n\n## Getting Started\n\n## With Nix\n\n[Install Nix][install-nix] and then run `bin/run` to get the site up and running locally. See further below for static site generation.\n\nTo develop with full IDE support in Visual Studio Code, follow these steps:\n\n- [Install Nix][install-nix]\n- Run `nix develop -c haskell-language-server` to sanity check your environment\n- Open the repository [as single-folder workspace](https://code.visualstudio.com/docs/editor/workspaces#_singlefolder-workspaces) in Visual Studio Code\n    - Install the recommended extensions\n    - \u003ckbd\u003eCtrl+Shift+P\u003c/kbd\u003e to run the command \"Nix-Env: Select Environment\" and select `shell.nix`. The extension will ask you to reload VSCode at the end.\n- Press \u003ckbd\u003eCtrl+Shift+B\u003c/kbd\u003e in VSCode, or run `bin/run` in terminal, to launch the Ema dev server, and navigate to http://localhost:8081/\n\nAll but the final step need to be done only once. Check [the Ema tutorial](https://ema.srid.ca/tutorial) next.\n\n[install-nix]: https://nixos.asia/en/install\n\n#### Generate the site\n\n```sh\nmkdir /tmp/site\nnix run . -- gen /tmp/site\n```\n\n## Without Nix\n\nWorking on this repository without Nix is supported.\n\n#### Basic setup with Cabal\n\nSome dependencies have been vendored in `vendor/` for non-nix workflows. The setup has been tested to work with GHC 9.4.8.\n\n```\ncabal build\n```\n\n#### Tailwind CSS support\n\nUse NPM and package.json to [install tailwind packages](https://tailwindcss.com/docs/installation).\n\n```\nnpm install\n```\n\n#### Run the server with hot code reloading\n\nUse NPM to start everything. This will concurrently start ghcid, as well as the tailwind watcher. Hot code reloading should work automatically.\n\n```\nnpm start\n```\n\n#### Generate the site\n\n```sh\nmkdir /tmp/site\ncabal run fpindia-site -- gen /tmp/site\n```\n\nOr simply -\n\n```\nnpm run gen\n```\n\n## Note\n\n- This project uses [relude](https://github.com/kowainik/relude) as its prelude, as well as Tailwind+Blaze as CSS utility and HTML DSL.\n- Configuration:\n  - To change the port (or the Ema CLI arguments, used by `bin/run`), see `./.ghcid` (if you leave out `--port` a random port will be used)\n  - To update Ema to the latest Git revision -\n    - Nix instructions: run `nix flake lock --update-input ema` or just `nix flake update` (the latter updates all Nix inputs)\n      Be sure to check https://ema.srid.ca/start/upgrade for changes needed.\n    - Non nix instructions: Update the copy of Ema in the `vendor` folder\n- You might want to change or remove the `\u003cbase\u003e` tag in `Main.hs` depending on where you will be deploying the site.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffpindia%2Ffpindia-site","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffpindia%2Ffpindia-site","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffpindia%2Ffpindia-site/lists"}