GithubHelp home page GithubHelp logo

Hyperlink to tab about docsify-tabs HOT 5 CLOSED

jhildenbiddle avatar jhildenbiddle commented on May 13, 2024
Hyperlink to tab

from docsify-tabs.

Comments (5)

jhildenbiddle avatar jhildenbiddle commented on May 13, 2024

HI @markbattistella.

Should be easy enough to add, but I have some concerns about treating tabs as anchor links. Auto-scrolling a tab set to the top of the viewport means site visitors will arrive on a page without context for the tab content they are viewing.

Is the goal to allow navigating to directly to tab sets from other sites or to jump directly to tab sets from links in your own site docs?

from docsify-tabs.

markbattistella avatar markbattistella commented on May 13, 2024

I think it may have been a bug when I was doing it locally but on the live environment it works.

But the intention was that you would have the user be pointed into the tab, and then the heading without having to click in

from docsify-tabs.

jhildenbiddle avatar jhildenbiddle commented on May 13, 2024

@markbattistella Well, glad it's fixed! :)

Thanks for taking the time to file the PR. Much appreciated.

from docsify-tabs.

A-Circle-Zhang avatar A-Circle-Zhang commented on May 13, 2024

Hi @jhildenbiddle , thank you for developing and maintaining docsify-tabs.

setActiveTabFromAnchor is not working with routerMode: 'history', which use url query to mark an anchor instead of url hash.
so I just replace window.location.hash with window.location.search for my project.

I think there should be a conditional statement of routerMode in setActiveTabFromAnchor function in index.js.

from docsify-tabs.

Related Issues (20)

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.