{"id":15579884,"url":"https://github.com/neutree/gitbook-plugin-my-toolbar","last_synced_at":"2026-04-11T22:48:06.132Z","repository":{"id":100552472,"uuid":"132876600","full_name":"Neutree/gitbook-plugin-my-toolbar","owner":"Neutree","description":"add buttons to gitbook toolbar","archived":false,"fork":false,"pushed_at":"2018-05-10T09:18:56.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-01T01:52:20.858Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Neutree.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":"2018-05-10T09:11:05.000Z","updated_at":"2025-01-21T18:17:40.000Z","dependencies_parsed_at":"2023-05-15T21:00:31.517Z","dependency_job_id":null,"html_url":"https://github.com/Neutree/gitbook-plugin-my-toolbar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Neutree/gitbook-plugin-my-toolbar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neutree%2Fgitbook-plugin-my-toolbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neutree%2Fgitbook-plugin-my-toolbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neutree%2Fgitbook-plugin-my-toolbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neutree%2Fgitbook-plugin-my-toolbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Neutree","download_url":"https://codeload.github.com/Neutree/gitbook-plugin-my-toolbar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neutree%2Fgitbook-plugin-my-toolbar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27283994,"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-11-26T02:00:06.075Z","response_time":193,"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":[],"created_at":"2024-10-02T19:21:35.583Z","updated_at":"2025-11-27T22:02:21.190Z","avatar_url":"https://github.com/Neutree.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# plugin:my-toolbar\n\nThis plugin adds buttons with external links to a Gitbook website toolbar.\n\n![my-toolbar](assets/images/my-toolbar.png)\n\nbased on plugin [toolbar](https://github.com/Simran-B/gitbook-plugin-toolbar)\n\n### Configuration\n\nThe buttons can be configured in **book.json**:\n\n```js\n{\n    \"plugins\": [\n        \"my-toolbar\"\n    ],\n    \"pluginsConfig\": {\n        \"my-toolbar\": {\n            \"buttons\":\n            [\n                {\n                    \"label\": \"GitHub\",\n                    \"icon\": \"fa fa-github\",\n                    \"url\": \"https://github.com/\",\n                    \"target\": \"_self\"\n                },\n                {\n                    \"label\": \"Search page title on StackOverflow\",\n                    \"icon\": \"fa fa-stack-overflow\",\n                    \"url\": \"http://stackoverflow.com/search?q={{title}}\"\n                },\n                {\n                    \"label\": \"Share link on Facebook\",\n                    \"icon\": \"fa fa-facebook\",\n                    \"url\": \"http://www.facebook.com/sharer/sharer.php?s=100\u0026p[url]={{url}}\"\n                },\n                {\n                    \"label\": \"Share page title and link on Twitter\",\n                    \"icon\": \"fa fa-twitter\",\n                    \"position\":\"left\",\n                    \"url\": \"http://twitter.com/home?status={{title}}%20{{url}}\"\n                },\n                {\n                    \"label\": \"Edit page on github\",\n                    \"text\":\"Edit\",\n                    \"icon\": \"fa fa-pencil-square-o\",\n                    \"position\" : \"left\",\n                    \"url\": \"https://github.com/org/repo/edit/master/{{filepath_lang}}\"\n                }\n                \n            ]\n        }\n    }\n}\n```\n\n### Button parameters\n\nThe table below lists the default values of the optional button parameters:\n\nparameter | Default\n---|---\nlabel | Link\ntext | text show\nicon | fa-external-link\nposition | right\n\n### Format strings\n\nThe following format strings can be used in your urls:\n\nString | Description\n---|---\n{{title}} | Title of page\n{{url}} | URL of current page\n{{filepath_lang}} | Filepath of the *source* page. This includes the language code in a multilingual book.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneutree%2Fgitbook-plugin-my-toolbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneutree%2Fgitbook-plugin-my-toolbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneutree%2Fgitbook-plugin-my-toolbar/lists"}