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:
authorConnor Shea <connor.james.shea@gmail.com>2016-11-17 04:02:00 +0300
committerConnor Shea <connor.james.shea@gmail.com>2016-11-17 04:02:00 +0300
commitbdd7fad6feda53bd54452ba7d2ac41d6224fbf45 (patch)
tree7c1f17ad727885b11ee5ca6a38c4ae4c108ca6d6 /Rules
parentb872e678ddf2998c0d6da50460b3c03d332414fc (diff)
More specific ToC inclusion rule.
Diffstat (limited to 'Rules')
-rw-r--r--Rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rules b/Rules
index 1ac2d72c..d718627e 100644
--- a/Rules
+++ b/Rules
@@ -30,7 +30,7 @@ end
compile '/**/*.md' do
if item[:redirect].nil?
- include_toc = item.identifier.to_s.end_with?("README.md") ? false : true
+ include_toc = item.identifier.to_s.split("/")[2] == "README.md" ? false : true
# Use Redcarpet with Rouge.
filter :redcarpet,