chore(docs): set up initial Hugo scaffolding

main
Jef Roosens 2025-06-18 12:17:49 +02:00
parent dd418c872a
commit 5e653407f2
No known key found for this signature in database
GPG Key ID: 21FD3D77D56BAF49
9 changed files with 32 additions and 2 deletions

3
.gitmodules vendored 100644
View File

@ -0,0 +1,3 @@
[submodule "docs/themes/hugo-book"]
path = docs/themes/hugo-book
url = https://github.com/alex-shpak/hugo-book

View File

@ -42,8 +42,7 @@ run:
cargo run \ cargo run \
--bin otter \ --bin otter \
-- serve \ -- serve \
-c ./otter.toml \ -c ./otter.toml
--log debug
doc: doc:
cargo doc --workspace --frozen --open cargo doc --workspace --frozen --open

4
docs/.gitignore vendored 100644
View File

@ -0,0 +1,4 @@
public/
*.lock
*.tar.gz
/resources/_gen/

12
docs/Justfile 100644
View File

@ -0,0 +1,12 @@
build:
hugo build --minify
package: build
cd public && \
tar --create \
--gzip \
--file ../docs.tar.gz \
*
serve:
hugo serve --buildDrafts

View File

@ -0,0 +1,5 @@
+++
date = '{{ .Date }}'
draft = true
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
+++

View File

@ -0,0 +1 @@
Welcome!

4
docs/hugo.toml 100644
View File

@ -0,0 +1,4 @@
baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'Otter'
theme = "hugo-book"

1
docs/themes/hugo-book vendored 160000

@ -0,0 +1 @@
Subproject commit f2c703e155881a017cabbee17224e2dfeee0498c

View File

@ -1,4 +1,5 @@
data_dir = "./data" data_dir = "./data"
log_level = "debug"
[net] [net]
type = "tcp" type = "tcp"