-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce a human-readable sitemap to the documentation (#1403)
* doc: Update reference * doc: Add sitemap
- Loading branch information
1 parent
a790856
commit 7c68b2d
Showing
7 changed files
with
59 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: "Sitemap" | ||
description: "" | ||
weight: 10 | ||
--- | ||
|
||
{{< sitemap >}} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
title: "Command-line Interface Reference" | ||
description: "" | ||
--- |
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
11 changes: 11 additions & 0 deletions
11
doc/themes/the-things-stack/layouts/partials/sitemap-recursion.html
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
<li> | ||
<a href="{{ .Permalink }}">{{ .Title }}</a> | ||
{{ if .Pages }} | ||
<ul> | ||
{{ range .Pages }} | ||
{{ partial "sitemap-recursion.html" . }} | ||
{{ end }} | ||
</ul> | ||
{{ end }} | ||
</li> |
19 changes: 19 additions & 0 deletions
19
doc/themes/the-things-stack/layouts/shortcodes/sitemap.html
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>{{ .Site.Title }} - Sitemap</title> | ||
</head> | ||
<body> | ||
<div class="sitemap-container"> | ||
<ul> | ||
{{ range .Site.Sections }} | ||
{{ if ne .Title "Sitemap" }} | ||
{{ partial "sitemap-recursion.html" . }} | ||
{{ end }} | ||
{{ end }} | ||
</ul> | ||
</div> | ||
</body> | ||
</html> |