KEMBAR78
GitHub - simochee/docsify-plugin-page-history: πŸ“‹ Page-by-page history for Docsify
Skip to content

simochee/docsify-plugin-page-history

Repository files navigation

Docsify Logo

Docsify Plugins

Page History

by simochee

jsDelivr npm version License Release

Page-by-page history for Docsify.

πŸ“€ Installation

Insert a script tag to load the plugin script file after loading the Docsify script.

<script>
  window.$docsify = {};
</script>
<script src="//cdn.jsdelivr.net/npm/docsify@v4/lib/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify@v4/lib/plugins/front-matter.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-plugin-page-history/lib/docsify-plugin-page-history.min.js"></script>

πŸ”° Usage

Add page history

Add history field to page front-matter.

---
history:
  - date: 2023-10-15 # recommended YYYY-MM-DD
    message: |
      Add **awesome section**.
  - date: 2023-10-10
    message: |
      Initial release
---

## Page Title

...

Display all page history

Add @[page-history] to your markdown file

# History

@[page-history]

πŸ’» Development

  1. Clone this repository
  2. Enable Corepack using corepack enable
  3. Install dependencies using pnpm install
  4. Run watch mode using pnpm run watch
  5. Start server using Live Server
  6. Insert a script tag to load the plugin script file after loading the Docsify script.
<script src="http://localhost:5500"></script>

πŸ›‘οΈ License

MIT

About

πŸ“‹ Page-by-page history for Docsify

Resources

License

Stars

Watchers

Forks

Packages

No packages published