mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2025-06-11 03:04:07 +00:00
theme renderer
This commit is contained in:
parent
37b9ae824d
commit
3ee7afcb69
@ -1,7 +1,7 @@
|
|||||||
# hugo server --minify --themesDir ... --baseURL=http://0.0.0.0:1313/theme/hugo-book/
|
# hugo server --minify --themesDir ... --baseURL=http://0.0.0.0:1313/theme/hugo-book/
|
||||||
|
|
||||||
baseURL = 'https://example.com/'
|
baseURL = 'https://documentation-theme.pages.dev/'
|
||||||
title = 'Hugo Book'
|
title = 'Decentraland Documentation'
|
||||||
theme = 'documentation-theme'
|
theme = 'documentation-theme'
|
||||||
|
|
||||||
# Book configuration
|
# Book configuration
|
||||||
|
2
go.mod
2
go.mod
@ -1,3 +1,3 @@
|
|||||||
module github.com/alex-shpak/hugo-book
|
module github.com/decentraland/documentation-theme
|
||||||
|
|
||||||
go 1.16
|
go 1.16
|
||||||
|
@ -4,4 +4,4 @@
|
|||||||
{{ . | $.Page.RenderString }}
|
{{ . | $.Page.RenderString }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
13
layouts/shortcodes/expand.html
Normal file
13
layouts/shortcodes/expand.html
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{{ warnf "Expand shortcode is deprecated. Use 'details' instead." }}
|
||||||
|
<div class="book-expand">
|
||||||
|
<label>
|
||||||
|
<div class="book-expand-head flex justify-between">
|
||||||
|
<span>{{ default (i18n "Expand") (.Get 0) }}</span>
|
||||||
|
<span>{{ default "↕" (.Get 1) }}</span>
|
||||||
|
</div>
|
||||||
|
<input type="checkbox" class="hidden" />
|
||||||
|
<div class="book-expand-content markdown-inner">
|
||||||
|
{{ .Inner | markdownify }}
|
||||||
|
</div>
|
||||||
|
</label>
|
||||||
|
</div>
|
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
|||||||
|
{"Target":"book.min.ac322ad916b031cdbbc06969f65f151f2aa7d436ff20c63971985257f5c12e61.css","MediaType":"text/css","Data":{"Integrity":"sha256-rDIq2RawMc27wGlp9l8VHyqn1Db/IMY5cZhSV/XBLmE="}}
|
@ -1,11 +1,11 @@
|
|||||||
# theme.toml template for a Hugo theme
|
# theme.toml template for a Hugo theme
|
||||||
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
|
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
|
||||||
|
|
||||||
name = "Book"
|
name = "Decentraland Theme"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
licenselink = "https://github.com/alex-shpak/hugo-book/blob/master/LICENSE"
|
licenselink = "https://github.com/decentraland/documentation-theme/blob/master/LICENSE"
|
||||||
description = "Hugo documentation theme as simple as plain book"
|
description = "Hugo documentation theme as simple as plain book"
|
||||||
homepage = "https://github.com/alex-shpak/hugo-book"
|
homepage = "https://github.com/decentraland/documentation-theme"
|
||||||
demosite = "https://hugo-book-demo.netlify.app"
|
demosite = "https://hugo-book-demo.netlify.app"
|
||||||
tags = ["responsive", "clean", "documentation", "docs", "flexbox", "search", "mobile", "multilingual", "disqus"]
|
tags = ["responsive", "clean", "documentation", "docs", "flexbox", "search", "mobile", "multilingual", "disqus"]
|
||||||
features = []
|
features = []
|
||||||
|
Loading…
Reference in New Issue
Block a user