2.10.0 • Published 2 years ago

docsify-pagination v2.10.0

Weekly downloads
630
License
MIT
Repository
github
Last release
2 years ago

docsify-pagination

Pagination for docsify

npm license PRs Welcome

How does it look like?

screenshot

Install

  1. insert script into document

    <script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>
  2. specify the label text (optional)

    window.$docsify = {
      // ...
      pagination: {
        previousText: '上一章节',
        // or
        nextText: {
          '/en/': 'NEXT',
          '/': '下一章节'
        }
        crossChapter: true,
        crossChapterText: true,
      },
    }

Options

pagination.previousText

  • Default: 'PREVIOUS'
  • Type: String | Object
  • Description: The text of previous label.

pagination.nextText

  • Default: 'NEXT'
  • Type: String | Object
  • Description: The text of next label.

pagination.crossChapter

  • Default: false
  • Type: Boolean
  • Description: Allow navigation to previous/next chapter.

pagination.crossChapterText

  • Default: false
  • Type: Boolean
  • Description: Display chapter name.

pagination.routerMode

  • Deprecated
  • Default: window.$docsify.routerMode
  • Type: String
  • Description: Router mode. In most cases, you don't need to modify it. Docsify-Pagination will take care of it for you.

Example

Related

License

MIT © yelo

2.10.0

2 years ago

2.7.0

2 years ago

2.9.0

2 years ago

2.8.0

2 years ago

2.6.2

3 years ago

2.6.1

3 years ago

2.6.0

4 years ago

2.5.0

4 years ago

2.4.0

5 years ago

2.3.5

5 years ago

2.3.4

6 years ago

2.3.3

6 years ago

2.3.2

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago