{"id":19204608,"url":"https://github.com/openttd/website","last_synced_at":"2026-06-24T11:30:17.369Z","repository":{"id":33609106,"uuid":"156269387","full_name":"OpenTTD/website","owner":"OpenTTD","description":"OpenTTD's website in Jekyll","archived":false,"fork":false,"pushed_at":"2025-02-15T13:16:11.000Z","size":57342,"stargazers_count":16,"open_issues_count":1,"forks_count":27,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-02-15T14:22:39.825Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.openttd.org/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenTTD.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":"2018-11-05T19:14:07.000Z","updated_at":"2025-02-15T13:16:14.000Z","dependencies_parsed_at":"2024-01-15T22:25:18.117Z","dependency_job_id":"ea4810b6-07a1-45b6-bb6d-8a356d3059e5","html_url":"https://github.com/OpenTTD/website","commit_stats":null,"previous_names":[],"tags_count":92,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenTTD%2Fwebsite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenTTD%2Fwebsite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenTTD%2Fwebsite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenTTD%2Fwebsite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenTTD","download_url":"https://codeload.github.com/OpenTTD/website/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240276570,"owners_count":19775737,"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":[],"created_at":"2024-11-09T13:08:54.692Z","updated_at":"2026-06-24T11:30:17.312Z","avatar_url":"https://github.com/OpenTTD.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenTTD's website\n\n[![GitHub License](https://img.shields.io/github/license/OpenTTD/website)](https://github.com/OpenTTD/website/blob/main/LICENSE)\n\nThis is the main website for OpenTTD, as can be seen on [https://www.openttd.org/](https://www.openttd.org/).\n`main` is always deployed on [production](https://www.openttd.org/).\nPull Request can be reviewed on their preview URL.\n\nThis is a [Jekyll](https://jekyllrb.com/) website, and is served by nginx as a static site.\n\n## Development\n\n### Populating _downloads\n\nBy default `_downloads` is empty, so when building the website locally there is no latest stable/nightly.\nThis can be resolved by running `fetch_downloads`.\nThis script will download the latest available binaries, and populate `_downloads`.\n\n```bash\npython3 -m venv .env\n.env/bin/pip install -r requirements.txt\n.env/bin/python -m fetch_downloads\n```\n\n### Running a local server\n\nIf you do not want to run a server, but just build the current site, replace `serve` with `build` in the examples below.\n\nUnder `_site` Jekyll will put the compiled result in both `serve` and `build`.\n\n- Follow [jekyll installation](https://jekyllrb.com/docs/installation/)\n- Run `bundle install`\n- Run `JEKYLL_ENV=production jekyll serve`\n\n## FAQ\n\n### I want to make a new blog post\n\n- Create a new file in _posts.\n- Follow the existing format.\n- Make a Pull Request.\n  It will automatically be published on a preview website for you to see the result.\n- Get it approved, squash/rebase it to `main`.\n  `main` is automatically deployed to [production](https://www.openttd.org/).\n\n### I get an error about ua-parser.js while building\n\nPlease set `JEKYLL_ENV` to `production`.\nWithout this, the symlink `ua-parser.js` is copied, instead of following it.\nWith `production` it does the right thing.\nTo recover, remove `_site/static/js/ua-parser.js` manually.\n\n### What is this download-descriptions.yml\n\nOn download pages, you notice that every binary has a human readable description.\n`windows-win64.exe` is for most people to cryptic.\n`Windows 7 / 8 / 10 / 11 (64bit) (installer)` is much more clear.\nThis file takes care of that mapping, based on the postfix of the file.\n\n### Why the downloads?\n\nBecause this is a static website, but we do want to show in the header what the latest version is, we need to find a solution.\nWe picked a solution where we fetch some files to know what the latest version is, and create a static version out of it.\nThis means that every time the latest version changes, the website has to be recreated.\nAs new versions are rare (once or sometimes twice a day at most), it is very cheaper to do it this way.\nIt avoids any dynamic component in production.\n\n### Screenshots in a git repository?\n\nYes.\nBy lack of better, we are doing this.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenttd%2Fwebsite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenttd%2Fwebsite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenttd%2Fwebsite/lists"}