You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Chris Hostetter <ho...@fucit.org> on 2017/05/22 17:03:00 UTC

Re: lucene-solr:master: SOLR-10612: Fix precommit (tabs)

Thanks Jan,

I have re-educated my emacs setup to ensure it realizes that my 
'no-fucking-tabs' hook should be applied to css and javascript as well.



: Date: Sun, 21 May 2017 08:58:43 +0000 (UTC)
: From: janhoy@apache.org
: Reply-To: dev@lucene.apache.org
: To: commits@lucene.apache.org
: Subject: lucene-solr:master: SOLR-10612: Fix precommit (tabs)
: 
: Repository: lucene-solr
: Updated Branches:
:   refs/heads/master a62256897 -> f62248c90
: 
: 
: 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/master
: 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
: +    })
: +
: +  });
:  }
: 
: 

-Hoss
http://www.lucidworks.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org