{"id":15509756,"url":"https://github.com/willin/gitbook-plugin-atoc","last_synced_at":"2025-04-23T02:43:01.693Z","repository":{"id":143879935,"uuid":"43439559","full_name":"willin/gitbook-plugin-atoc","owner":"willin","description":"A TOC plugin for GitBook","archived":false,"fork":false,"pushed_at":"2017-07-20T09:28:10.000Z","size":12,"stargazers_count":24,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T18:47:31.103Z","etag":null,"topics":["gitbook","gitbook-plugin","plugin","toc","toc-generator"],"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/willin.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},"funding":{"github":"willin","custom":"https://afdian.net/@willin"}},"created_at":"2015-09-30T15:01:08.000Z","updated_at":"2023-08-01T00:41:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"eac2b4f5-0f6e-4ed0-a0e5-ed79f4cb2b49","html_url":"https://github.com/willin/gitbook-plugin-atoc","commit_stats":{"total_commits":24,"total_committers":4,"mean_commits":6.0,"dds":0.25,"last_synced_commit":"afedee913c749b28ff51f7fe26a2a9b4ea89d823"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fgitbook-plugin-atoc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fgitbook-plugin-atoc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fgitbook-plugin-atoc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fgitbook-plugin-atoc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willin","download_url":"https://codeload.github.com/willin/gitbook-plugin-atoc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249694207,"owners_count":21311503,"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":["gitbook","gitbook-plugin","plugin","toc","toc-generator"],"created_at":"2024-10-02T09:43:42.355Z","updated_at":"2025-04-23T02:43:01.670Z","avatar_url":"https://github.com/willin.png","language":"JavaScript","funding_links":["https://github.com/sponsors/willin","https://afdian.net/@willin"],"categories":[],"sub_categories":[],"readme":"# gitbook-plugin-atoc\n\n[![npm](https://img.shields.io/npm/v/gitbook-plugin-atoc.svg?style=plastic)](https://npmjs.org/package/gitbook-plugin-atoc) [![npm](https://img.shields.io/npm/dm/gitbook-plugin-atoc.svg?style=plastic)](https://npmjs.org/package/gitbook-plugin-atoc) [![npm](https://img.shields.io/npm/dt/gitbook-plugin-atoc.svg?style=plastic)](https://npmjs.org/package/gitbook-plugin-atoc)\n\nThis plugin will add table of content to the page and provide navigation function inside a page.\n\nAdd `\u003c!-- toc --\u003e` to the markdown files. When you build the book, it will insert a table of content where you insert `\u003c!-- toc --\u003e`\n\n\n`book.json` Config:\n\n\n```\n{\n\t\"plugins\": [\"atoc\"],\n\t\"pluginsConfig\": {\n\t\t\"atoc\": {\n\t\t\t\"addClass\": true,\n\t\t\t\"className\": \"atoc\"\n\t\t}\n\t}\n}\n```\n\nYou can add this config to add a HTML ClassName to the TOC `ul` element\n\n\n## LICENSE\n\nMIT\n\nAlipay Donation(通过支付宝捐赠)：\n\n![qr](https://cloud.githubusercontent.com/assets/1890238/15489630/fccbb9cc-2193-11e6-9fed-b93c59d6ef37.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillin%2Fgitbook-plugin-atoc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillin%2Fgitbook-plugin-atoc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillin%2Fgitbook-plugin-atoc/lists"}