diff options
author | Paul Slaughter <pslaughter@gitlab.com> | 2020-04-29 07:57:08 +0300 |
---|---|---|
committer | Paul Slaughter <pslaughter@gitlab.com> | 2020-05-20 01:06:11 +0300 |
commit | 26bb98496b060ef60d6edc265fa7a12ee9d612a4 (patch) | |
tree | adb7f036b85683099bca6a23d3d76ee06ec1396b /layouts | |
parent | a61458419fe97029cc9d1c198bd313dd6af548b6 (diff) |
Create Vue table_of_contents
Also:
- Updates toc.scss to look for .table-of-contents
- Creates some dom helpers in shared
- Stick to footer directive
- Moves toc collapse button to component
- Fixes issue where collapsed on mobile
affects full view
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/default.html | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/layouts/default.html b/layouts/default.html index b6db4f49c..33afb234b 100644 --- a/layouts/default.html +++ b/layouts/default.html @@ -28,13 +28,9 @@ <% end %> <li class="breadcrumb"><%= @item.key?(:title) ? "#{@item[:title]}" : "Current page" %></li> </ul> - <div id="doc-nav" class="doc-nav"> - <a class="toc-collapse" data-toggle="collapse" href="#markdown-toc" aria-expanded="true" aria-controls="markdown-toc"></a> - </div> + <div id="doc-nav" class="doc-nav"></div> <% else %> - <div id="doc-nav" class="doc-nav toc-no-breadcrumbs"> - <a class="toc-collapse" role="button" data-toggle="collapse" href="#markdown-toc" aria-expanded="true" aria-controls="markdown-toc"></a> - </div> + <div id="doc-nav" class="doc-nav toc-no-breadcrumbs"></div> <% end %> <% end %> <% if @item[:title] %> |