Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6392728

Browse files
YAML TOC test
1 parent 1d768e4 commit 6392728

File tree

8 files changed

+3702
-946
lines changed

8 files changed

+3702
-946
lines changed

_config.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ incremental: true
1111
safe: false
1212
lsi: false
1313

14-
defaults:
15-
-
16-
scope:
17-
path: ""
18-
values:
19-
layout: "docs"
20-
2114
menu:
2215
- main:
2316
name: "Component Projects"

_data/toc.yaml

Lines changed: 1377 additions & 0 deletions
Large diffs are not rendered by default.

_includes/tree.html

Lines changed: 4 additions & 934 deletions
Large diffs are not rendered by default.

_includes/treeold-take2.html

Lines changed: 1377 additions & 0 deletions
Large diffs are not rendered by default.

_includes/treeold.html

Lines changed: 936 additions & 0 deletions
Large diffs are not rendered by default.

_layouts/docs.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,10 @@
168168
<div class="container-fluid">
169169
<div class="row">
170170
<div class="col-xs-12 col-sm-3 col-md-2 docsidebarnav_section">
171-
<div class="region region-hero-sub">
171+
<div class="region region-hero-sub"><ul class="nav-sub">
172+
{% assign tree = site.data.toc.toc %}
172173
{% include tree.html %}
174+
</ul>
173175
</div>
174176
</div>
175177
<div class="col-xs-12 col-sm-9 col-md-10">

index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ description: Home page for Docker's documentation
33
keywords:
44
- Docker, documentation, manual, guide, reference, api
55
title: Welcome to the Docker Documentation
6+
layout: docs
67
---
8+
<section class="section projects_items_section GenericDev" style="margin-top:-150px; margin-bottom:-150px">
79

8-
# Welcome to the Docker Documentation
10+
<h1 style="text-align:center">Welcome to the Docker Documentation</h1>
911

1012
<span class="search-banner">
1113
<form class="search-form form-inline ng-pristine ng-valid" action="/search/">
@@ -14,6 +16,7 @@ title: Welcome to the Docker Documentation
1416
</form>
1517
</span>
1618

19+
1720
<ul class="items widthcol3 media">
1821
<li>
1922
<div class="media_image">
@@ -160,3 +163,4 @@ title: Welcome to the Docker Documentation
160163

161164
</li>
162165
</ul>
166+
</section>

toc.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
---
2-
layout: null
3-
---
41
{
52
{% for main in site.menu %}"main {{ forloop.index }}": {
63
"title": {{ main.name | jsonify }},

0 commit comments

Comments
 (0)