Comments (3)
Hi @Nemo1166.
This is an easy fix.
Docsify-tabs inserts itself as the first entry in docsify's plugin array, but it should be inserted at the end of the array to give users the ability to arrange plugins as needed. For example, the following plugins would need to be loaded in this specific order:
<script src="//cdn.jsdelivr.net/npm/docsify@4/lib/plugins/front-matter.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-mustache@1"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-tabs@1"></script>
The fix is now available in the dev branch. Feel free to checkout that branch, build, and test using one of the files in the /dist
directory. Once we've confirmed that the fix is working for you, I will publish a new version to npm.
from docsify-tabs.
Hi @Nemo1166.
Closing this due to inactivity. I have confirmed the fix here:
The fix will be available it the next version which will be released by EOD tomorrow.
from docsify-tabs.
Well, here is one of alternative solutions. I can write HTML directly like:
---
Branch: [0,1,2]
---
<div class="docsify-tabs docsify-tabs--classic">
<button class="docsify-tabs__tab" data-tab="{{Branch.0}}">{{Branch.0}}</button>
<div class="docsify-tabs__content" data-tab-content="{{Branch.0}}">
Lorem ipsum dolor sit amet,
</div>
<button class="docsify-tabs__tab" data-tab="{{Branch.1}}">{{Branch.1}}</button>
<div class="docsify-tabs__content" data-tab-content="{{Branch.1}}">
consectetur adipisicing elit,
</div>
<button class="docsify-tabs__tab" data-tab="{{Branch.2}}">{{Branch.2}}</button>
<div class="docsify-tabs__content" data-tab-content="{{Branch.2}}">
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</div>
</div>
It works normally.
from docsify-tabs.
Related Issues (20)
- Hyperlink to tab HOT 5
- Minor typos in docs
- Doesn't work on pages linked via `alias` HOT 7
- Tab titles aren't processed by the markdown compiler HOT 2
- Tab not working in my case HOT 2
- I need your help,using this plug-in, refresh, can not locate the exact location of the page HOT 1
- Can tabs add support for the chinese title? HOT 2
- File include support HOT 1
- Vue.css theme is not supported HOT 1
- Wrong parse with escape chars HOT 1
- Tabs not rendering as tabs HOT 4
- access document link ‘?Id=xxx’ positioning problem HOT 1
- Tabs unselected when changing pages HOT 7
- Multiple tabs with same name changed together when one tab is clicked, how to change only one? HOT 1
- After [filename](README.md ':include'), the docsify-tabs plugin in README.md fails HOT 1
- Search Functionality in Tabs Tables HOT 1
- Redirection to a header makes the tab active HOT 3
- Error when in quote HOT 4
- Can we independently control the label synchronization switching function? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docsify-tabs.