From a8fd0d16002b35731b9364d08b4f119aa13bdcec Mon Sep 17 00:00:00 2001 From: kisenka Date: Thu, 16 Apr 2015 21:20:47 +0400 Subject: [PATCH] JS-3317 Support for directories in webhelp ui --- _SUMMARY.md | 3 +++ _config.yml | 1 - _layouts/webhelp.html | 2 +- {lib => _lib}/toc_generator.rb | 6 +++++- {lib => _lib}/util/erb.rb | 0 _rake/build_toc.rake | 2 +- another-subfolder/another-sub-subfolder/page.md | 9 +++++++++ another-subfolder/page.md | 7 +++++++ subfolder/sub-subfolder/page.md | 8 ++++++++ 9 files changed, 34 insertions(+), 4 deletions(-) rename {lib => _lib}/toc_generator.rb (94%) rename {lib => _lib}/util/erb.rb (100%) create mode 100644 another-subfolder/another-sub-subfolder/page.md create mode 100644 another-subfolder/page.md create mode 100644 subfolder/sub-subfolder/page.md diff --git a/_SUMMARY.md b/_SUMMARY.md index 5e26edca8..1ddf725cf 100644 --- a/_SUMMARY.md +++ b/_SUMMARY.md @@ -4,6 +4,9 @@ Also you can use HTML-comments. --> +* [Test page from subfolder](subfolder/sub-subfolder/page.html) +* [Test subpage from subfolder](another-subfolder/page.html) + * [Test another page from subfolder](another-subfolder/another-sub-subfolder/page.html) * [Basic Topics](basic_topics.html) * [Getting Started](getting_started.html) * [Check Out And Build Community Edition](checkout_and_build_community.html) diff --git a/_config.yml b/_config.yml index 4a020f1f5..47cec39c7 100644 --- a/_config.yml +++ b/_config.yml @@ -17,7 +17,6 @@ exclude: - '*.scss' - README* - Rakefile - - lib - webhelp-template - code_samples diff --git a/_layouts/webhelp.html b/_layouts/webhelp.html index 17ff80991..c606c7e36 100644 --- a/_layouts/webhelp.html +++ b/_layouts/webhelp.html @@ -3,7 +3,7 @@ {% assign product_version = site.product_version %} {% assign page_title = page.title %} {% assign page_title_with_h1 = '' %} - {% assign page_id = page.name | replace:'.md','' %} + {% assign page_id = page.url %} {% assign page_content = content %} {% capture shortcut_switcher %}