Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

links.html 1.4 KB

You have to be logged in to leave a comment. Sign In
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
  1. {% comment %}Get links from each sidebar, as listed in the _config.yml file under sidebars{% endcomment %}
  2. {% for sidebar in site.sidebars %}
  3. {% for entry in site.data.sidebars[sidebar].entries %}
  4. {% for folder in entry.folders %}
  5. {% for folderitem in folder.folderitems %}
  6. {% if folderitem.url contains "html#" %}
  7. [{{folderitem.url | remove: "/" }}]: {{folderitem.url | remove: "/"}}
  8. {% else %}
  9. [{{folderitem.url | remove: "/" | remove: ".html"}}]: {{folderitem.url | remove: "/"}}
  10. {% endif %}
  11. {% for subfolders in folderitem.subfolders %}
  12. {% for subfolderitem in subfolders.subfolderitems %}
  13. [{{subfolderitem.url | remove: "/" | remove: ".html"}}]: {{subfolderitem.url | remove: "/"}}
  14. {% endfor %}
  15. {% endfor %}
  16. {% endfor %}
  17. {% endfor %}
  18. {% endfor %}
  19. {% endfor %}
  20. {% comment %} Get links from topnav {% endcomment %}
  21. {% for entry in site.data.topnav.topnav %}
  22. {% for item in entry.items %}
  23. {% if item.external_url == null %}
  24. [{{item.url | remove: "/" | remove: ".html"}}]: {{item.url | remove: "/"}}
  25. {% endif %}
  26. {% endfor %}
  27. {% endfor %}
  28. {% comment %}Get links from topnav dropdowns {% endcomment %}
  29. {% for entry in site.data.topnav.topnav_dropdowns %}
  30. {% for folder in entry.folders %}
  31. {% for folderitem in folder.folderitems %}
  32. {% if folderitem.external_url == null %}
  33. [{{folderitem.url | remove: "/" | remove: ".html"}}]: {{folderitem.url | remove: "/"}}
  34. {% endif %}
  35. {% endfor %}
  36. {% endfor %}
  37. {% endfor %}
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...