Add content bad and use container images for site

This commit is contained in:
Christian Galo 2025-04-01 02:19:51 -05:00
parent c27c634740
commit 8f63f7abb5
8 changed files with 91 additions and 3 deletions

3
.gitignore vendored
View File

@ -6,6 +6,3 @@
# AI generated content
CLAUDE.md
# Content is on separate repository
content/

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
#####################################################################
# Build Stage #
#####################################################################
FROM hugomods/hugo:exts as builder
# Base URL
ARG HUGO_BASEURL=
ENV HUGO_BASEURL=${HUGO_BASEURL}
# Build site
COPY . /src
# Replace below build command at will.
RUN hugo
#####################################################################
# Final Stage #
#####################################################################
FROM hugomods/hugo:nginx
# Copy the generated files to keep the image as small as possible.
COPY --from=builder /src/public /site

23
Makefile Normal file
View File

@ -0,0 +1,23 @@
.PHONY: dev build push release
TIMESTAMP := $(shell date +%Y%m%d.%H%M)
IMAGE := git.coopcloud.tech/wiki-cafe/wiki-cafe-site
# Start development server
dev:
docker run --rm -v $(pwd):/src -p 1313:1313 hugomods/hugo:base-non-root-0.145.0 server -D
build:
docker build \
-t $(IMAGE):$(TIMESTAMP) \
-t $(IMAGE):last \
--build-arg HUGO_BASEURL=https://wiki.cafe \
.
push:
docker push $(IMAGE):$(TIMESTAMP)
docker push $(IMAGE):last
release: build push
@echo "Release created with timestamp: $(TIMESTAMP)"
@echo "Push to Gitea registry: make login tag-registry push-registry"

11
content/_index.md Normal file
View File

@ -0,0 +1,11 @@
---
title: "Wiki Cafe"
date: 2025-03-14T04:59:59Z
draft: false
---
{{< hero >}}
Wiki Cafe is a [co-op](pages/co-op) \
that provides [fedwiki hosting](pages/fedwiki_service) \
and [wiki education](pages/wiki_education) services.
{{< /hero >}}

8
content/pages/co-op.md Normal file
View File

@ -0,0 +1,8 @@
---
title: "Co-op"
date: 2022-02-14T22:03:26-05:00
draft: false
hideMeta: true
---
Wiki Cafe is a co-operative in its early stages of formation. We value multistakeholder governance and cooperative principles in our goal to enable new ways of sharing and creating.

View File

@ -0,0 +1,7 @@
---
title: 'Federated Wiki'
date: '2025-03-20T05:19:15Z'
draft: true
---
Federated Wiki, or Fedwiki, is a tool for managing knowledge in a collaborative but decentralized way.

View File

@ -0,0 +1,12 @@
---
title: "Fedwiki Service"
date: 2022-02-14T21:42:36-05:00
draft: false
hideMeta: true
---
Explore new ways of creating and sharing with managed Federated Wiki hosting.
## Access
The Fedwiki Service is currently under development. If you are interested in participating in the development or testing of the Fedwiki service, send an email to mail *at* wiki.cafe.

View File

@ -0,0 +1,12 @@
---
title: "Wiki Education"
date: 2022-02-14T22:02:42-05:00
draft: false
hideMeta: true
---
Wiki is not just software, it's a way of thinking about thinking. We hope to share the knowledge of the wiki community through our Wiki Education resources.
## Access
The Wiki Education resources are currently under development. If you are interested in participating in the development of these resources, send an email to mail *at* wiki.cafe.