{"id":13906891,"url":"https://github.com/njleonzhang/docsify-edit-on-github","last_synced_at":"2025-04-10T01:13:43.034Z","repository":{"id":44377842,"uuid":"101969535","full_name":"njleonzhang/docsify-edit-on-github","owner":"njleonzhang","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-02T15:57:08.000Z","size":16,"stargazers_count":79,"open_issues_count":6,"forks_count":22,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T01:13:37.952Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/njleonzhang.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":"2017-08-31T06:55:27.000Z","updated_at":"2025-04-05T14:51:04.000Z","dependencies_parsed_at":"2024-06-21T05:36:21.882Z","dependency_job_id":null,"html_url":"https://github.com/njleonzhang/docsify-edit-on-github","commit_stats":{"total_commits":18,"total_committers":5,"mean_commits":3.6,"dds":0.4444444444444444,"last_synced_commit":"ae8433a722a99438350e4d6fbecbd8cf1b3a4bc5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njleonzhang%2Fdocsify-edit-on-github","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njleonzhang%2Fdocsify-edit-on-github/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njleonzhang%2Fdocsify-edit-on-github/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njleonzhang%2Fdocsify-edit-on-github/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/njleonzhang","download_url":"https://codeload.github.com/njleonzhang/docsify-edit-on-github/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137891,"owners_count":21053775,"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-08-06T23:01:44.228Z","updated_at":"2025-04-10T01:13:43.009Z","avatar_url":"https://github.com/njleonzhang.png","language":"JavaScript","readme":"# docsify-edit-on-github\nA plugin for docsify to generate a `edit on github` button on every pages. click the button to open corresponding `md` editing page on github.\n\n```html\n\u003cscript src=\"//cdn.jsdelivr.net/npm/docsify-edit-on-github\"\u003e\u003c/script\u003e\n```\n\n```html\n\u003cscript\u003e\n  window.$docsify = {\n    // your config\n    // ...\n    plugins: [\n      EditOnGithubPlugin.create(docBase, docEditBase, title)\n    ]\n  }\n\u003c/script\u003e\n```\n\n* `docBase`: [String] the document folder of your github project (e.g.: https://github.com/docsifyjs/docsify/blob/master/docs/)\n* `docEditBase`: [String] edit link of your github pages, by default, this is set automatically according to `docBase`\n* `title`: [String | Function] the text of the button, default value: `Edit on github`. If passed as function, then the title can be customized according to file path. for example:\n  ```\n    EditOnGithubPlugin.create(\n      'https://github.com/docsifyjs/docsify/blob/master/docs/',\n      null,\n      function(file) {\n        if (file.indexOf('en') === -1) {\n          return '编辑'\n        } else {\n          return 'edit on git'\n        }\n      }\n    )\n  ```\n\n[Code example](https://github.com/njleonzhang/vue-data-tables/blob/6bb632419506a14ceff559708180883097d5afa2/docs/index.html#L179-L181)\n\n[Result example](https://www.njleonzhang.com/vue-data-tables/#/en-us/basic)\n","funding_links":[],"categories":["JavaScript","Plugins"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnjleonzhang%2Fdocsify-edit-on-github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnjleonzhang%2Fdocsify-edit-on-github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnjleonzhang%2Fdocsify-edit-on-github/lists"}