]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Make use of jekyll-toc's `no_toc_section` class.
authorXhmikosR <xhmikosr@gmail.com>
Sun, 14 Oct 2018 05:43:05 +0000 (08:43 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Sat, 20 Oct 2018 18:39:53 +0000 (21:39 +0300)
Requires jekyll-toc v0.8.0.

Gemfile
Gemfile.lock
site/_includes/callout.html
site/_includes/example.html
site/docs/4.1/assets/scss/_sidebar.scss

diff --git a/Gemfile b/Gemfile
index b55eecfd70f700d35c3e3cc5cacc77479fde6adc..2465694d3e9f46e634430250141f3d3eea11cb43 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -4,5 +4,5 @@ group :development, :test do
   gem 'jekyll', '~> 3.8.4'
   gem 'jekyll-redirect-from', '~> 0.14.0'
   gem 'jekyll-sitemap', '~> 1.2.0'
-  gem 'jekyll-toc', '~> 0.7.1'
+  gem 'jekyll-toc', '~> 0.8.0'
 end
index 206678adb5cc80d64ca315740e92c5b94c2df3a1..27775aa3fb0dcf9f4be731caf9599fb96ab7fc0f 100644 (file)
@@ -35,7 +35,7 @@ GEM
       sass (~> 3.4)
     jekyll-sitemap (1.2.0)
       jekyll (~> 3.3)
-    jekyll-toc (0.7.1)
+    jekyll-toc (0.8.0)
       nokogiri (~> 1.7)
     jekyll-watch (2.1.1)
       listen (~> 3.0)
@@ -74,7 +74,7 @@ DEPENDENCIES
   jekyll (~> 3.8.4)
   jekyll-redirect-from (~> 0.14.0)
   jekyll-sitemap (~> 1.2.0)
-  jekyll-toc (~> 0.7.1)
+  jekyll-toc (~> 0.8.0)
 
 BUNDLED WITH
    1.16.6
index ff9450dc44f8df3a152b1a2df5f3519bffcfff78..067e49f19845cb4a80911b05bcc69a13ce36770b 100644 (file)
@@ -4,6 +4,6 @@ where content is a capture with the content
 and type is one of: info (default), danger, warning
 {%- endcomment -%}
 {%- assign css_class = include.type | default: "info" -%}
-<div class="bd-callout bd-callout-{{ css_class }}">
+<div class="bd-callout bd-callout-{{ css_class }} no_toc_section">
   {{- include.content | markdownify -}}
 </div>
index 24d12626b66a1b46ceb6c22ab4d5209c3b8cabe7..d2f8182d680b10aa63271975e3b459c44c649c2f 100644 (file)
@@ -11,7 +11,7 @@ optional: hide_markup - disabled (default)
 {%- assign preview_class = include.class -%}
 
 {%- if include.hide_preview == null -%}
-<div{% if preview_id %} id="{{ preview_id }}"{% endif %} class="bd-example{% if preview_class %} {{ preview_class }}{% endif %}">
+<div{% if preview_id %} id="{{ preview_id }}"{% endif %} class="bd-example no_toc_section{% if preview_class %} {{ preview_class }}{% endif %}">
   {{- include.content -}}
 </div>
 {%- endif -%}
index 610458a38db0fd73e1e61338059689904ade0cec..6e5ec8a418dc75f9a0c0129b13364549668dcca8 100644 (file)
 
   ul {
     padding-left: 1rem;
-
-    ul {
-      display: none;
-    }
   }
 }