Skip to content

Commit 9295154

Browse files
committed
Change theme
1 parent 9f06389 commit 9295154

File tree

228 files changed

+7395
-30
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

228 files changed

+7395
-30
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "themes/ananke"]
22
path = themes/ananke
33
url = https://github.com/theNewDynamic/gohugo-theme-ananke.git
4+
[submodule "themes/hugo-book"]
5+
path = themes/hugo-book
6+
url = https://github.com/alex-shpak/hugo-book
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: "Variants"
3+
description: "Start and read!"
4+
type: page
5+
---
6+
7+
Test
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: "Custom Firmware"
3+
description: "Start and read!"
4+
type: page
5+
---
6+
7+
Test

hugo.toml

+66-30
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
baseURL = 'https://toniebox-reverse-engineering.github.io'
22
languageCode = 'en-gb'
33
title = 'Toniebox Reverse Engineering'
4-
theme = 'ananke'
4+
theme = 'hugo-book'
55
DefaultContentLanguage = 'en'
66

7-
SectionPagesMenu = 'main'
8-
Paginate = 3 # this is set low for demonstrating with dummy content. Set to a higher number
9-
googleAnalytics = ''
10-
enableRobotsTXT = true
7+
8+
# (Optional) Set this to true to enable 'Last Modified by' date and git author
9+
# information on 'doc' type pages.
10+
enableGitInfo = true
11+
# (Optional) Theme is intended for documentation use, therefore it doesn't render taxonomy.
12+
# You can remove related files with config below
13+
disableKinds = ['taxonomy', 'taxonomyTerm'] # (Optional, default light) Sets color theme: light, dark or auto.
1114

1215
[languages]
1316
[languages.en]
@@ -20,28 +23,61 @@ enableRobotsTXT = true
2023
filename = 'sitemap.xml'
2124

2225
[params]
23-
text_color = ''
24-
author = ''
25-
favicon = ''
26-
site_logo = ''
27-
description = ''
28-
# choose a background color from any on this page: http://tachyons.io/docs/themes/skins/ and preface it with 'bg-'
29-
background_color_class = 'bg-black'
30-
body_classes = 'avenir bg-white'
31-
featured_image = ''
32-
recent_posts_number = 2
33-
custom_css = ['/css/style.css']
34-
35-
[[params.ananke_socials]]
36-
name = 'github'
37-
url = 'https://github.com/toniebox-reverse-engineering'
38-
39-
[menu]
40-
[[menu.main]]
41-
name = 'Home'
42-
pageRef = '/'
43-
weight = 10
44-
[[menu.main]]
45-
name = 'How to start'
46-
pageRef = '/howtoget'
47-
weight = 20
26+
# Theme 'auto' switches between dark and light modes based on browser/os preferences
27+
BookTheme = 'auto'
28+
29+
# (Optional, default true) Controls table of contents visibility on right side of pages.
30+
# Start and end levels can be controlled with markup.tableOfContents setting.
31+
# You can also specify this parameter per page in front matter.
32+
BookToC = true
33+
34+
# (Optional, default none) Set the path to a logo for the book. If the logo is
35+
# /static/logo.png then the path would be 'logo.png'
36+
#BookLogo = 'logo.png'
37+
38+
# (Optional, default docs) Specify section of content to render as menu
39+
# You can also set value to "*" to render all sections to menu
40+
BookSection = 'docs'
41+
42+
# Set source repository location.
43+
# Used for 'Last Modified' and 'Edit this page' links.
44+
BookRepo = 'https://github.com/toniebox-reverse-engineering/toniebox-reverse-engineering.github.io'
45+
46+
# Specifies commit portion of the link to the page's last modified commit hash for 'doc' page
47+
# type.
48+
# Required if 'BookRepo' param is set.
49+
# Value used to construct a URL consisting of BookRepo/BookCommitPath/<commit-hash>
50+
# Github uses 'commit', Bitbucket uses 'commits'
51+
BookCommitPath = 'commit'
52+
53+
# Enable 'Edit this page' links for 'doc' page type.
54+
# Disabled by default. Uncomment to enable. Requires 'BookRepo' param.
55+
# Path must point to the site directory.
56+
# BookEditPath = 'edit/master'
57+
58+
# (Optional, default January 2, 2006) Configure the date format used on the pages
59+
# - In git information
60+
# - In blog posts
61+
BookDateFormat = 'Jan 2, 2006'
62+
63+
# (Optional, default true) Enables search function with flexsearch,
64+
# Index is built on fly, therefore it might slowdown your website.
65+
# Configuration for indexing can be adjusted in i18n folder per language.
66+
BookSearch = true
67+
68+
# (Optional, default true) Enables comments template on pages
69+
# By default partials/docs/comments.html includes Disqus template
70+
# See https://gohugo.io/content-management/comments/#configure-disqus
71+
# Can be overwritten by same param in page frontmatter
72+
BookComments = false
73+
74+
# /!\ This is an experimental feature, might be removed or changed at any time
75+
# (Optional, experimental, default false) Enables portable links and link checks in markdown pages.
76+
# Portable links meant to work with text editors and let you write markdown without {{< relref >}} shortcode
77+
# Theme will print warning if page referenced in markdown does not exists.
78+
# BookPortableLinks = true
79+
80+
# /!\ This is an experimental feature, might be removed or changed at any time
81+
# (Optional, experimental, default false) Enables service worker that caches visited pages and resources for offline use.
82+
# BookServiceWorker = true
83+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build with Hugo
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
hugo-version:
11+
- 'latest'
12+
- '0.79.0'
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
submodules: true # Fetch Hugo themes (true OR recursive)
17+
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
18+
19+
- name: Setup Hugo
20+
uses: peaceiris/actions-hugo@v2
21+
with:
22+
hugo-version: ${{ matrix.hugo-version }}
23+
extended: true
24+
25+
- name: Run Hugo
26+
working-directory: exampleSite
27+
run: hugo --themesDir ../..
28+
29+
# - name: Deploy
30+
# uses: peaceiris/actions-gh-pages@v3
31+
# with:
32+
# github_token: ${{ secrets.GITHUB_TOKEN }}
33+
# publish_dir: ./public
34+

themes/hugo-book/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
public/
2+
exampleSite/public/
3+
.DS_Store
4+
.hugo_build.lock

themes/hugo-book/LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2018 Alex Shpak
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)