{"id":23324505,"url":"https://github.com/tkdeng/staticweb","last_synced_at":"2025-04-07T06:14:25.259Z","repository":{"id":268150956,"uuid":"903209906","full_name":"tkdeng/staticweb","owner":"tkdeng","description":"Compile HTML and MD template files together into a static html website.","archived":false,"fork":false,"pushed_at":"2025-02-06T18:02:14.000Z","size":23649,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T19:22:03.454Z","etag":null,"topics":["html","static-site-generator","template"],"latest_commit_sha":null,"homepage":"","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/tkdeng.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":"2024-12-14T02:14:49.000Z","updated_at":"2025-02-06T18:02:18.000Z","dependencies_parsed_at":"2024-12-14T18:34:01.359Z","dependency_job_id":"41e91465-5567-47d4-8d96-cd6bf3362eed","html_url":"https://github.com/tkdeng/staticweb","commit_stats":null,"previous_names":["tkdeng/staticweb"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkdeng%2Fstaticweb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkdeng%2Fstaticweb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkdeng%2Fstaticweb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkdeng%2Fstaticweb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkdeng","download_url":"https://codeload.github.com/tkdeng/staticweb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601444,"owners_count":20964865,"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":["html","static-site-generator","template"],"created_at":"2024-12-20T18:16:56.906Z","updated_at":"2025-04-07T06:14:25.236Z","avatar_url":"https://github.com/tkdeng.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Static Web\n\nCompile HTML and MD template files together into a static html website.\n\n## Installation\n\n```shell\n# install the go module\ngo get github.com/tkdeng/staticweb\n\n# or install the binary\ngit clone https://github.com/tkdeng/staticweb.git \u0026\u0026\\\ncd staticweb \u0026\u0026\\\nmake install \u0026\u0026\\\ncd ../ \u0026\u0026 rm -r staticweb\n\n# install into /usr/bin\nmake install\n\n# install locally (with dependencies)\nmake local\n\n# build without dependency installation\nmake build\n\n# install dependencies\nmake deps\n\n# uninstall htmlc\nmake clean\n```\n\n## Golang Usage\n\n```go\n\nimport (\n  \"github.com/tkdeng/staticweb\"\n)\n\nfunc main(){\n  // compile directory\n  err := staticweb.Compile(\"./src\", \"./dist\")\n\n  // compile specific page/directory\n  err := staticweb.Compile(\"./src\", \"./dist\", \"/about\")\n\n  // compile and watch for file changes\n  fileWatcher := staticweb.Live(\"./src\", \"./dist\", func(err error){\n    // handle errors\n    fmt.Println(err)\n  })\n}\n```\n\n## Binary Usage\n\n```shell\nstaticweb ./src --out=\"./dist\"\n\n# optional: run live server\nstaticweb ./src 3000\nstaticweb ./src --live # default port: 3000\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkdeng%2Fstaticweb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkdeng%2Fstaticweb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkdeng%2Fstaticweb/lists"}