{"id":46323952,"url":"https://github.com/onsdigital/dp-developer-site","last_synced_at":"2026-03-04T16:01:39.682Z","repository":{"id":40294853,"uuid":"131734770","full_name":"ONSdigital/dp-developer-site","owner":"ONSdigital","description":"Generates the static HTML for https://developer.ons.gov.uk/","archived":false,"fork":false,"pushed_at":"2025-11-25T12:10:56.000Z","size":3362,"stargazers_count":1,"open_issues_count":5,"forks_count":1,"subscribers_count":23,"default_branch":"develop","last_synced_at":"2025-11-28T17:50:13.574Z","etag":null,"topics":["api","documentation"],"latest_commit_sha":null,"homepage":"https://developer.ons.gov.uk/","language":"Go","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/ONSdigital.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-05-01T16:15:35.000Z","updated_at":"2025-11-24T10:24:44.000Z","dependencies_parsed_at":"2024-02-20T18:46:23.219Z","dependency_job_id":"056da48a-c026-4927-b0a6-84bffcadc61f","html_url":"https://github.com/ONSdigital/dp-developer-site","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/ONSdigital/dp-developer-site","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONSdigital%2Fdp-developer-site","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONSdigital%2Fdp-developer-site/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONSdigital%2Fdp-developer-site/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONSdigital%2Fdp-developer-site/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ONSdigital","download_url":"https://codeload.github.com/ONSdigital/dp-developer-site/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONSdigital%2Fdp-developer-site/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30085805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T15:40:14.053Z","status":"ssl_error","status_checked_at":"2026-03-04T15:40:13.655Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","documentation"],"created_at":"2026-03-04T16:01:38.535Z","updated_at":"2026-03-04T16:01:39.665Z","avatar_url":"https://github.com/ONSdigital.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dp-developer-site\n\nA Go application that generates the HTML pages for the developer hub for ons.gov.uk.\n\nAvailable at [developer.ons.gov.uk](https://developer.ons.gov.uk).\n\n## Getting started\n\nTo run this app you'll need certain versions installed:\n\n| Language | version   |\n|----------|-----------|\n| Go       | \u003e= 1.21.7 |\n| Node     | = 20.1.3  |\n| Python   | \u003e= 3.9.2  |\n\nThese versions are what the pipeline will build with.\n\nYou can use `nvm use` to set your Node version to the current compatible one.\n\nYou'll also need `github.com/fogleman/serve@latest` which you can install using:\n\n```sh\n    make install-prereqs\n```\n\n## Development\n\nThe templates that make up the developer hub are available in `/templates`.\n\nStatic pages, such as the introduction are in `/static`.\n\nThe most common use case will be to update files and watch them change on the local site:\n\nto watch the files for changes and host them run:\n\n```bash\nmake watch-serve\n```\n\nor, with a custom port:\n\n```bash\nmake watch-serve PORT=8000\n```\n\n### Using Local Paths\n\nYou can also load API specs from your local machine. \nJust provide the file path instead of a URL, and the app will figure out if it's local or remote.\n\nExample:\n\n```go\nsources := spec.APIs{\n    {\"dataset-api\", \"https://raw.githubusercontent.com/ONSdigital/dp-dataset-api/master/swagger.yaml\", nil, nil},\n    {\"local-api\", \"/path/to/your/local/swagger.yaml\", nil, nil},\n}\n```\n\n### Other notable commands are as follows\n\nTo watch and automatically rebuild the site on any changes to any `.go`, `.md` or `.tmpl` file run:\n\n```bash\nmake watch\n```\n\nTo only serve the built assets (on default port of `23600`) run:\n\n```bash\nmake serve\n```\n\n...which has an optional `PORT` environment variable, for example:\n\n```bash\nmake server PORT=8000\n```\n\n### Configuration\n\n| Environment variable | Default | Description                    |\n| -------------------- | ------- | ------------------------------ |\n| PORT                 | 23600   | The port to serve the files on |\n\n### Contributing\n\nSee [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n### License\n\nCopyright © 2017-2024, Office for National Statistics (\u003chttps://www.ons.gov.uk\u003e)\n\nReleased under MIT license, see [LICENSE](LICENSE.md) for details. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonsdigital%2Fdp-developer-site","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonsdigital%2Fdp-developer-site","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonsdigital%2Fdp-developer-site/lists"}