{"id":17104616,"url":"https://github.com/imyelo/docsify-pagination","last_synced_at":"2025-05-16T09:05:37.625Z","repository":{"id":39380752,"uuid":"113866683","full_name":"imyelo/docsify-pagination","owner":"imyelo","description":"↔️ Pagination for docsify","archived":false,"fork":false,"pushed_at":"2024-11-30T15:09:49.000Z","size":523,"stargazers_count":111,"open_issues_count":3,"forks_count":34,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T03:13:48.677Z","etag":null,"topics":["docsify","navigation","pagination","plugin"],"latest_commit_sha":null,"homepage":"","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/imyelo.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-12-11T14:10:00.000Z","updated_at":"2025-02-12T15:01:38.000Z","dependencies_parsed_at":"2024-11-10T02:24:45.554Z","dependency_job_id":"1d126c3e-88e4-4337-9d13-5768f5f7fbd8","html_url":"https://github.com/imyelo/docsify-pagination","commit_stats":{"total_commits":81,"total_committers":9,"mean_commits":9.0,"dds":"0.23456790123456794","last_synced_commit":"8e524f5f9fb6cbf36659ffbca9266b8064ccffab"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imyelo%2Fdocsify-pagination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imyelo%2Fdocsify-pagination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imyelo%2Fdocsify-pagination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imyelo%2Fdocsify-pagination/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imyelo","download_url":"https://codeload.github.com/imyelo/docsify-pagination/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253398118,"owners_count":21902037,"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":["docsify","navigation","pagination","plugin"],"created_at":"2024-10-14T15:37:29.577Z","updated_at":"2025-05-16T09:05:32.618Z","avatar_url":"https://github.com/imyelo.png","language":"JavaScript","readme":"# docsify-pagination\n\u003e Pagination for docsify\n\n[![npm](https://img.shields.io/npm/v/docsify-pagination.svg?style=flat-square)](https://www.npmjs.com/package/docsify-pagination)\n[![license](https://img.shields.io/github/license/imyelo/docsify-pagination.svg?style=flat-square)](./LICENSE)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n\n## How does it look like?\n![screenshot](./_medias/screenshot.png)\n\n## Install\n1. insert script into document\n\n  ```html\n  \u003cscript src=\"//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js\"\u003e\u003c/script\u003e\n  ```\n\n2. specify the label text (optional)\n\n  ```javascript\n  window.$docsify = {\n    // ...\n    pagination: {\n      previousText: '上一章节',\n      // or\n      nextText: {\n        '/en/': 'NEXT',\n        '/': '下一章节'\n      },\n      crossChapter: true,\n      crossChapterText: true,\n    },\n  }\n  ```\n\n## Options\n### pagination.previousText\n* **Default:** ``'PREVIOUS'``\n* **Type:** ``String | Object``\n* **Description:** The text of previous label.\n\n### pagination.nextText\n* **Default:** ``'NEXT'``\n* **Type:** ``String | Object``\n* **Description:** The text of next label.\n\n### pagination.crossChapter\n* **Default:** `false`\n* **Type:** ``Boolean``\n* **Description:** Allow navigation to previous/next chapter.\n\n### pagination.crossChapterText\n* **Default:** `false`\n* **Type:** ``Boolean``\n* **Description:** Display chapter name.\n\n### ~~pagination.routerMode~~\n* **Deprecated**\n* **Default:** [`window.$docsify.routerMode`](https://docsify.js.org/#/configuration?id=routermode)\n* **Type:** ``String``\n* **Description:** Router mode. In most cases, you don't need to modify it. Docsify-Pagination will take care of it for you.\n\n## Example\n### Run example on local\n\n- [Example](example/default/index.html)\n- [Example with Docsify's History Route-Mode](example/router-mode-history/index.html)\n- [Example with Localization](example/router-mode-history/index.html)\n\n#### How to open these?\n```bash\n$ git clone https://github.com/imyelo/docsify-pagination.git \u0026\u0026 cd docsify-pagination \u0026\u0026 yarn\n$ yarn example\n```\n\n### Online Showcase\n- [Tina.js](https://tina.js.org/)\n- [😘 Tell us yours ...](https://github.com/imyelo/docsify-pagination/edit/master/readme.md)\n\n## Related\n- [docsify](https://github.com/QingWei-Li/docsify/)\n\n## License\nMIT \u0026copy; [yelo](https://github.com/imyelo)\n","funding_links":[],"categories":["Plugins"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimyelo%2Fdocsify-pagination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimyelo%2Fdocsify-pagination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimyelo%2Fdocsify-pagination/lists"}