{"id":18310949,"url":"https://github.com/jimschubert/custom-generator-example","last_synced_at":"2026-01-22T19:48:32.295Z","repository":{"id":139902202,"uuid":"158883308","full_name":"jimschubert/custom-generator-example","owner":"jimschubert","description":null,"archived":false,"fork":false,"pushed_at":"2020-06-16T02:10:05.000Z","size":272,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-09T12:11:16.558Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/jimschubert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":"jimschubert","patreon":"jimschubert"}},"created_at":"2018-11-23T22:32:20.000Z","updated_at":"2020-06-16T02:10:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"bf0c333f-fc37-4a58-99c1-2252ddb5ab34","html_url":"https://github.com/jimschubert/custom-generator-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jimschubert/custom-generator-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Fcustom-generator-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Fcustom-generator-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Fcustom-generator-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Fcustom-generator-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimschubert","download_url":"https://codeload.github.com/jimschubert/custom-generator-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Fcustom-generator-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28669698,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T19:36:09.361Z","status":"ssl_error","status_checked_at":"2026-01-22T19:36:05.567Z","response_time":144,"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":[],"created_at":"2024-11-05T16:15:58.960Z","updated_at":"2026-01-22T19:48:32.273Z","avatar_url":"https://github.com/jimschubert.png","language":"HTML","funding_links":["https://github.com/sponsors/jimschubert","https://patreon.com/jimschubert"],"categories":[],"sub_categories":[],"readme":"# Custom HTML2 Generator Example\n\nThis example demonstrates how to create a customized HTML2 generator based on the `StaticHtml2Generator` generator\nbuilt into OpenAPI Generator.\n\nThis custom generator adds the ability to specify a Google Analytics identifier to inject into the index.html, and also includes a humans.txt file.\n\n# Build the artifact\n\nTo build the custom generator, run the following:\n\n```\ncd html-generator\n./gradlew assemble install\n```\n\nThis will locally install the artifact `us.jimschubert.examples:html-generator:1.0-SNAPSHOT`.\n\n## Consume it\n\nThere is a build file under `consumer` with a valid and invalid spec file. Change into the `consumer` directory to run commands in this section.\n\nTo build the custom and built-in HTML2 generators against the valid spec, run the following:\n\n```\n./gradlew buildCustomHtml2 \u0026\u0026 gradle buildOriginalHtml2\n```\n\nOutputs are under `build/custom-html/` and `build/html`.\n\nVerify that custom-build includes the Google Analytics tag and identifier:\n\n```\ntail -10 build/custom-html/index.html\n```\n\nVerify that the Humans text file was created:\n\n```\ncat build/custom-html/humans.txt\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimschubert%2Fcustom-generator-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimschubert%2Fcustom-generator-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimschubert%2Fcustom-generator-example/lists"}