Skip to content
This repository was archived by the owner on Oct 27, 2020. It is now read-only.

plugin compatibility with the gitbook 2.0.1 #4

Merged
merged 1 commit into from
Apr 28, 2015

Conversation

todvora
Copy link
Contributor

@todvora todvora commented Apr 27, 2015

Hi,
I made some changes in the hook and adapted it to the gitbook 2.0.1. This should solve the issue #3. It uses the page hook. The generated edit link is inserted directly into the page and later moved by plugin.js back to the menu bar. Gitbook still says, that warn: hook 'page' used by plugin 'gitbook-plugin-edit-link' is deprecated, and will be remove in the coming versions, but lots of plugins depend on this hook and I hope it will be available also in next releases.

Could you please review and test the code on your setup? In the readme you don't mention any release/compatibility guidelines and I am not sure, how much backwards compatible my code is.

I tested this PR in single and multilanguage book setups and it seems to work fine. But one never knows.

Best regards,
Tomas

@rahul286
Copy link
Member

@todvora Thanks for PR. :-)

I am aware of the issue - #3

I also posted about it here - GitbookIO/gitbook#724

I will merge this PR and update readme notes from here #3 (comment) and also add more details.

rahul286 added a commit that referenced this pull request Apr 28, 2015
plugin compatibility with the gitbook 2.0.1
@rahul286 rahul286 merged commit 754ec7a into rtCamp:master Apr 28, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants