Giter Club home page Giter Club logo

gitbook-plugin-anchors's Introduction

Gitbook Anchors Plugin

Add Github style heading anchors to your book.

Add the plugin to your book.json:

{
	"plugins" : [ "anchors" ]
}		

gitbook-plugin-anchors's People

Contributors

aarono avatar bebraw avatar citizenmatt avatar eloy-hp avatar jpreynat avatar kaustavdm avatar rlmv avatar samypesse avatar ty- avatar vihanb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gitbook-plugin-anchors's Issues

Add support for Gitbook 3

On gitbook v3.0.0-pre1 they have changed the API, so now the plugin totally crash. Please update it to add support for upcoming versions.

Anchor tags always visible

Add Github style heading anchors to your book.

Normally on Github these anchor links are invisible until the user mouses over the heading, but that isn't the case when using this plugin. Is that intended or is there something wrong with my install?

Styling issues with GitBook 1.0

Can't see the link icon properly when you hover over a heading with GitBook 1.0. If you update the plugin.css a.plugin-anchor rule to have padding-left: 40px it works. I've no idea why ๐Ÿ˜„

hook 'page' is deprecated

By using gitbook 2.0.0, autocover raise the next error

hook 'page' used by plugin 'gitbook-plugin-anchors' is deprecated, and will be remove in the coming versions

This should be updated.

anchor jump not working

Hi,

We have updated to the latest gitbook version. Now, we have found that anchors are not working.

For example, you visit the Url, it is defined, but browser does not jump.

To fix it, we have added jQuery and a script with addcssjs plugin. In this way, location it forced to jump to the Url with anchor.

var target = window.location.hash;

window.location.hash = "";

$(document).ready(function() {
    setTimeout(function() {
        document.location.hash = target;
    }, 50);
});

Anchor icon font-size is overridden (too large)

We're using Gitbook v2.6.5, and plugin version 0.5.0, and the anchor icon is too large.

anchors plugin bug

The font-size property for the span appears to be overridden by higher specificity CSS from Gitbook itself.

I've hacked a fix for it by including some extra CSS into our book:

a.plugin-anchor span {
  font-size: 15px !important;
}

I'm not sure whether using !important is the right approach, but it works. :-/

gitbook-plugin-anchors is deprecated

Hi,
Thank you for your plugin, it's great.

But did you notice that it generates some warnings with Gitbook > 2.x. :

warn: hook 'page' used by plugin 'gitbook-plugin-anchors' is deprecated, and will be removed in the coming versions

Do you have plan to support Gitbook 2 and superior ?
Thx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.