{"id":23991806,"url":"https://github.com/onukura/gitbucket-embedding-plugin","last_synced_at":"2025-08-18T18:07:28.161Z","repository":{"id":45989983,"uuid":"288219838","full_name":"onukura/gitbucket-embedding-plugin","owner":"onukura","description":"GitBucket plugin to replace code link to snippet","archived":false,"fork":false,"pushed_at":"2021-11-22T15:06:51.000Z","size":166,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-21T17:42:07.224Z","etag":null,"topics":["gitbucket","gitbucket-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onukura.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}},"created_at":"2020-08-17T15:41:35.000Z","updated_at":"2023-04-24T11:55:12.000Z","dependencies_parsed_at":"2022-09-16T17:52:54.424Z","dependency_job_id":null,"html_url":"https://github.com/onukura/gitbucket-embedding-plugin","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/onukura/gitbucket-embedding-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onukura%2Fgitbucket-embedding-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onukura%2Fgitbucket-embedding-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onukura%2Fgitbucket-embedding-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onukura%2Fgitbucket-embedding-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onukura","download_url":"https://codeload.github.com/onukura/gitbucket-embedding-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onukura%2Fgitbucket-embedding-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271035568,"owners_count":24688436,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["gitbucket","gitbucket-plugin"],"created_at":"2025-01-07T20:00:00.810Z","updated_at":"2025-08-18T18:07:28.134Z","avatar_url":"https://github.com/onukura.png","language":"JavaScript","readme":"# gitbucket-embedding-plugin\n\nA GitBucket plugin to replace code link to embed snippet.\n\nTo achieve embed snippet, this plugin is not best way. It should be done by GitBucket itself. Until the day GitBucket get this feature, this plugin could be a one of choices.\n\n## Screenshot\n\n![screenshot](https://github.com/onukura/gitbucket-embedding-plugin/blob/assets/screenshot.png?raw=true)\n\n## Install\n\n1. Download *.jar from Releases.\n2. Deploy it to `GITBUCKET_HOME/plugins`.\n3. Restart GitBucket.\n\n## Build from source\n\n```sbt\nsbt clean package\n```\n\nThe built package is located at\n`target/scala-2.13/gitbucket-embedding-plugin_2.13-{plugin-version}.jar`.\n\n```sbt\nsbt assembly\n```\n\nThis makes the assembly package\n`target/scala-2.13/gitbucket-embedding-plugin-{plugin-version}.jar`\nfor deployment.\n\n## Supported link type\n\n```\nLink Style 1:\nhttp(s)://{host_with_or_without_prefix}/{owner}/{repository}/blob/{SHA}/{path/to/file}#L{StartLineNumber}-L{EndLineNumber}\n\nLink Style 2:\n/{owner}/{repository}/blob/{SHA}/{path/to/file}#L{StartLineNumber}-L{EndLineNumber}\n\nExample-1 with style 1: \nhttp://localhost:8080/root/gitbucket/blob/19f0431a3fb4a9c3560dbf9b1d74f2073da7708f/GitBucketCoreModuleSpec.scala#L5-L10\n\nExample-1 with style 2: \n/root/gitbucket/blob/19f0431a3fb4a9c3560dbf9b1d74f2073da7708f/GitBucketCoreModuleSpec.scala#L5-L10\n\nExample-2 with style 1: \nhttp://localhost/root/gitbucket/blob/19f0431a3fb4a9c3560dbf9b1d74f2073da7708f/src/main/scala/GitBucketCoreModuleSpec.scala#L5-L10\n\nExample-2 with style 2: \n/root/gitbucket/blob/19f0431a3fb4a9c3560dbf9b1d74f2073da7708f/src/main/scala/GitBucketCoreModuleSpec.scala#L5-L10\n```\n\n## Note\n\nPlease use link with sha, not branch name such as `master`. Because `master` changes by commits.\n\n```\nGood url:\nhttp://localhost:8080/root/gitbucket/blob/19f0431a3fb4a9c3560dbf9b1d74f2073da7708f/GitBucketCoreModuleSpec.scala#L5-L10\n/root/gitbucket/blob/19f0431a3fb4a9c3560dbf9b1d74f2073da7708f/GitBucketCoreModuleSpec.scala#L5-L10\n\nNot Good url:\nhttp://localhost:8080/root/gitbucket/blob/master/GitBucketCoreModuleSpec.scala#L5-L10\n/root/gitbucket/blob/master/GitBucketCoreModuleSpec.scala#L5-L10\n```\n\n## Version\n\nPlugin version|GitBucket version\n:---|:---\n1.1.x |4.34.x -\n1.0.x |4.34.x -\n0.1.x |4.34.x -\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonukura%2Fgitbucket-embedding-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonukura%2Fgitbucket-embedding-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonukura%2Fgitbucket-embedding-plugin/lists"}