From 4ee031182475464fe0ecb052882fd50520e6defc Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 7 Apr 2025 21:36:41 +0200 Subject: Simplify website structure and drop Hugo A static site generator is currently not really required. A static index.html is currently sufficient. --- web/hugo.toml | 2 -- web/index.html | 25 +++++++++++++++++++++++++ web/layouts/baseof.html | 12 ------------ web/layouts/home.html | 13 ------------- web/meson.build | 24 ++++-------------------- 5 files changed, 29 insertions(+), 47 deletions(-) delete mode 100644 web/hugo.toml create mode 100644 web/index.html delete mode 100644 web/layouts/baseof.html delete mode 100644 web/layouts/home.html (limited to 'web') diff --git a/web/hugo.toml b/web/hugo.toml deleted file mode 100644 index 493ec29..0000000 --- a/web/hugo.toml +++ /dev/null @@ -1,2 +0,0 @@ -title = 'IoT contact' -disableKinds = ["taxonomy", "RSS", "sitemap"] diff --git a/web/index.html b/web/index.html new file mode 100644 index 0000000..db5ee03 --- /dev/null +++ b/web/index.html @@ -0,0 +1,25 @@ + + + + + + + IoT contact + + +

IoT contact

+ +

Printed circuit board

+ + +

Firmware

+ + + diff --git a/web/layouts/baseof.html b/web/layouts/baseof.html deleted file mode 100644 index 96d8e07..0000000 --- a/web/layouts/baseof.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - {{ .Site.Title }} - - - {{ block "main" . }}{{end}} - - diff --git a/web/layouts/home.html b/web/layouts/home.html deleted file mode 100644 index 3bf37d9..0000000 --- a/web/layouts/home.html +++ /dev/null @@ -1,13 +0,0 @@ -{{- define "main" -}} -

{{ .Site.Title }}

- -{{- end -}} diff --git a/web/meson.build b/web/meson.build index da45440..f8c2024 100644 --- a/web/meson.build +++ b/web/meson.build @@ -1,22 +1,6 @@ -website = custom_target('website', - output: ['index.html'], - command: [ - 'hugo', - '--source', meson.current_source_dir(), - '--destination', meson.current_build_dir(), - ], - depend_files: [ - 'hugo.toml', - 'layouts/baseof.html', - 'layouts/home.html', - ], - depends: [ - schematic, - bom, - application, - bootloader, - ], - build_by_default: true, +website = fs.copyfile( + meson.current_source_dir() / 'index.html', + 'index.html', install: true, - install_dir: 'website', + install_dir: '/', ) -- cgit v1.2.3-70-g09d2