mirror of
https://github.com/imfing/hextra.git
synced 2025-09-14 03:36:49 -04:00
chore(docs): rename exampleSite
to docs
and create examples
(#813)
* chore(docs): rename `exampleSite` to `docs` and create `examples` * chore(build): update build script to support new version format and source directories; add v0.10 to documentation menu
This commit is contained in:
240
docs/hugo.yaml
Normal file
240
docs/hugo.yaml
Normal file
@@ -0,0 +1,240 @@
|
||||
# Configuration
|
||||
baseURL: "https://example.com/"
|
||||
title: "Hextra"
|
||||
|
||||
enableRobotsTXT: true
|
||||
# Parse Git commit
|
||||
enableGitInfo: true
|
||||
# enableEmoji: false
|
||||
hasCJKLanguage: true
|
||||
|
||||
# services:
|
||||
# googleAnalytics:
|
||||
# ID: G-MEASUREMENT_ID
|
||||
|
||||
outputs:
|
||||
home: [html, llms]
|
||||
page: [html]
|
||||
section: [html, rss]
|
||||
|
||||
defaultContentLanguage: en
|
||||
languages:
|
||||
en:
|
||||
languageName: English
|
||||
weight: 1
|
||||
title: Hextra
|
||||
fa:
|
||||
languageName: فارسی
|
||||
languageCode: fa
|
||||
languageDirection: rtl
|
||||
weight: 2
|
||||
title: هگزترا
|
||||
params:
|
||||
banner:
|
||||
message: |
|
||||
هگزترا **v0.11** منتشر شد! 🎉 [تازهها را ببینید]({{% ref "blog/v0.11" %}})
|
||||
ja:
|
||||
languageName: 日本語
|
||||
languageCode: ja-JP
|
||||
weight: 3
|
||||
title: Hextra
|
||||
params:
|
||||
banner:
|
||||
message: |
|
||||
Hextra **v0.11** がリリースされました!🎉 [新着情報はこちら]({{% ref "blog/v0.11" %}})
|
||||
zh-cn:
|
||||
languageName: 简体中文
|
||||
languageCode: zh-CN
|
||||
weight: 4
|
||||
title: Hextra
|
||||
params:
|
||||
banner:
|
||||
message: |
|
||||
Hextra **v0.11** 发布啦!🎉 查看[更新内容]({{% ref "blog/v0.11" %}})
|
||||
|
||||
module:
|
||||
hugoVersion:
|
||||
extended: true
|
||||
min: "0.146.0"
|
||||
|
||||
workspace: hugo.work
|
||||
imports:
|
||||
- path: github.com/imfing/hextra
|
||||
|
||||
markup:
|
||||
highlight:
|
||||
noClasses: false
|
||||
goldmark:
|
||||
renderer:
|
||||
unsafe: true
|
||||
extensions:
|
||||
passthrough:
|
||||
delimiters:
|
||||
block: [['\[', '\]'], ['$$', '$$']]
|
||||
inline: [['\(', '\)']]
|
||||
enable: true
|
||||
|
||||
enableInlineShortcodes: true
|
||||
|
||||
menu:
|
||||
main:
|
||||
- identifier: documentation
|
||||
name: Documentation
|
||||
pageRef: /docs
|
||||
weight: 1
|
||||
- identifier: versions
|
||||
name: Versions
|
||||
weight: 2
|
||||
- identifier: blog
|
||||
name: Blog
|
||||
pageRef: /blog
|
||||
weight: 3
|
||||
- identifier: about
|
||||
name: About
|
||||
pageRef: /about
|
||||
weight: 4
|
||||
- identifier: showcase
|
||||
name: Showcase
|
||||
pageRef: /showcase
|
||||
weight: 5
|
||||
params:
|
||||
type: link
|
||||
icon: collection
|
||||
- name: Search
|
||||
weight: 6
|
||||
params:
|
||||
type: search
|
||||
- name: GitHub
|
||||
weight: 7
|
||||
url: "https://github.com/imfing/hextra"
|
||||
params:
|
||||
icon: github
|
||||
- identifier: development
|
||||
name: Development ↗
|
||||
url: https://imfing.github.io/hextra/versions/latest/
|
||||
parent: versions
|
||||
params:
|
||||
type: link
|
||||
icon: beaker
|
||||
parent: versions
|
||||
- identifier: v0.10
|
||||
name: v0.10 ↗
|
||||
url: https://imfing.github.io/hextra/versions/v0.10/
|
||||
parent: versions
|
||||
- identifier: v0.9
|
||||
name: v0.9 ↗
|
||||
url: https://imfing.github.io/hextra/versions/v0.9/
|
||||
parent: versions
|
||||
|
||||
sidebar:
|
||||
- identifier: more
|
||||
name: More
|
||||
params:
|
||||
type: separator
|
||||
weight: 1
|
||||
- identifier: about
|
||||
name: "About"
|
||||
pageRef: "/about"
|
||||
weight: 2
|
||||
- identifier: hugoDocs
|
||||
name: "Hugo Docs ↗"
|
||||
url: "https://gohugo.io/documentation/"
|
||||
weight: 3
|
||||
|
||||
params:
|
||||
description: Modern, responsive, batteries-included Hugo theme for creating beautiful static websites.
|
||||
|
||||
externalLinkDecoration: true
|
||||
|
||||
banner:
|
||||
key: 'announcement-v0.11'
|
||||
message: |
|
||||
Hextra **v0.11** is here! 🎉 Discover [what's new]({{% ref "blog/v0.11" %}})
|
||||
|
||||
navbar:
|
||||
displayTitle: true
|
||||
displayLogo: true
|
||||
logo:
|
||||
path: images/logo.svg
|
||||
dark: images/logo-dark.svg
|
||||
# width: 40
|
||||
# height: 20
|
||||
# link: /
|
||||
width: wide
|
||||
|
||||
theme:
|
||||
# light | dark | system
|
||||
default: system
|
||||
displayToggle: true
|
||||
|
||||
footer:
|
||||
enable: true
|
||||
displayCopyright: true
|
||||
displayPoweredBy: true
|
||||
width: normal
|
||||
|
||||
# Display the last modification date
|
||||
displayUpdatedDate: true
|
||||
dateFormat: "January 2, 2006"
|
||||
|
||||
# Search
|
||||
# flexsearch is enabled by default
|
||||
search:
|
||||
enable: true
|
||||
type: flexsearch
|
||||
|
||||
flexsearch:
|
||||
# index page by: content | summary | heading | title
|
||||
index: content
|
||||
# full | forward | reverse | strict
|
||||
# https://github.com/nextapps-de/flexsearch/#tokenizer-prefix-search
|
||||
tokenize: forward
|
||||
|
||||
editURL:
|
||||
enable: true
|
||||
base: "https://github.com/imfing/hextra/edit/main/docs/content"
|
||||
|
||||
blog:
|
||||
list:
|
||||
displayTags: true
|
||||
# date | lastmod | publishDate | title | weight
|
||||
sortBy: date
|
||||
sortOrder: desc # or "asc"
|
||||
# Pagination
|
||||
pagerSize: 20
|
||||
|
||||
article:
|
||||
displayPagination: true
|
||||
|
||||
toc:
|
||||
displayTags: true
|
||||
|
||||
highlight:
|
||||
copy:
|
||||
enable: true
|
||||
# hover | always
|
||||
display: hover
|
||||
|
||||
page:
|
||||
# full (100%), wide (90rem), normal (80rem)
|
||||
width: normal
|
||||
# tabs:
|
||||
# sync: true
|
||||
|
||||
comments:
|
||||
enable: false
|
||||
type: giscus
|
||||
|
||||
# https://giscus.app/
|
||||
giscus:
|
||||
repo: imfing/hextra
|
||||
repoId: R_kgDOJ9fJag
|
||||
category: General
|
||||
categoryId: DIC_kwDOJ9fJas4CY7gW
|
||||
# mapping: pathname
|
||||
# strict: 0
|
||||
# reactionsEnabled: 1
|
||||
# emitMetadata: 0
|
||||
# inputPosition: top
|
||||
# lang: en
|
||||
# theme: noborder_dark
|
Reference in New Issue
Block a user