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
{{ message }}
This repository was archived by the owner on Oct 27, 2020. It is now read-only.
**Note**: Above snippet can be used as complete `book.json` file, if your book doesn't have one yet.
34
51
35
52
**Github/Gitlab**: In string `...REPO/edit/BRANCH...`, you may replace `edit` with `tree` if you want source file to open in read-mode, rather than edit-mode directly on github/gitlab.
@@ -44,6 +61,16 @@ Link target will be that page's source file on Github or Gitlab or any repo.
44
61
1. If you are not seeing the "Edit this page" link, check if your `book.json` is valid. You can use this online tool - [http://json.parser.online.fr/beta/](http://json.parser.online.fr/beta/)
45
62
2. Check if you are using default gitbook theme. It is NOT recommended to modify gitbook themes directly.
46
63
64
+
## Known Issue
65
+
66
+
Gitbook 2.0.1 has removed `page:after` hook which this plugin needs. An issue has been reported here - https://github.com/GitbookIO/gitbook/issues/724 but meanwhile this plugin is using workaround added by this pull request - https://github.com/rtCamp/gitbook-plugin-edit-link/pull/4
67
+
68
+
So when using Gitbook 2.0.1, you may see following warning in console at the time of running build:
69
+
70
+
> warn: hook 'page' used by plugin 'gitbook-plugin-edit-link' is deprecated, and will be remove in the coming versions
71
+
72
+
You can safely ignore above warning for now.
73
+
47
74
## How this work?
48
75
49
76
This plugin simply looks for HTML comment `<!-- Actions Right -->` in parsed page content and insert "edit link" HTML just before `<!-- Actions Right -->`.
@@ -52,6 +79,10 @@ This means if that HTML comment changes, this plugin will break but I hope to fi
52
79
53
80
## Changelog
54
81
82
+
**1.3 - 28 April 2015**
83
+
84
+
- Gitbook 2.0.1 compatibility added by [@todvora](https://github.com/rtCamp/gitbook-plugin-edit-link/pull/4). Please see known-issues for more details.
85
+
55
86
**1.2 - 03 April 2015**
56
87
57
88
- Multiligual gitbook support added by [@aniav](https://github.com/aniav) ([#2](https://github.com/rtCamp/gitbook-plugin-edit-link/pull/2))
0 commit comments