Skip to content

Commit 5ba25da

Browse files
committed
migrate to using hugo modules for themes management, remove unnecessary build files from main as now generated from GitHub Actions, create specific config directory for easier config management
1 parent 19f1097 commit 5ba25da

File tree

91 files changed

+51
-1829
lines changed

Some content is hidden

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

91 files changed

+51
-1829
lines changed

.github/workflows/hugo.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ jobs:
4545
uses: actions/checkout@v4
4646
with:
4747
submodules: recursive
48-
49-
- name: Debug - show directory structure
50-
run: |
51-
echo "Theme directory:"
52-
ls -la themes/ || echo "No themes directory"
53-
echo "Content directory:"
54-
ls -la content/ || echo "No content directory"
5548

5649
- name: Setup Pages
5750
id: pages

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
.DS_Store
2-
/public/
2+
public/
3+
resources/
4+
.hugo_build.lock

.hugo_build.lock

Whitespace-only changes.

config/_default/hugo.toml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# hugo server --minify --themesDir ../.. --baseURL=http://0.0.0.0:1313/theme/hugo-book/
2+
3+
baseURL = 'https://anvaratayev.com/'
4+
languageCode = 'en-gb'
5+
title = 'Anvar A.'
6+
7+
# Theme settings
8+
[module]
9+
[[module.imports]]
10+
path = 'github.com/alex-shpak/hugo-book'
11+
12+
# Core Hugo settings
13+
disablePathToLower = true # book configuration
14+
enableGitInfo = true
15+
enableEmoji = true # enable emojis
16+
publishDir = "public" # make compatible with github pages
17+
18+
# Needed for mermaid/katex shortcodes
19+
# visit https://gohugo.io/getting-started/configuration-markup/#goldmark for more information
20+
[markup]
21+
[markup.goldmark]
22+
[markup.goldmark.renderer]
23+
unsafe = true
24+
25+
[markup.goldmark.extensions]
26+
footnote = true
27+
28+
[markup.goldmark.extensions.passthrough]
29+
enable = true
30+
31+
[markup.goldmark.extensions.passthrough.delimiters]
32+
block = [['\[', '\]'], ['$$', '$$']]
33+
inline = [['\(', '\)'], ['$', '$']]
34+
35+
[markup.tableOfContents]
36+
startLevel = 1

config/_default/languages.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[en]
2+
languageName = "English"
3+
weight = 1

config/_default/menus.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# If you have additional menu configurations beyond BookMenuBundle

hugo.toml renamed to config/_default/params.toml

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,9 @@
1-
# hugo server --minify --themesDir ../.. --baseURL=http://0.0.0.0:1313/theme/hugo-book/
2-
3-
baseURL = 'https://anvaratayev.com/'
4-
languageCode = 'en-gb'
5-
title = 'Anvar A.'
6-
theme = 'hugo-book'
7-
8-
# Book configuration
9-
disablePathToLower = true
10-
enableGitInfo = true
11-
12-
# Enable emojis
13-
enableEmoji = true
14-
15-
# make compatible with github pages
16-
publishDir = "public"
17-
18-
# Needed for mermaid/katex shortcodes
19-
# visit https://gohugo.io/getting-started/configuration-markup/#goldmark for more information
20-
[markup]
21-
22-
[markup.goldmark]
23-
[markup.goldmark.renderer]
24-
unsafe = true
25-
26-
[markup.goldmark.extensions]
27-
footnote = true
28-
29-
[markup.goldmark.extensions.passthrough]
30-
enable = true
31-
32-
[markup.goldmark.extensions.passthrough.delimiters]
33-
block = [['\[', '\]'], ['$$', '$$']]
34-
inline = [['\(', '\)'], ['$', '$']]
35-
36-
[markup.tableOfContents]
37-
startLevel = 1
38-
39-
[params]
401
# Default parameter to have on each generated page, i.e. whether to render math text which is delimieted by $$
412
math = false
423

434
# (Optional, default light) Sets color theme: light, dark or auto.
445
# Theme 'auto' switches between dark and light modes based on browser/os preferences
45-
BookTheme = 'light'
6+
BookTheme = 'auto'
467

478
# (Optional, default true) Controls table of contents visibility on right side of pages.
489
# Start and end levels can be controlled with markup.tableOfContents setting.

go.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module github.com/anvar/anvaratayev.github.io
2+
3+
go 1.25.3
4+
5+
require github.com/alex-shpak/hugo-book v0.0.0-20251019220708-2687e34ac095 // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github.com/alex-shpak/hugo-book v0.0.0-20251019220708-2687e34ac095 h1:KKcWobH9xB+gId1ohl1JU9Trch3NJGbJAGSKi0lA0jo=
2+
github.com/alex-shpak/hugo-book v0.0.0-20251019220708-2687e34ac095/go.mod h1:L4NMyzbn15fpLIpmmtDg9ZFFyTZzw87/lk7M2bMQ7ds=

resources/_gen/assets/book.scss_b807c86e8030af4cdc30edccea379f5f.content

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)