Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E4BED200D2A for ; Fri, 13 Oct 2017 12:57:44 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E3CBD1609E9; Fri, 13 Oct 2017 10:57:44 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3BC211609D1 for ; Fri, 13 Oct 2017 12:57:44 +0200 (CEST) Received: (qmail 98206 invoked by uid 500); 13 Oct 2017 10:57:43 -0000 Mailing-List: contact commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list commits@lucene.apache.org Received: (qmail 98174 invoked by uid 99); 13 Oct 2017 10:57:43 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Oct 2017 10:57:43 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D008CDFBC7; Fri, 13 Oct 2017 10:57:40 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ab@apache.org To: commits@lucene.apache.org Date: Fri, 13 Oct 2017 10:57:42 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [3/8] lucene-solr:jira/solr-11285: Ref Guide: fix "how to edit Jekyll" docs so section-toc optional parameter displays in output archived-at: Fri, 13 Oct 2017 10:57:45 -0000 Ref Guide: fix "how to edit Jekyll" docs so section-toc optional parameter displays in output Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/05ce9684 Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/05ce9684 Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/05ce9684 Branch: refs/heads/jira/solr-11285 Commit: 05ce9684825434c5c2da1e4fa6d6c8eeb8386460 Parents: 4f52d2d Author: Cassandra Targett Authored: Thu Oct 12 09:50:58 2017 -0500 Committer: Cassandra Targett Committed: Thu Oct 12 09:51:59 2017 -0500 ---------------------------------------------------------------------- solr/solr-ref-guide/src/meta-docs/jekyll.adoc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/05ce9684/solr/solr-ref-guide/src/meta-docs/jekyll.adoc ---------------------------------------------------------------------- diff --git a/solr/solr-ref-guide/src/meta-docs/jekyll.adoc b/solr/solr-ref-guide/src/meta-docs/jekyll.adoc index f2a8b72..264a5cd 100644 --- a/solr/solr-ref-guide/src/meta-docs/jekyll.adoc +++ b/solr/solr-ref-guide/src/meta-docs/jekyll.adoc @@ -56,10 +56,17 @@ The Solr Ref Guide uses the front matter to define some custom attributes on a p There are also some optional custom attributes that can be defined in pages to affect the Table of Contents presentation in jekyll: * `page-toclevels` - changes how "deep" the TOC will be in terms of nested section/sub-section titles (default = 2) -* `page-tocclass` - changes the CSS class applied to the TOC, default = "normal", resulting in the class name `toc-normal`. The other option is "right", to put the TOC on the right side of the page. +* `page-tocclass` - changes the CSS class applied to the TOC. The default is `normal`, resulting in the class name `toc-normal` being used in the HTML. The other option is `right`, to put the TOC on the right side of the page. * `page-toc` - if this is false, then no TOCs will be generated for the page at all. -NOTE: The special macro `{section-toc}` can be used anywhere in a page to create an "In this Section" TOC covering only the sub-headings in the same section. `:page-toc: false` will also prevent this macro from working, so if you want no "top level" TOC, but you do want section TOCs, use `:page-toclevels: 0` +[NOTE] +==== +The special macro `\{section-toc}` can be used anywhere in a page to create an "In this Section" TOC covering only the sub-headings in the same section. + +Setting `:page-toc: false` will prevent this macro from working, so if you want no "top level" TOC, but you do want section TOCs, use `:page-toclevels: 0`. +==== + +The format for adding any parameter to the front matter is to use colons on both sides of the parameter, followed by the value for the parameter (such as `:page-toc: false`). === Layouts