Comments (3)
Sorry, what do you mean by "self-generated"? http://afeld.github.io/bootstrap-toc/ itself shows the plugin in use.
use a different layout. There seems to be no documentation available about this situation.
I talk about this a bit here:
http://afeld.github.io/bootstrap-toc/#layout
Can you elaborate on what you're looking to do with it?
from bootstrap-toc.
@afeld With "self-generated" I mean to just statically pre-generate the TOC myself. I don't want to generate it with JavaScript because of SEO purposes.
Also I would like to have a layout like here for example:
http://bootsnipp.com/snippets/featured/accordion-list-group-menu
The default style doesn't seem to have a good usability, as the links are too small for tapping on mobile devices.
As the plugin generates the HTML itself, it seems to be impossible to have a different HTML without refactoring the plugin.
from bootstrap-toc.
statically pre-generate the TOC myself
Ah, gotcha. I haven't made this plugin Node.js-compatible, but that wouldn't be too hard theoretically. I'd accept a pull request for that.
You could also generate the same/similar HTML structure with whatever templating language you use on your server, and then hook up Scrollspy.
the links are too small
I was just trying to match the sidebar on http://getbootstrap.com/css/ ... you can adjust the font size by adding the following to your stylesheet:
/* the top-level nav */
nav[data-toggle='toc'] .nav > li > a {
font-size: 20px;
}
/* the sub-nav */
nav[data-toggle='toc'] .nav .nav > li > a {
font-size: 19px;
}
the plugin generates the HTML itself
Yep, that's kind of the point 😉
I would like to have a layout like here
That seems doable without modifying the plugin... the rounded corners, background and text color, and icons should all be possible by overriding CSS properties, as shown with the font size above.
Hope that helps!
from bootstrap-toc.
Related Issues (20)
- fix build tools with newer versions of Node
- Specify header elements to include i.e. only include <h2> in the TOC HOT 2
- Support unicode CJK characters in headings HOT 1
- Bootstrap toc with Wordpress
- Fix toc with one element HOT 1
- TOC not fixed - help HOT 1
- offset function HOT 2
- yarnpkg HOT 1
- If header starts with a number, scrollspy not works HOT 2
- TOC adjusts margin with sticky-top header HOT 1
- Large number of entries causing overflow requires TOC scrolling HOT 2
- I have a Bootstrap 4 Fixed Navbar - How to Offset? HOT 5
- Remove paragraph symbol (´) from title text
- Break heading in toc if too long
- drop jQuery dependency HOT 5
- How does this work without calling .scrollspy('refresh') ?
- Solution for multi levels
- The $scope parameter is not working.
- Broken unicode support on bootstrap v5 HOT 1
- Uncaught DOMException: Element.querySelector: '#3-1-some-title-level-3' is not a valid selector 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 bootstrap-toc.