Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Rules
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2018-04-11 23:33:56 +0300
committerGabriel Mazetto <brodock@gmail.com>2018-10-31 17:50:23 +0300
commitf5d63398cb487ea09f6869bff46627ac9a5fe5db (patch)
tree2c76fab821913c5a740f9c976581625a225150dd /Rules
parentc58e6eccc581edd04bf064ac35550c4c1317257b (diff)
Allow disabling of TOC with `toc: false` flag in frontmatter
Diffstat (limited to 'Rules')
-rw-r--r--Rules7
1 files changed, 4 insertions, 3 deletions
diff --git a/Rules b/Rules
index 7003d082..563f4d1e 100644
--- a/Rules
+++ b/Rules
@@ -62,14 +62,15 @@ compile '/**/*.md' do
# GitLab price / tiers specific badges
filter :badges
- # Use Kramdown with Rouge.
- # https://kramdown.gettalong.org/options.html
+ # Use GitlabKramdown with Rouge.
+ # https://gitlab.com/brodock/gitlab_kramdown
filter :gitlab_kramdown,
input: 'GitlabKramdown',
syntax_highlighter: 'rouge',
hard_wrap: false,
auto_ids: true,
- toc_levels: 2..5
+ toc_levels: 2..5,
+ with_toc: include_toc
filter :colorize_syntax,
default_colorizer: :rouge