-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.txt
executable file
·67 lines (60 loc) · 2.01 KB
/
urls.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
layout: none
search: exclude
sidebar:
- mydoc_sidebar
- product1_sidebar
- product2_sidebar
---
{% for sidebar in page.sidebar %}
{% for entry in site.data.sidebars[sidebar].entries %}
{% for folder in entry.folders %}
{% for folderitem in folder.folderitems %} {% unless folderitem.type == "frontmatter" or folderitem.type == "homepage" or folderitem.external_url %}
{{folderitem.url | replace: "/", "" }}:
title: "{{folderitem.title }}"
url: {{folderitem.url | prepend: site.baseurl }}
link: <a href="{{folderitem.url | prepend: site.baseurl }}">{{folderitem.title}}</a>
{% endunless %}
{% for subfolders in folderitem.subfolders %}
{% for subfolderitem in subfolders.subfolderitems%} {% unless subfolderitem.type == "frontmatter" or subfolderitem.external_url %}
{{subfolderitem.url | replace: "/" }}:
title: "{{subfolderitem.title}}"
url: {{subfolderitem.url| prepend: site.baseurl }}
link: <a href="{{subfolderitem.url | prepend: site.baseurl }}">{{subfolderitem.title}}</a>
{% endunless %}
{% endfor %}
{% endfor %}
{% endfor %}
{% endfor %}
{% endfor %}
{% endfor %}
{% comment %}
_
| |_ ___ _ __ _ __ __ ___ __
| __/ _ \| '_ \| '_ \ / _` \ \ / /
| || (_) | |_) | | | | (_| |\ V /
\__\___/| .__/|_| |_|\__,_| \_/
|_|
{% endcomment %}
{% for entry in site.data.topnav.topnav %}
{% for item in entry.items %}
{% unless item.external_url %}
{{item.url | replace: "/", ""| replace: "\", ""}}:
title: "{{item.title}}"
url: "{{item.url | replace: "/", ""| replace: "\", ""}}"
link: "<a href='{{item.url}}'>{{item.title}}</a>"
{% endunless %}
{% endfor %}
{% endfor %}
{% for entry in site.data.topnav.topnav_dropdowns %}
{% for folder in entry.folders %}
{% for folderitem in folder.folderitems %}
{% unless folderitem.external_url %}
{{folderitem.url | replace: "/", ""| replace: "\", "" }}:
title: "{{folderitem.title}}"
url: "{{folderitem.url| replace: "/", ""| replace: "\", ""}}"
link: "<a href='{{folderitem.url}}'>{{folderitem.title}}</a>"
{% endunless %}
{% endfor %}
{% endfor %}
{% endfor %}