You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix README typos
* Add failing test for code-block text replacement behaviour
* Change implementation to make test pass
* Update the example to demonstrate the bug fix
* Add screenshot to the readme
Copy file name to clipboardExpand all lines: README.md
+12-8Lines changed: 12 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,9 @@ Simple Glossary for Docsify that replaces occurrences of words in text with link
6
6
Forked from [TheGreenToaster/docsify-glossary](https://github.com/TheGreenToaster/docsify-glossary) as the original
7
7
project was unmaintained for over 3 years, to address a couple of usability issues with the original script.
8
8
9
-
An example usage can be found here [./example](./example), it is deployed automatically to this [github page](https://stijn-dejongh.github.io/docsify-glossary/#/).
9
+
An example usage can be found here [./example](./example), it is deployed automatically to this [GitHub page](https://stijn-dejongh.github.io/docsify-glossary/#/).
10
+
11
+

10
12
11
13
## Installation
12
14
@@ -19,9 +21,9 @@ An example usage can be found here [./example](./example), it is deployed automa
19
21
1. Create a `_glossary.md` file in the root directory
20
22
2. Populate the `_glossary.md` file with terms.
21
23
22
-
## Plugim Usage
24
+
## Plugin Usage
23
25
24
-
* Terms must be predicated with a consistent markdown heading to get recognized by the glossary (see configuration)
26
+
* Terms must be predicated with a consistent Markdown heading to get recognized by the glossary (see configuration)
25
27
* Terms are replaced with links in the order that they appear in the glossary file.
26
28
* This is especially relevant for nested terminology ( e.g. _API_ and _API Usage_)
27
29
@@ -41,10 +43,13 @@ We recommend using [Node Version Manager](https://npm.github.io/installation-set
41
43
42
44
Once the code has been built, you can launch the example website illustrating the use of the glossary.
43
45
In order to do so:
44
-
3. Go to [http://localhost:3000/]()
46
+
47
+
1. Go to [http://localhost:3000/]()
48
+
2. copy the latest version of the code into the example website: `cp ./dist/@stijn-dejongh/docsify-glossary* ./example`
49
+
3. Run `docsify serve example`
45
50
46
51
## Changelog
47
-
Simple Glossary for Docsify
52
+
48
53
An overview of all the changes made to this codebase can be found in the [CHANGELOG](./CHANGELOG.md) file included in this repository.
49
54
50
55
## TODO list
@@ -54,9 +59,8 @@ An overview of all the changes made to this codebase can be found in the [CHANGE
54
59
*[x] make glossary file name/location configurable, see [feature request #1](https://github.com/TheGreenToaster/docsify-glossary/issues/1)
55
60
*[x] make terminology heading depth configurable, see [feature request #1](https://github.com/TheGreenToaster/docsify-glossary/issues/1)
56
61
*[x] fix issue with terminology replacements in page headers/titles, see: [bug report #6](https://github.com/TheGreenToaster/docsify-glossary/issues/6)
57
-
*[] fix issue with terminology replacements in code blocks, see: [bug report #4](https://github.com/TheGreenToaster/docsify-glossary/issues/4)
62
+
*[x] fix issue with terminology replacements in code blocks, see: [bug report #4](https://github.com/TheGreenToaster/docsify-glossary/issues/4)
58
63
*[x] fix issue with multiple word terms, see: [bug report #13]([bug report #13](https://github.com/TheGreenToaster/docsify-glossary/issues/13))
59
64
60
65
61
-
1. copy the latest version of the code into the example website: `cp ./dist/@stijn-dejongh/docsify-glossary* ./example`
Copy file name to clipboardExpand all lines: example/README.md
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,16 @@ Mizzen galleon aye Pirate Round capstan grapple jolly boat American Main tackle
5
5
Yellow Jack case shot Nelsons folly ye interloper gangway Sink me heave to capstan lanyard. Starboard bucko long boat chase spike gunwalls piracy log aft brigantine. Skysail piracy fathom sheet gangway transom boom Spanish Main tackle pressgang.
6
6
7
7
Crack Jennys tea cup Buccaneer broadside Cat o'nine tails weigh anchor bilge water scurvy jolly boat crimp haul wind. Grog take a caulk brigantine spanker haul wind knave Yellow Jack bounty poop deck red ensign. Hogshead scourge of the seven seas interloper Admiral of the Black draught pillage black spot trysail hang the jib marooned.
8
-
9
-
8
+
9
+
Here is some code to help the English pirate hunters find the notorious pirate Jack Rackham:
Yellow Jack was an Admiral, Admiral, Admiral. (This Admiral line was added to demonstrate multiple replacements, as mentioned in [issue nr 13](https://github.com/TheGreenToaster/docsify-glossary/issues/13))
Copy file name to clipboardExpand all lines: example/_glossary.md
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,19 @@
6
6
7
7
A commander of a fleet or naval squadron, or a naval officer of very high rank.
8
8
9
-
## B - X
9
+
## B - I
10
10
11
11
Nothing here....
12
12
13
+
## J
14
+
15
+
### Jack Rackham
16
+
17
+
Jack Rackham was a gentleman pirate with flamboyant fashion sense and a way with female pirates who were dressed like men– notably, Anne Bonny and Mary Read.
0 commit comments