@@ -7,6 +7,17 @@ one section at a time** _(the active section)_.
77
88[ ![ NPM Version Badge] ( https://img.shields.io/npm/v/gitbook-plugin-folding-menu.svg )] ( https://www.npmjs.com/package/gitbook-plugin-folding-menu )
99
10+
11+ ## At a Glance
12+
13+ - [ Overview]
14+ - [ Install]
15+ - [ Configuration]
16+ - [ Revision History]
17+ * [ v1.0.1] - Added Configuration * (September 8, 2018)*
18+ * [ v1.0.0] - Initial Release * (September 7, 2018)*
19+
20+
1021## Overview
1122
1223The high-level points of interest are:
@@ -39,29 +50,119 @@ This project is a significant improvement on other similar plugins.
3950
4051## Install
4152
42- - Add the ` "folding-menu" ` plugin to your ** book.json** file:
43-
44- ``` js
45- {
46- " plugins" : [
47- ... other plugins you may be using
48- " folding-menu"
49- ]
53+ 1 . Add the ` "folding-menu" ` plugin to your ** book.json** file:
54+
55+ ** book.json**
56+ ``` js
57+ {
58+ ...
59+ " plugins" : [
60+ ... other plugins you may be using
61+ " folding-menu"
62+ ]
63+ ...
64+ }
65+ ```
66+
67+ 2 . Install the plugin using ** one** of the following options _ (based on your gitbook usage)_ :
68+
69+ - For https://legacy.gitbook.com/ usage, plugins are automatically installed.
70+
71+ - For local gitbook usage run ` gitbook install ` to install and prepare
72+ all plugins for your books:
73+
74+ ``` shell
75+ gitbook install
76+ ```
77+
78+ - For technical users _(ex: open source documentation)_, install the
79+ plugin to your ** devDependencies** as follows:
80+
81+ ` ` ` shell
82+ npm install --save-dev gitbook-plugin-folding-menu
83+ ` ` `
84+
85+
86+ # # Configuration
87+
88+ You may optionally supply the following configuration to this plugin:
89+
90+ < ul><! --- indentation hack for github - other attempts with style is stripped (be careful with number bullets) --->
91+
92+ ** book.json**
93+ ` ` ` js
94+ {
95+ ...
96+ " pluginsConfig" : {
97+ " folding-menu" : {
98+ " animationDuration" : 500,
99+ " sticky" : true
100+ }
50101 }
51- ```
102+ ...
103+ }
104+ ` ` `
105+
106+ < /ul>
107+
108+ - ** animationDuration** - The animation duration in mills ... use 0
109+ (zero) to disable animation ... ** DEFAULT: 400**
110+
111+ - ** sticky** - Leave the last section expanded when a the current
112+ active section has NO sub-content ... ** DEFAULT: false**
113+
114+
115+ # # Revision History
116+
117+
118+ Release | What | * When*
119+ ---------| -------------------------------------------------| ------------------
120+ [v1.0.1] | Added Configuration | * September 8, 2018*
121+ [v1.0.0] | Initial Release | * September 7, 2018*
122+
123+
124+
125+ < ! -- *** RELEASE *************************************************************** -->
126+
127+ # ## v1.0.1 - Added Configuration *(September 8, 2018)*
128+
129+ < ul><ul><! --- indentation hack for github - other attempts with style is stripped (be careful with number bullets) --->
130+
131+ [GitHub Content](https://github.com/KevinAst/gitbook-plugin-folding-menu/tree/v1.0.1)
132+ & bull;
133+ [GitHub Release](https://github.com/KevinAst/gitbook-plugin-folding-menu/releases/tag/v1.0.1)
134+ & bull;
135+ [Diff](https://github.com/KevinAst/gitbook-plugin-folding-menu/compare/v1.0.0...v1.0.1)
136+
137+ ** NOTE** : This release is a ** non-breaking change** _(i.e. no API was affected)_.
138+
139+ - This plugin is now configurable _(see: [Configuration])_.
140+
141+ < /ul></ul>
142+
143+
144+
145+ < ! -- *** RELEASE *************************************************************** -->
146+
147+ # ## v1.0.0 - Initial Release *(September 7, 2018)*
148+
149+ < ul><ul><! --- indentation hack for github - other attempts with style is stripped (be careful with number bullets) --->
150+
151+ [GitHub Content](https://github.com/KevinAst/gitbook-plugin-folding-menu/tree/v1.0.0)
152+ & bull;
153+ [GitHub Release](https://github.com/KevinAst/gitbook-plugin-folding-menu/releases/tag/v1.0.0)
154+
155+ ** This is where it all began ...**
52156
53- - For https://legacy.gitbook.com/ usage, plugins are automatically installed.
157+ < /ul></ul >
54158
55- - For local gitbook usage run ` gitbook install ` to install and prepare
56- all plugins for your books:
57159
58- ``` shell
59- gitbook install
60- ```
61160
62- - For technical users _ (ex: open source documentation)_ , install the
63- plugin to your ** devDependencies** as follows:
64161
65- ``` shell
66- npm install --save-dev gitbook-plugin-folding-menu
67- ```
162+ < ! --- *** REFERENCE LINKS *** --->
163+ [Overview]: # overview
164+ [Install]: # install
165+ [Configuration]: # configuration
166+ [Revision History]: # revision-history
167+ [v1.0.1]: # v101---added-configuration-september-8-2018
168+ [v1.0.0]: # v100---initial-release-september-7-2018
0 commit comments