You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by cp...@apache.org on 2017/05/25 17:36:52 UTC

[47/59] [abbrv] lucene-solr:jira/solr-8668: SOLR-10612: Fix precommit (tabs)

SOLR-10612: Fix precommit (tabs)


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/f62248c9
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/f62248c9
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/f62248c9

Branch: refs/heads/jira/solr-8668
Commit: f62248c90a4a139e49a42efe39dddabd6fb51732
Parents: a622568
Author: Jan Høydahl <ja...@apache.org>
Authored: Sun May 21 10:42:05 2017 +0200
Committer: Jan Høydahl <ja...@apache.org>
Committed: Sun May 21 10:42:05 2017 +0200

----------------------------------------------------------------------
 solr/solr-ref-guide/src/css/ref-guide.css   |  8 ++--
 solr/solr-ref-guide/src/js/ref-guide-toc.js | 58 ++++++++++++------------
 2 files changed, 33 insertions(+), 33 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/f62248c9/solr/solr-ref-guide/src/css/ref-guide.css
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/css/ref-guide.css b/solr/solr-ref-guide/src/css/ref-guide.css
index 8cbe0f2..a17a07d 100644
--- a/solr/solr-ref-guide/src/css/ref-guide.css
+++ b/solr/solr-ref-guide/src/css/ref-guide.css
@@ -1102,10 +1102,10 @@ body.toc2 #header > h1:nth-last-child(2)
        and (min-width : 768px)
 {
     #toc.toc-right
-    {   
-	float: right;
-	margin-left: 1em;
-	border: none;
+    {
+        float: right;
+        margin-left: 1em;
+        border: none;
     }
 }
 .toc > ul

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/f62248c9/solr/solr-ref-guide/src/js/ref-guide-toc.js
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/js/ref-guide-toc.js b/solr/solr-ref-guide/src/js/ref-guide-toc.js
index 3acd191..fd80c6f 100644
--- a/solr/solr-ref-guide/src/js/ref-guide-toc.js
+++ b/solr/solr-ref-guide/src/js/ref-guide-toc.js
@@ -2,35 +2,35 @@
 
 // NOTE: toc.html is only include if :page-toc: is true, so it's safe to do this document.ready unconditionally
 function do_tocs(page_toc_levels) {
-    $( document ).ready(function() {
+  $( document ).ready(function() {
 
-	// headers used - start at 2, and we have to be careful about trailing comma
-	toc_headers = 0 < page_toc_levels ? 'h2' : '';
-	
-	for (i = 1; i < page_toc_levels; i++) {
-	    toc_headers += ",h" + (2 + i);
-	}
-	// top level TOC
-	$('#toc').toc({ minimumHeaders: 2, listType: 'ul', showSpeed: 0, headers: toc_headers });
-	
-	// any subsection TOCs
-	$('.section-toc').each(function() {
-            // toc() needs a selector string, so we'll build one by fetching the id of the nearest header
-	    // that comes before us, then use to make a selector for all sub headers in the same section
-	    // NOTE: this depends a lot of the particular structure of HTML asciidoctor generates
-	    header = $(this).closest("div:has(:header:first-child)").children(":header").first();
-            selector = "#" + header.attr("id") + " ~ * :header";
-            $(this).toc({ minimumHeaders: 2, listType: 'ul', showSpeed: 0, headers: selector });
-	});
-	
-	/* this offset helps account for the space taken up by the floating toolbar. */
-	$('.toc').on('click', 'a', function() {
-	    var target = $(this.getAttribute('href'))
-	    , scroll_target = target.offset().top
-	    
-	    $(window).scrollTop(scroll_target - 10);
-	    return false
-	})
-	
+    // headers used - start at 2, and we have to be careful about trailing comma
+    toc_headers = 0 < page_toc_levels ? 'h2' : '';
+
+    for (i = 1; i < page_toc_levels; i++) {
+      toc_headers += ",h" + (2 + i);
+    }
+    // top level TOC
+    $('#toc').toc({ minimumHeaders: 2, listType: 'ul', showSpeed: 0, headers: toc_headers });
+
+    // any subsection TOCs
+    $('.section-toc').each(function() {
+      // toc() needs a selector string, so we'll build one by fetching the id of the nearest header
+      // that comes before us, then use to make a selector for all sub headers in the same section
+      // NOTE: this depends a lot of the particular structure of HTML asciidoctor generates
+      header = $(this).closest("div:has(:header:first-child)").children(":header").first();
+      selector = "#" + header.attr("id") + " ~ * :header";
+      $(this).toc({ minimumHeaders: 2, listType: 'ul', showSpeed: 0, headers: selector });
     });
+
+    /* this offset helps account for the space taken up by the floating toolbar. */
+    $('.toc').on('click', 'a', function() {
+      var target = $(this.getAttribute('href'))
+          , scroll_target = target.offset().top
+
+      $(window).scrollTop(scroll_target - 10);
+      return false
+    })
+
+  });
 }