Bläddra i källkod

Update Bootstrap documentation (5.3)

Fixes #1939.
Simon Legner 2 år sedan
förälder
incheckning
662aaa1fa0
2 ändrade filer med 7 tillägg och 5 borttagningar
  1. 4 0
      assets/stylesheets/pages/_bootstrap.scss
  2. 3 5
      lib/docs/scrapers/bootstrap.rb

+ 4 - 0
assets/stylesheets/pages/_bootstrap.scss

@@ -8,6 +8,8 @@
     float: right;
   }
 
+  .h5 { font-size: 1.25rem; }
+
   .bs-callout { @extend %note; }
   .bs-callout-info { @extend %note-blue; }
   .bs-callout-danger { @extend %note-red; }
@@ -36,6 +38,7 @@
   }
 
   .col { margin-bottom: 1.5em; }
+  .d-block { display: block; }
 
   @media (min-width: 800px) {
     .row {
@@ -50,5 +53,6 @@
       -moz-box-sizing: border-box;
            box-sizing: border-box;
     }
+    .col-md-6 { width: 50%; }
   }
 }

+ 3 - 5
lib/docs/scrapers/bootstrap.rb

@@ -10,8 +10,7 @@ module Docs
 
     # https://github.com/twbs/bootstrap/blob/master/LICENSE
     options[:attribution] = <<-HTML
-      &copy; 2011&ndash;2022 Twitter, Inc.<br>
-      &copy; 2011&ndash;2022 The Bootstrap Authors<br>
+      &copy; 2011&ndash;2023 The Bootstrap Authors<br>
       Code licensed under the MIT License.<br>
       Documentation licensed under the Creative Commons Attribution License v3.0.
     HTML
@@ -23,9 +22,8 @@ module Docs
 
       html_filters.push 'bootstrap/entries_v5', 'bootstrap/clean_html_v5'
 
-      options[:only_patterns] = [
-        /\Agetting-started\//, /\Alayout\//, /\Acontent\//,
-        /\Acomponents\//, /\Autilities\/.+/, /\Ahelpers\//
+      options[:skip_patterns] = [
+        /\Aabout\//
       ]
 
       options[:replace_paths] = {