GithubHelp home page GithubHelp logo

pactionly / docsify-pagination Goto Github PK

View Code? Open in Web Editor NEW

This project forked from imyelo/docsify-pagination

0.0 1.0 0.0 165 KB

↔️ Pagination for docsify

License: MIT License

HTML 27.58% JavaScript 56.94% CSS 15.49%

docsify-pagination's Introduction

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>
  1. specify the label text (optional)
window.$docsify = {
  // ...
  pagination: {
    previousText: '上一章节',
    nextText: '下一章节',
    crossChapter: true,
    crossChapterText: true,
  },
}

Options

pagination.previousText

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

pagination.nextText

  • Default: 'NEXT'
  • Type: String
  • 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

  • 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

docsify-pagination's People

Contributors

cyrilf avatar imyelo avatar jhildenbiddle avatar kirkyoder avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.