Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fix: speedup docs development
- Fix werf compose up. - Use jekyll_base image (as in werf/website). - Remove assets.precompile - lead to errors with updated Jekyll and sprockets. - Use include-cached plugin to render sidebar. - Change js to activate sidebar item. Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
- Loading branch information
1 parent
9e49fe9
commit 2dc150a
Showing
9 changed files
with
95 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ highlighter: rouge | |
|
||
plugins: | ||
- jekyll-assets | ||
- jekyll-include-cache | ||
|
||
markdown: kramdown | ||
kramdown: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
{%- assign sidebar = site.data.sidebars[page.sidebar].entries[page.lang] %} | ||
{%- assign sidebar = site.data.sidebars[include.sidebar].entries[include.lang] %} | ||
|
||
<div class="sidebar__wrapper-inner"> | ||
<nav class="sidebar__container"> | ||
<ul class="sidebar" id="mysidebar"> | ||
{%- for entry in sidebar.f %} | ||
{% include sidebar_entry.html entry=entry folder_entry_class="sidebar__item sidebar__item_parent" item_entry_class="sidebar__item" data_attr="data-parent" %} | ||
{% include sidebar_entry.html entry=entry folder_entry_class="sidebar__item sidebar__item_parent" item_entry_class="sidebar__item" data_attr="data-parent" is_404=include.is_404 %} | ||
{%- endfor %} | ||
</ul> | ||
</nav> | ||
</div> | ||
|
||
<!-- this highlights the active parent class in the navgoco sidebar. this is critical so that the parent expands when you're viewing a page. This must appear below the sidebar code above. Otherwise, if placed inside customscripts.js, the script runs before the sidebar code runs and the class never gets inserted.--> | ||
<script>$("li.active").parents('li').toggleClass("active");</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters