From 3b4ced63e73895e684ea30eb49116ca3cebdfe78 Mon Sep 17 00:00:00 2001 From: antifallobst Date: Fri, 24 May 2024 13:43:23 +0200 Subject: [PATCH] initial commit --- .gitignore | 2 + Dockerfile | 14 +++++++ archetypes/default.md | 5 +++ content/_index.md | 13 +++++++ content/backends/_index.md | 6 +++ content/blog/_index.md | 6 +++ content/client.md | 6 +++ content/docs/_index.md | 4 ++ content/docs/triba/_index.md | 6 +++ content/install-instructions.md | 6 +++ hugo.toml | 67 +++++++++++++++++++++++++++++++++ nginx.conf | 35 +++++++++++++++++ themes/risotto | 1 + 13 files changed, 171 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 archetypes/default.md create mode 100644 content/_index.md create mode 100644 content/backends/_index.md create mode 100644 content/blog/_index.md create mode 100644 content/client.md create mode 100644 content/docs/_index.md create mode 100644 content/docs/triba/_index.md create mode 100644 content/install-instructions.md create mode 100644 hugo.toml create mode 100644 nginx.conf create mode 160000 themes/risotto diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..60b2f55 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +public +.hugo_build.lock \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7a01269 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM alpine:latest as build + +WORKDIR /build + +RUN apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community hugo + +COPY ./ ./ + +RUN hugo + +FROM nginx:latest + +COPY ./nginx.conf /etc/nginx/nginx.conf +COPY --from=build /build/public /usr/share/nginx/html \ No newline at end of file diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..c6f3fce --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +title = '{{ replace .File.ContentBaseName "-" " " | title }}' +date = {{ .Date }} +draft = true ++++ diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..cb9bc3f --- /dev/null +++ b/content/_index.md @@ -0,0 +1,13 @@ ++++ +title = 'Home' +draft = false ++++ + +# Home + +Trinitrix is an open source (GPL3+), cross-platform and extreme flexible chatting ecosystem. +It consists of: + +- [Chat backend servers](/backends), which abstract chat protocols. +- An official trinitrix [client](/client), that has a highly customizable TUI. +- And an [API](/docs/triba), that connects clients and backend servers. diff --git a/content/backends/_index.md b/content/backends/_index.md new file mode 100644 index 0000000..e1155aa --- /dev/null +++ b/content/backends/_index.md @@ -0,0 +1,6 @@ ++++ +title = 'Backend Servers' +draft = false ++++ + +Coming soon \ No newline at end of file diff --git a/content/blog/_index.md b/content/blog/_index.md new file mode 100644 index 0000000..6cc8fa1 --- /dev/null +++ b/content/blog/_index.md @@ -0,0 +1,6 @@ ++++ +title = 'Blog' +draft = false ++++ + +Coming soon \ No newline at end of file diff --git a/content/client.md b/content/client.md new file mode 100644 index 0000000..b1ace69 --- /dev/null +++ b/content/client.md @@ -0,0 +1,6 @@ ++++ +title = 'Official Client' +draft = false ++++ + +Coming soon \ No newline at end of file diff --git a/content/docs/_index.md b/content/docs/_index.md new file mode 100644 index 0000000..618edf6 --- /dev/null +++ b/content/docs/_index.md @@ -0,0 +1,4 @@ ++++ +title = 'Docs' +draft = false ++++ \ No newline at end of file diff --git a/content/docs/triba/_index.md b/content/docs/triba/_index.md new file mode 100644 index 0000000..602476b --- /dev/null +++ b/content/docs/triba/_index.md @@ -0,0 +1,6 @@ ++++ +title = 'Backend API (TriBA)' +draft = false ++++ + +Coming soon \ No newline at end of file diff --git a/content/install-instructions.md b/content/install-instructions.md new file mode 100644 index 0000000..735d789 --- /dev/null +++ b/content/install-instructions.md @@ -0,0 +1,6 @@ ++++ +title = 'Install Instructions' +draft = false ++++ + +Coming soon \ No newline at end of file diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..ec8ba22 --- /dev/null +++ b/hugo.toml @@ -0,0 +1,67 @@ +baseURL = 'https://trinitrix.vhack.eu/' +languageCode = "en-US" +DefaultContentLanguage = "en" +title = 'Trinitrix' +theme = 'risotto' +author = 'The Trinitrix Project' +copyright = "© The Trinitrix Project 2024" + +[params.about] +description = 'Trinitrix is an open source (GPL3+), cross-platform and extreme flexible chatting ecosystem.' + +[params.theme] +palette = "tokyo-night-dark" + +[[params.socialLinks]] +icon = "fa-brands fa-square-git" +title = "Git" +url = "https://git.nerdcult.net/trinitrix" + +[[params.socialLinks]] +icon = "fa-solid fa-message" +title = "Matrix" +url = "https://matrix.to/#/#trinitrix:nerdcult.net" + + +[menus] +[[menus.main]] +name = 'Home' +pageRef = '/home' +weight = 10 +[[menus.main]] +name = 'Client' +pageRef = '/client' +weight = 20 +[[menus.main]] +name = 'Backend Servers' +pageRef = '/backends' +weight = 30 +[[menus.main]] +name = 'Docs' +pageRef = '/docs' +weight = 40 +[[menus.main]] +name = 'Blog' +pageRef = '/blog' +weight = 50 +[[menus.main]] +name = 'Install' +pageRef = '/install-instructions' +weight = 60 + +[[menus.footer]] +name = 'Terms' +pageRef = '/terms' +weight = 10 +[[menus.footer]] +name = 'Privacy' +pageRef = '/privacy' +weight = 20 + +[languages.en] +contentDir = 'content' +disabled = false +languageCode = 'en-US' +languageDirection = 'ltr' +languageName = 'English' +weight = 2 diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..f151802 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,35 @@ +user root; +worker_processes auto; + +pid /var/run/nginx.pid; + + +events { + worker_connections 1024; +} + + +http { + include /etc/nginx/mime.types; + default_type application/octet-stream; + + sendfile on; + #tcp_nopush on; + + keepalive_timeout 65; + + charset UTF-8; + #gzip on; + + server { + listen 0.0.0.0:80; + + root /usr/share/nginx/html; + + index index.html; + + location / { + try_files $uri $uri/ /index.html; + } + } +} \ No newline at end of file diff --git a/themes/risotto b/themes/risotto new file mode 160000 index 0000000..00d8fab --- /dev/null +++ b/themes/risotto @@ -0,0 +1 @@ +Subproject commit 00d8fab5951bf85a6904cb5f78bfefd4b94417d9