update required hugo min version to v0.65
parent
e0f69f1cf7
commit
ea44ee3860
|
@ -15,7 +15,7 @@ steps:
|
|||
- gulp default
|
||||
|
||||
- name: test
|
||||
image: klakegg/hugo:0.59.1-ext-alpine
|
||||
image: klakegg/hugo:0.69.0-ext-alpine
|
||||
commands:
|
||||
- cd exampleSite/
|
||||
- mkdir themes/ && ln -s ../../. themes/hugo-geekdoc && hugo-official
|
||||
|
@ -72,7 +72,7 @@ steps:
|
|||
- curl -L https://github.com/xoxys/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C exampleSite/themes/hugo-geekdoc/ --strip-components=1
|
||||
|
||||
- name: test
|
||||
image: klakegg/hugo:0.59.1-ext-alpine
|
||||
image: klakegg/hugo:0.69.0-ext-alpine
|
||||
commands:
|
||||
- cd exampleSite/ && hugo-official
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Hugo Geekdoc Theme
|
||||
|
||||
[![Build Status](https://img.shields.io/drone/build/xoxys/hugo-geekdoc?logo=drone)](https://cloud.drone.io/xoxys/hugo-geekdoc)
|
||||
[![Hugo Version](https://img.shields.io/badge/hugo-0.55-blue.svg)](https://gohugo.io)
|
||||
[![Hugo Version](https://img.shields.io/badge/hugo-0.65-blue.svg)](https://gohugo.io)
|
||||
[![GitHub release](https://img.shields.io/github/v/release/xoxys/hugo-geekdoc)](https://github.com/xoxys/hugo-geekdoc/releases/latest)
|
||||
[![License: MIT](https://img.shields.io/github/license/xoxys/hugo-geekdoc)](LICENSE)
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@ markup:
|
|||
unsafe: true
|
||||
tableOfContents:
|
||||
startLevel: 1
|
||||
endLevel: 9
|
||||
|
||||
params:
|
||||
geekdocToC: 3
|
||||
|
|
|
@ -3,7 +3,7 @@ title: Documentation
|
|||
---
|
||||
|
||||
[![Build Status](https://img.shields.io/drone/build/xoxys/hugo-geekdoc?logo=drone)](https://cloud.drone.io/xoxys/hugo-geekdoc)
|
||||
[![Hugo Version](https://img.shields.io/badge/hugo-0.55-blue.svg)](https://gohugo.io)
|
||||
[![Hugo Version](https://img.shields.io/badge/hugo-0.65-blue.svg)](https://gohugo.io)
|
||||
[![GitHub release](https://img.shields.io/github/v/release/xoxys/hugo-geekdoc)](https://github.com/xoxys/hugo-geekdoc/releases/latest)
|
||||
[![License: MIT](https://img.shields.io/github/license/xoxys/hugo-geekdoc)](LICENSE)
|
||||
|
||||
|
@ -16,7 +16,3 @@ Geekdoc is a simple Hugo theme for documentations. This work is inspired and par
|
|||
- Customisable
|
||||
- Zero initial configuration
|
||||
- Handy shortcodes
|
||||
|
||||
## Requirements
|
||||
|
||||
- Hugo 0.55 or higher
|
||||
|
|
|
@ -1,9 +1,14 @@
|
|||
{{ if not (.Page.Scratch.Get "mermaid") }}
|
||||
<!-- Include mermaid only first time -->
|
||||
<script src="{{ "js/mermaid.min.js" | relURL }}"></script>
|
||||
<script>
|
||||
mermaid.initialize({
|
||||
flowchart: { useMaxWidth: true }
|
||||
});
|
||||
</script>
|
||||
{{ .Page.Scratch.Set "mermaid" true }}
|
||||
{{ end }}
|
||||
|
||||
<p class="mermaid{{ with .Get "class" }} {{ . }}{{ end }}">
|
||||
{{ .Inner }}
|
||||
{{- .Inner -}}
|
||||
</p>
|
||||
|
|
|
@ -15,9 +15,7 @@
|
|||
<li>
|
||||
{{ if or .Content .Params.geekdocFlatSection }}
|
||||
<span>
|
||||
<a href="{{ .RelPermalink }}" class="gdoc-toc__entry">
|
||||
{{ partial "title" . }}
|
||||
</a>
|
||||
<a href="{{ .RelPermalink }}" class="gdoc-toc__entry">{{ partial "title" . }}</a>
|
||||
</span>
|
||||
{{ else }}
|
||||
<span>{{ partial "title" . }}</span>
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
{{ $tocLevels := default (default 6 .Site.Params.GeekdocToC) .Page.Params.GeekdocToC }}
|
||||
|
||||
{{ if and $tocLevels .Page.TableOfContents }}
|
||||
<div class="gdoc-toc gdoc-toc__level--{{$tocLevels}}">
|
||||
{{ .Page.TableOfContents }}
|
||||
<hr>
|
||||
</div>
|
||||
<div class="gdoc-toc gdoc-toc__level--{{$tocLevels}}">{{ .Page.TableOfContents }}<hr></div>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue