Giter Site home page Giter Site logo

Comments (12)

XhmikosR avatar XhmikosR commented on May 27, 2024

Friendly ping @toshimaru :)

I could replace those headers with a header > 5 but ideally this should be fixed.

from jekyll-toc.

toshimaru avatar toshimaru commented on May 27, 2024

@XhmikosR Hi, I checked your site and I found you configured custom class for no_toc_section.

https://github.com/twbs/bootstrap/blob/9788baedeadddba9d0bcd4dbaea43d65ece9bcbd/_config.yml#L65

You have two options.

  1. Use bd-example class instead of no_toc_section.
  2. Remove your no_toc_section_class configuration, and use no_toc_section.

I think it's not a bug, so I close the issue, but if any further issue, please let me know.

from jekyll-toc.

XhmikosR avatar XhmikosR commented on May 27, 2024

@toshimaru How come you think it's not a bug? I already add the no_toc_section in the callout, so I expect any header there to not show up in ToC.

from jekyll-toc.

toshimaru avatar toshimaru commented on May 27, 2024
  • Use bd-example class instead of no_toc_section.
  • Remove your no_toc_section_class configuration, and use no_toc_section.

I'd say I already gave options to fix a issue. I'm a not English speaker so if you can't understand the options I gave, could you explain why it doesn't make sense? I could explain the detail more. 👍

from jekyll-toc.

XhmikosR avatar XhmikosR commented on May 27, 2024
  1. I can't add bd-example, that's for other uses
  2. Since I can't specify multiple classes there, I'm stuck.

from jekyll-toc.

XhmikosR avatar XhmikosR commented on May 27, 2024

OK, maybe I misunderstood the docs. I will try something else and if it works then the docs need to be clarified.

from jekyll-toc.

toshimaru avatar toshimaru commented on May 27, 2024

I got it, you'd like to configure multiple no_toc_section classes!! (In your case, no_toc_section and bd-example). Currently, you can configure only one no_toc_section_class.

So, I'd like to propose another option:

  • Remove your no_toc_section_class configuration, which means you can use only no_toc_section class. Then, add no_toc_section to the existing bd-example element.

For exmaple:

<div class="bd-example">

Change it to:

<div class="bd-example no_toc_section">

from jekyll-toc.

XhmikosR avatar XhmikosR commented on May 27, 2024

Yeah but that's the problem, we have 133 bd-example instances. Hence why I had suggested from the beginning to allow multiple classes there :)

from jekyll-toc.

toshimaru avatar toshimaru commented on May 27, 2024

Hmm, I originally don't want to allow no_toc_section_class to have multiple values because it might cause the performance decrement, but I've understood your use case.

I change this issue title and re-open it.

from jekyll-toc.

XhmikosR avatar XhmikosR commented on May 27, 2024

I'm not very familiar with Ruby, but it shouldn't have a noticeable performance penalty in theory.

Let me know if you make a beta with this feature.

Thanks!

from jekyll-toc.

toshimaru avatar toshimaru commented on May 27, 2024

Yes, you’re probably right, I’m being too sensitive about the performance.

I could implement this without the performance impact, am going to release it in the next version. :)

from jekyll-toc.

toshimaru avatar toshimaru commented on May 27, 2024

@XhmikosR Allowing multiple no_toc_section classes has been released at v0.9.1.

ref. https://github.com/toshimaru/jekyll-toc#skip-toc-section

from jekyll-toc.

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.