All Projects → aleen42 → gitbook-treeview

aleen42 / gitbook-treeview

Licence: MIT license
🌲 A gitbook plugin for generating tree view for ech page

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to gitbook-treeview

myBook
使用GitBook记录开发笔记
Stars: ✭ 30 (-21.05%)
Mutual labels:  gitbook, gitbook-plugin
gitbook-plugin-atoc
A TOC plugin for GitBook
Stars: ✭ 22 (-42.11%)
Mutual labels:  gitbook, gitbook-plugin
gitbook-plugin-autotheme
GitBook自动换肤插件
Stars: ✭ 13 (-65.79%)
Mutual labels:  gitbook, gitbook-plugin
gitbook-plugin-flexible-alerts
GitBook plugin to convert blockquotes into beautiful and configurable alerts using preconfigured or own styles and alert types.
Stars: ✭ 29 (-23.68%)
Mutual labels:  gitbook, gitbook-plugin
awesome-gitbook-plugins
📚 Supercharge your books with the best of GitBook plugins!
Stars: ✭ 44 (+15.79%)
Mutual labels:  gitbook, gitbook-plugin
Git Tips
这里是我的笔记,记录一些git常用和一些记不住的命令。
Stars: ✭ 185 (+386.84%)
Mutual labels:  gitbook
Peiqi Wiki Poc
鹿不在侧,鲸不予游🐋
Stars: ✭ 179 (+371.05%)
Mutual labels:  gitbook
Celery Cn
🚀Celery中文手册
Stars: ✭ 173 (+355.26%)
Mutual labels:  gitbook
Working On Gnu Linux
《 完全用 GNU/Linux 工作》
Stars: ✭ 170 (+347.37%)
Mutual labels:  gitbook
Nodebook
nodejs 基础教程
Stars: ✭ 241 (+534.21%)
Mutual labels:  gitbook
Way To Algorithm
Algorithm Tutorial and Source Code
Stars: ✭ 221 (+481.58%)
Mutual labels:  gitbook
Migrating To Cloud Native Application Architectures
《迁移到云原生应用架构》中文版 https://jimmysong.io/migrating-to-cloud-native-application-architectures/
Stars: ✭ 203 (+434.21%)
Mutual labels:  gitbook
Bookstack
BookStack,基于MinDoc,使用Beego开发的在线文档管理系统,功能类似Gitbook和看云。
Stars: ✭ 2,547 (+6602.63%)
Mutual labels:  gitbook
Knowledge
Everything I know
Stars: ✭ 2,982 (+7747.37%)
Mutual labels:  gitbook
Spring Boot Book
Spring Boot 开源电子书
Stars: ✭ 178 (+368.42%)
Mutual labels:  gitbook
Android Bookmark
【资料汇总】Android 资源知识大全 http://www.yundashi168.com/articles/2018/09/12/1536725366888.html
Stars: ✭ 235 (+518.42%)
Mutual labels:  gitbook
Programming Notes
Notes of learning Programming
Stars: ✭ 171 (+350%)
Mutual labels:  gitbook
Cs Univ Wiki
컴공생을 위한 대학 생활 가이드라인
Stars: ✭ 202 (+431.58%)
Mutual labels:  gitbook
Bookdown
Authoring Books and Technical Documents with R Markdown
Stars: ✭ 2,768 (+7184.21%)
Mutual labels:  gitbook
Bitcoin On Nodejs
《Node.js区块链开发》,注:新版代码已开源!请star支持哦-^-:
Stars: ✭ 2,321 (+6007.89%)
Mutual labels:  gitbook

page-treeview

gitbook gitbook Pay GitHub issues GitHub license Gitter

npm Build Status devDependency Status npm

a gitbook-plugin for generating a "Treeview" for each page.

page-treeview

Installation

add the following plugins to your book.json and run gitbook install

{
    "plugins": ["page-treeview"]
}

Usage

just find plugin on gitbook and install it on your gitbook project.

configuration option can be set as an obj like, and of course you can use a default value shown as followed:

{
	"plugins": [
		"page-treeview"
	],
	"pluginsConfig": {
		"page-treeview": {
			"copyright": "Copyright © aleen42",
			"minHeaderCount": "2",
			"minHeaderDeep": "2"
		}
	}
}

What Treeview looks like in Markdown?

Treeview will only generate treeviews for headers between level 1 and 6. Here I'll list some cases with different structure (each number means the level a head tag, like 1 for <h1>):

1-1-2-3-4-1
  • 1
  • 1
    • 2
      • 3
        • 4
  • 1
3-4-2-3-4-5-1-2-3
  •  
    •  
      • 3
        • 4
    • 2
      • 3
        • 4
          • 5
  • 1
    • 2
      • 3
1-2-3-1-3-4-5-1-2
  • 1
    • 2
      • 3
  • 1
    •  
      • 3
        • 4
          • 5
  • 1
    • 2

Tests

npm test

Release History

  • ==================== 1.0.0 Initial release ====================
    • 1.5.7 release version
    • 1.5.8 fix bugs
    • 1.5.9 fix bugs of chinese
    • 1.6.1 fix bugs of text indent in markdown style
    • 1.6.9 fix bugs
    • 1.8.0 fix bugs
    • 1.8.3 fix bugs
  • ==================== 2.0.0 Style release ====================
    • 2.0.1 update style
    • 2.0.2 update style
    • 2.0.5 update style
    • 2.0.6 update style
    • 2.0.7 update readme
    • 2.1.3 fix bugs
    • 2.2.1 fix bugs
    • 2.2.2 fix bugs
    • 2.3.0 fix bugs
    • 2.3.4 fix bugs
    • 2.3.5 fix bugs
    • 2.3.7 fix bugs
    • 2.3.8 update readme
    • 2.4.0 update configuration
    • 2.4.1 restrict reading book
    • 2.4.3 fix bugs
    • 2.4.4 fix bugs
    • 2.4.5 update readme
    • 2.4.9 fix bugs
    • 2.5.0 update readme
    • 2.5.8 enhancement for issue #2
    • 2.5.9 update default value
    • 2.6.1 fix bugs
    • 2.6.5 fix bugs
    • 2.6.7 fix bugs
    • 2.6.8 update readme
    • 2.6.9 update readme
    • 2.7.2 fix bugs
    • 2.7.3 update readme
    • 2.7.4 disable console
    • 2.7.7 fix bugs
    • 2.9.5 featuring collapsible lists
    • 2.9.6 update readme
    • 2.9.7 fix bugs
    • 2.9.8 fix the bug of stripping list leader when removing markdown of titles
  • ==================== 3.0.0 Refactor release ====================
    • 3.0.1 fix the bug when calculating headers' level
    • 3.0.2 support collapsed option (false by default) #8
    • 3.0.3 use marked to convert markdown into plain text
    • 3.0.6 use gitbook-color to support light or dark theme

How to contribute

Have an idea? Found a bug? See how to contribute.

📜 License

MIT © aleen42

Note: if you like this project, feel free to buy me a swimming chance:

badges badges badges

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].