cleanup formatting
parent
5838f64644
commit
b2e52d6073
|
@ -64,8 +64,8 @@ enableGitInfo = true
|
||||||
|
|
||||||
# (Optional, default false) Display search results with the parent folder as prefix. This
|
# (Optional, default false) Display search results with the parent folder as prefix. This
|
||||||
# option allows you to distinguish between files with the same name in different folders.
|
# option allows you to distinguish between files with the same name in different folders.
|
||||||
# NOTE: This parameter only applies when geekdocSearch=true
|
# NOTE: This parameter only applies when 'geekdocSearch = true'.
|
||||||
GeekdocSearchShowParent = true
|
geekdocSearchShowParent = true
|
||||||
|
|
||||||
# (Optional, default none) Add a link to your Legal Notice page to the site footer.
|
# (Optional, default none) Add a link to your Legal Notice page to the site footer.
|
||||||
# It can be either a remote url or a local file path relative to your content directory.
|
# It can be either a remote url or a local file path relative to your content directory.
|
||||||
|
@ -144,8 +144,8 @@ params:
|
||||||
|
|
||||||
# (Optional, default false) Display search results with the parent folder as prefix. This
|
# (Optional, default false) Display search results with the parent folder as prefix. This
|
||||||
# option allows you to distinguish between files with the same name in different folders.
|
# option allows you to distinguish between files with the same name in different folders.
|
||||||
# NOTE: This parameter only applies when geekdocSearch=true
|
# NOTE: This parameter only applies when 'geekdocSearch: true'.
|
||||||
GeekdocSearchShowParent: true
|
geekdocSearchShowParent: true
|
||||||
|
|
||||||
# (Optional, default none) Add a link to your Legal Notice page to the site footer.
|
# (Optional, default none) Add a link to your Legal Notice page to the site footer.
|
||||||
# It can be either a remote url or a local file path relative to your content directory.
|
# It can be either a remote url or a local file path relative to your content directory.
|
||||||
|
@ -180,8 +180,8 @@ weight = 10
|
||||||
# Set how many table of contents levels to be showed on page.
|
# Set how many table of contents levels to be showed on page.
|
||||||
geekdocToC = 3
|
geekdocToC = 3
|
||||||
|
|
||||||
# Set a description for the current page. This will be shown in toc-trees objects
|
# Set a description for the current page. This will be shown in toc-trees objects.
|
||||||
GeekdocDescription =
|
geekdocDescription =
|
||||||
|
|
||||||
# Show a breadcrumb navigation bar at the top of each docs page.
|
# Show a breadcrumb navigation bar at the top of each docs page.
|
||||||
geekdocBreadcrumb = false
|
geekdocBreadcrumb = false
|
||||||
|
@ -203,8 +203,8 @@ geekdocFlatSection = true
|
||||||
# Set true to hide page or section from side menu (file-tree menu only)
|
# Set true to hide page or section from side menu (file-tree menu only)
|
||||||
geekdocHidden = true
|
geekdocHidden = true
|
||||||
|
|
||||||
# Set false to show this page as a file-tree menu entry when you want it to be hidden in the sidebar
|
# Set false to show this page as a file-tree menu entry when you want it to be hidden in the sidebar.
|
||||||
# NOTE: Only applies when geekdocHidden=true
|
# NOTE: Only applies when 'geekdocHidden = true'.
|
||||||
geekdocHiddenTocTree = true
|
geekdocHiddenTocTree = true
|
||||||
|
|
||||||
# Add an anchor link to headlines
|
# Add an anchor link to headlines
|
||||||
|
@ -224,8 +224,8 @@ weight: 10
|
||||||
# Set how many table of contents levels to be showed on page.
|
# Set how many table of contents levels to be showed on page.
|
||||||
geekdocToC: 3
|
geekdocToC: 3
|
||||||
|
|
||||||
# Set a description for the current page. This will be shown in toc-trees objects
|
# Set a description for the current page. This will be shown in toc-trees objects.
|
||||||
GeekdocDescription:
|
geekdocDescription:
|
||||||
|
|
||||||
# Show a breadcrumb navigation bar at the top of each docs page.
|
# Show a breadcrumb navigation bar at the top of each docs page.
|
||||||
geekdocBreadcrumb: false
|
geekdocBreadcrumb: false
|
||||||
|
@ -247,8 +247,8 @@ geekdocFlatSection: true
|
||||||
# Set true to hide page or section from side menu (file-tree menu only)
|
# Set true to hide page or section from side menu (file-tree menu only)
|
||||||
geekdocHidden: true
|
geekdocHidden: true
|
||||||
|
|
||||||
# Set false to show this page as a file-tree menu entry when you want it to be hidden in the sidebar
|
# Set false to show this page as a file-tree menu entry when you want it to be hidden in the sidebar.
|
||||||
# NOTE: Only applies when geekdocHidden=true
|
# NOTE: Only applies when 'geekdocHidden: true'.
|
||||||
geekdocHiddenTocTree: true
|
geekdocHiddenTocTree: true
|
||||||
|
|
||||||
# Add an anchor link to headlines
|
# Add an anchor link to headlines
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
<ul class="gdoc-nav__list">
|
<ul class="gdoc-nav__list">
|
||||||
{{ range .sect.GroupBy "Weight" }}
|
{{ range .sect.GroupBy "Weight" }}
|
||||||
{{ range .ByTitle }}
|
{{ range .ByTitle }}
|
||||||
{{ if not .Params.geekdocHidden }}
|
{{ if not .Params.GeekdocHidden }}
|
||||||
<li>
|
<li>
|
||||||
{{ if or .Content .Params.geekdocFlatSection }}
|
{{ if or .Content .Params.GeekdocFlatSection }}
|
||||||
<span class="flex">
|
<span class="flex">
|
||||||
<a href="{{ .RelPermalink }}" class="gdoc-nav__entry {{ if eq $current . }}is-active{{ end }}">
|
<a href="{{ .RelPermalink }}" class="gdoc-nav__entry {{ if eq $current . }}is-active{{ end }}">
|
||||||
{{ partial "title" . }}
|
{{ partial "title" . }}
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $numberOfPages := (add (len .Pages) (len .Sections)) }}
|
{{ $numberOfPages := (add (len .Pages) (len .Sections)) }}
|
||||||
{{ if and (ne $numberOfPages 0) (not .Params.geekdocFlatSection) }}
|
{{ if and (ne $numberOfPages 0) (not .Params.GeekdocFlatSection) }}
|
||||||
{{ template "tree-nav" dict "sect" .Pages "current" $current}}
|
{{ template "tree-nav" dict "sect" .Pages "current" $current}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{ $geekdocRepo := default (default false .Site.Params.GeekdocRepo) .Page.Params.GeekdocRepo }}
|
{{ $geekdocRepo := default (default false .Site.Params.GeekdocRepo) .Page.Params.GeekdocRepo }}
|
||||||
{{ $geekdocEditPath := default (default false .Site.Params.GeekdocEditPath) .Page.Params.GeekdocEditPath }}
|
{{ $geekdocEditPath := default (default false .Site.Params.GeekdocEditPath) .Page.Params.GeekdocEditPath }}
|
||||||
{{ if .File }}
|
{{ if .File }}
|
||||||
{{ $.Scratch.Set "geekdocFilePath" (default .File.Path .Page.Params.geekdocFilePath) }}
|
{{ $.Scratch.Set "geekdocFilePath" (default .File.Path .Page.Params.GeekdocFilePath) }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $.Scratch.Set "geekdocFilePath" false }}
|
{{ $.Scratch.Set "geekdocFilePath" false }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -11,9 +11,9 @@
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .sect.GroupBy "Weight" }}
|
{{ range .sect.GroupBy "Weight" }}
|
||||||
{{ range .ByTitle }}
|
{{ range .ByTitle }}
|
||||||
{{ if or (not .Params.geekdocHidden) (not (default true .Params.geekdocHiddenTocTree)) }}
|
{{ if or (not .Params.GeekdocHidden) (not (default true .Params.GeekdocHiddenTocTree)) }}
|
||||||
<li>
|
<li>
|
||||||
{{ if or .Content .Params.geekdocFlatSection }}
|
{{ if or .Content .Params.GeekdocFlatSection }}
|
||||||
<span>
|
<span>
|
||||||
<a href="{{ .RelPermalink }}" class="gdoc-toc__entry">{{ partial "title" . }}{{ with .Params.GeekdocDescription }}:</a> {{ . }}{{ else }}</a>{{ end }}
|
<a href="{{ .RelPermalink }}" class="gdoc-toc__entry">{{ partial "title" . }}{{ with .Params.GeekdocDescription }}:</a> {{ . }}{{ else }}</a>{{ end }}
|
||||||
</span>
|
</span>
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $numberOfPages := (add (len .Pages) (len .Sections)) }}
|
{{ $numberOfPages := (add (len .Pages) (len .Sections)) }}
|
||||||
{{ if and (ne $numberOfPages 0) (not .Params.geekdocFlatSection) }}
|
{{ if and (ne $numberOfPages 0) (not .Params.GeekdocFlatSection) }}
|
||||||
{{ template "toc-tree" dict "sect" .Pages }}
|
{{ template "toc-tree" dict "sect" .Pages }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue