Skip to content

Commit dbf6ac4

Browse files
author
Splitter
committed
starters: port docs template
1 parent 1e6a3b0 commit dbf6ac4

21 files changed

+114
-405
lines changed

.github/workflows/publish.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Deploy website to GitHub Pages
22

33
env:
4-
WC_HUGO_VERSION: '0.119.0'
4+
WC_HUGO_VERSION: '0.122.0'
55

66
on:
77
# Trigger the workflow every time you push to the `main` branch
@@ -51,6 +51,8 @@ jobs:
5151
run: |
5252
echo "Hugo Cache Dir: $(hugo config | grep cachedir)"
5353
hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
54+
- name: Generate Pagefind search index
55+
run: npx pagefind --source "public"
5456
- name: Upload artifact
5557
uses: actions/upload-pages-artifact@v2
5658
with:

README.md

+16-14
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
1-
# [Hugo Documentation Theme](https://github.com/HugoBlox/theme-documentation)
1+
# [Hugo Docs Theme](https://github.com/HugoBlox/theme-documentation)
22

3-
[![Screenshot](./preview.png)](https://hugoblox.com/templates/)
3+
[![Screenshot](./.github/preview.png)](https://hugoblox.com/templates/details/docs/)
44

5-
The **Documentation** starter template empowers you to easily create **product documentation**, **digital books**, **personal notes**, and **knowledge bases**.
5+
The Hugo **Documentation Template** empowers with everything you need to build a beautiful documentation website, including a customizable block-based homepage and blog. It's ultra-fast and easy, letting you focus on your content. It's also no-code by default, so no JavaScript knowledge is required unlike other templates!
66

7-
[![Get Started](https://img.shields.io/badge/-Get%20started-ff4655?style=for-the-badge)](https://hugoblox.com/hugo-themes/)
7+
**Trusted by 250,000+ creators, teams, and organizations.** Highly customizable via the integrated **no-code, block-based website builder**, making every site truly personalized ⭐⭐⭐⭐⭐
8+
9+
[![Get Started](https://img.shields.io/badge/-Get%20started-ff4655?style=for-the-badge)](https://hugoblox.com/templates/details/docs/)
810
[![Discord](https://img.shields.io/discord/722225264733716590?style=for-the-badge)](https://discord.com/channels/722225264733716590/742892432458252370/742895548159492138)
9-
[![Twitter Follow](https://img.shields.io/twitter/follow/GetResearchDev?label=Follow%20on%20Twitter)](https://twitter.com/wowchemy)
11+
[![Twitter Follow](https://img.shields.io/twitter/follow/GetResearchDev?label=Follow%20on%20Twitter)](https://twitter.com/GetResearchDev)
1012

11-
[Check out the latest demo](https://docs.hugoblox.com/) of what you'll get in less than 10 minutes, or [get inspired by how others are using this template](https://hugoblox.com/creators/).
13+
[Check out the latest demo](https://docs.hugoblox.com/) of what you'll get in less than 10 minutes, or [view the showcase](https://hugoblox.com/creators/).
1214

13-
The integrated [**Wowchemy**](https://hugoblox.com) website builder and CMS makes it easy to create a beautiful website for free. Edit your site in the CMS (or your favorite editor), generate it with [Hugo](https://github.com/gohugoio/hugo), and deploy with GitHub or Netlify. Customize anything on your site with widgets, light/dark themes, and language packs.
15+
The integrated [**Hugo Blox**](https://hugoblox.com) website builder and CMS makes it easy to create a beautiful website for free. Edit your site in the CMS (or your favorite editor), generate it with [Hugo](https://github.com/gohugoio/hugo), and deploy with GitHub or Netlify. Customize anything on your site with widgets, light/dark themes, and language packs.
1416

15-
- 👉 [**Get Started**](https://hugoblox.com/hugo-themes/)
17+
- 👉 [**Get Started**](https://hugoblox.com/templates/details/docs/)
1618
- 📚 [View the **documentation**](https://docs.hugoblox.com/)
17-
- 💬 [Chat with the **Wowchemy research community**](https://discord.gg/z8wNYzb) or [**Hugo community**](https://discourse.gohugo.io)
18-
- ⬇️ **Automatically import citations from BibTeX** with the [Hugo Academic CLI](https://github.com/GetRD/academic-file-converter)
19-
- 🐦 Share your new site with the community: [@wowchemy](https://twitter.com/wowchemy) [@GeorgeCushen](https://twitter.com/GeorgeCushen) [#MadeWithWowchemy](https://twitter.com/search?q=%23MadeWithWowchemy&src=typed_query)
19+
- 💬 [Chat with the **Hugo Blox Builder community**](https://discord.gg/z8wNYzb) or [**Hugo community**](https://discourse.gohugo.io)
20+
- ⬇️ **Automatically import citations from BibTeX** with the [Academic File Converter](https://github.com/GetRD/academic-file-converter)
21+
- 🐦 Share your new site with the community: [@GetResearchDev](https://twitter.com/GetResearchDev) [@GeorgeCushen](https://twitter.com/GeorgeCushen) [#MadeWithHugoBlox](https://twitter.com/search?q=%23MadeWithHugoBlox&src=typed_query)
2022
- 🗳 [Take the survey and help us improve #OpenSource](https://forms.gle/NioD9VhUg7PNmdCAA)
2123
- 🚀 [Contribute improvements](https://github.com/HugoBlox/hugo-blox-builder/blob/main/CONTRIBUTING.md) or [suggest improvements](https://github.com/HugoBlox/hugo-blox-builder/issues)
22-
- ⬆️ **Updating?** View the [Update Guide](https://docs.hugoblox.com/hugo-tutorials/update/) and [Release Notes](https://github.com/HugoBlox/hugo-blox-builder/releases)
24+
- ⬆️ **Updating?** View the [Update Guide](https://docs.hugoblox.com/reference/update/) and [Release Notes](https://github.com/HugoBlox/hugo-blox-builder/releases)
2325

2426
## We ask you, humbly, to support this open source movement
2527

26-
Today we ask you to defend the open source independence of the Wowchemy website builder and themes 🐧
28+
Today we ask you to defend the open source independence of the Hugo Blox Builder and themes 🐧
2729

2830
We're an open source movement that depends on your support to stay online and thriving, but 99.9% of our creators don't give; they simply look the other way.
2931

30-
### [❤️ Click here to become a GitHub Sponsor, unlocking awesome perks such as _exclusive academic templates and widgets_](https://github.com/sponsors/gcushen)
32+
### [❤️ Click here to become a Sponsor, unlocking awesome perks such as _exclusive_ templates and blox_](https://hugoblox.com/sponsor/)

assets/media/icon.png

-8.64 KB
Loading

config/_default/hugo.yaml

+32-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Hugo Documentation: https://gohugo.io/getting-started/configuration/#all-configuration-settings
44
# This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/
55

6-
title: 'My Project' # Website name
6+
title: "Hugo Docs" # Website name
77
baseURL: 'https://example.com/' # Website URL
88

99
############################
@@ -16,6 +16,31 @@ cascade:
1616
path: /docs/**
1717
editable: true
1818
show_breadcrumb: true
19+
# Blog post options
20+
- _target:
21+
path: /post/**
22+
kind: page
23+
pager: true
24+
editable: true
25+
hide_date: false
26+
show_date_updated: true
27+
reading_time: true
28+
commentable: true
29+
show_related: true
30+
share: true
31+
# Just use Breadcrumb for navigation on blog post pages?
32+
show_breadcrumb: false
33+
header:
34+
navbar:
35+
enable: true
36+
# Blog section options
37+
- _target:
38+
path: /post/*
39+
kind: section
40+
# Change url to /blog/
41+
url: /blog/
42+
# Set the listing view
43+
view: date-title-summary
1944

2045
############################
2146
## LANGUAGE
@@ -30,24 +55,28 @@ removePathAccents: true
3055
## ADVANCED
3156
############################
3257

58+
build:
59+
writeStats: true
3360
enableGitInfo: false
3461
summaryLength: 30
3562
paginate: 10
3663
enableEmoji: true
3764
enableRobotsTXT: true
3865
footnotereturnlinkcontents: <sup>^</sup>
3966
ignoreFiles: [\.ipynb$, .ipynb_checkpoints$, \.Rmd$, \.Rmarkdown$, _cache$]
67+
enableInlineShortcodes: true
4068
permalinks:
4169
authors: '/author/:slug/'
4270
tags: '/tag/:slug/'
4371
categories: '/category/:slug/'
4472
disableAliases: true
4573
outputs:
46-
home: [HTML, RSS, JSON, WebAppManifest, headers, redirects]
74+
home: [HTML, RSS, WebAppManifest, headers, redirects]
75+
page: [HTML]
4776
section: [HTML, RSS]
4877
imaging:
4978
resampleFilter: lanczos
50-
quality: 75
79+
quality: 85
5180
anchor: smart
5281
timeout: 600000
5382
taxonomies:

config/_default/menus.yaml

+24-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# Navigation Links
2-
# To link a homepage widget, specify the URL as a hash `#` followed by the filename of the
3-
# desired widget in your `content/home/` folder.
42
# The weight parameter defines the order that the links will appear in.
53

64
main:
@@ -10,3 +8,27 @@ main:
108
- name: Documentation
119
url: docs/
1210
weight: 20
11+
- name: Blog
12+
url: blog/
13+
weight: 30
14+
- name: Showcase
15+
url: showcase/
16+
weight: 40
17+
- name: Community
18+
url: community/
19+
weight: 50
20+
21+
sidebar:
22+
- identifier: more
23+
name: Still need help?
24+
params:
25+
type: separator
26+
weight: 1
27+
- identifier: community
28+
name: "Community"
29+
pageRef: "/community"
30+
weight: 2
31+
- identifier: hugoDocs
32+
name: "Hugo Docs ↗"
33+
url: "https://docs.hugoblox.com"
34+
weight: 3

config/_default/module.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
imports:
88
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify
9-
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5
9+
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind

config/_default/params.yaml

+24-35
Original file line numberDiff line numberDiff line change
@@ -4,92 +4,81 @@
44
# This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/
55

66
# Appearance
7-
87
appearance:
9-
theme_day: minimal
10-
theme_night: minimal
11-
font: minimal
12-
font_size: L
8+
mode: light
9+
color: blue
1310

1411
# SEO
15-
1612
marketing:
1713
seo:
1814
site_type: Project
1915
local_business_type: ''
2016
org_name: ''
21-
description: 'A highly-customizable Hugo documentation theme powered by Hugo Blox Builder.'
17+
description: 'A highly-customizable Hugo documentation theme powered by Hugo Blox website builder.'
2218
twitter: 'GetResearchDev'
2319
analytics:
2420
google_analytics: ''
25-
baidu_tongji: ''
2621
google_tag_manager: ''
2722
microsoft_clarity: ''
23+
baidu_tongji: ''
24+
plausible: ''
25+
fathom: ''
26+
pirsch: ''
2827
verification:
2928
google: ''
3029
baidu: ''
3130

3231
# Site header
33-
3432
header:
3533
navbar:
3634
enable: true
37-
align: l
38-
show_logo: true
39-
show_language: false
40-
show_day_night: true
35+
blox: "navbar"
36+
align: "center"
37+
fixed_to_top: true
38+
logo:
39+
text: ""
40+
# Logo filename in `assets/media/` folder
41+
filename: "logo.svg"
42+
button:
43+
enable: true
44+
text: "Get Started"
45+
url: "https://hugoblox.com/templates/details/docs/"
4146
show_search: true
42-
highlight_active_link: true
47+
show_theme_chooser: true
4348

49+
# Site footer
4450
footer:
4551
copyright:
46-
notice: '© {year} Me. This work is licensed under {license}'
52+
notice: '© {year} My Company. This work is licensed under {license}'
4753
license:
4854
enable: true
4955
allow_derivatives: false
5056
share_alike: true
5157
allow_commercial: false
5258

5359
# Localization
54-
5560
locale:
5661
date_format: 'Jan 2, 2006'
5762
time_format: '3:04 PM'
5863

5964
# Site features
60-
6165
features:
62-
syntax_highlighter:
63-
theme_light: github-light
64-
theme_dark: dracula
6566
math:
6667
enable: false
6768
privacy_pack:
6869
enable: false
6970
repository:
70-
url: 'https://github.com/wowchemy/hugo-documentation-theme'
71-
content_dir: content
72-
branch: main
71+
url: 'https://github.com/HugoBlox/hugo-blox-builder/'
72+
content_dir: 'starters/documentation/content'
73+
branch: 'main'
7374
feedback:
7475
responses:
7576
positive: 'Glad to hear it! [Any ideas for improvements?](https://github.com/<USERNAME>/<REPO>/issues/new).'
7677
negative: 'Sorry to hear that. [Please tell us how we can improve](https://github.com/<USERNAME>/<REPO>/issues/new).'
7778
comment:
7879
provider: ''
79-
disqus:
80-
shortname: ''
81-
show_count: true
82-
commento:
83-
url: ''
8480
giscus:
8581
repo: ''
8682
repo_id: ''
8783
category: ''
8884
category_id: ''
89-
search:
90-
provider: wowchemy
91-
algolia:
92-
app_id: ''
93-
api_key: ''
94-
index_name: ''
95-
show_logo: false

content/docs/_index.md

+12-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
---
2-
title: Docs
3-
type: book # Do not modify.
4-
toc: false
2+
linkTitle: Documentation
3+
title: Introduction
54
---
65

7-
Welcome to the _Project Docs_ template!
6+
👋 Welcome to the demo of the Hugo Blox Documentation template!
87

9-
{{< cta cta_text="👉 Get Started with Chapter 1" cta_link="chapter1" >}}
8+
<!--more-->
9+
10+
This site is a demo of the Hugo Blox Documentation theme. For the full documentation on how to use this template, refer to the [Hugo Blox Documentation](https://docs.hugoblox.com/).
11+
12+
## Next
13+
14+
{{< cards >}}
15+
{{< card url="getting-started" title="Get Started" icon="document-text" subtitle="Create your docs in just 5 minutes!" >}}
16+
{{< /cards >}}

content/docs/chapter1/_index.md

-56
This file was deleted.

0 commit comments

Comments
 (0)