From c93f235022cd9a2e291015aff66737de247eab24 Mon Sep 17 00:00:00 2001 From: Leo Nunner Date: Wed, 22 Jul 2026 04:39:39 +0200 Subject: [PATCH] site: start outline, add build files --- .gitignore | 1 + flake.lock | 61 +++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 32 ++++++++++++++++++++++++ org/datenschutz.org | 3 +++ org/index.org | 10 ++++++++ publish.el | 13 ++++++++++ 6 files changed, 120 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 org/datenschutz.org create mode 100644 org/index.org create mode 100644 publish.el diff --git a/.gitignore b/.gitignore index 5ab799d..95df619 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ .\#* .direnv/ +result \ No newline at end of file diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..d24f746 --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1784497964, + "narHash": "sha256-vlHUuqAcbcH2RKmHbPiuQzbv1pnzzavXnI62RD0bqCU=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "241313f4e8e508cb9b13278c2b0fa25b9ca27163", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..0f8fb2f --- /dev/null +++ b/flake.nix @@ -0,0 +1,32 @@ +{ + description = "info.belastodon.social flake"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: + let + pkgs = nixpkgs.legacyPackages.${system}; + in + { + packages.default = pkgs.stdenv.mkDerivation { + pname = "info.belastodon.social"; + version = "0.1.0"; + src = self; + + nativeBuildInputs = [ (pkgs.emacsPackages.emacsWithPackages (epkgs: [ epkgs.org ])) ]; + + buildPhase = '' + emacs --batch -l ./publish.el + ''; + + installPhase = '' + mkdir -p $out + cp -r public/* $out/ + ''; + }; + }); +} diff --git a/org/datenschutz.org b/org/datenschutz.org new file mode 100644 index 0000000..ebba437 --- /dev/null +++ b/org/datenschutz.org @@ -0,0 +1,3 @@ +#+TITLE: Datenschutzerklärung +#+AUTHOR: leo +#+LANGUAGE: de diff --git a/org/index.org b/org/index.org new file mode 100644 index 0000000..d475d0a --- /dev/null +++ b/org/index.org @@ -0,0 +1,10 @@ +#+TITLE: info.belastodon.social +#+AUTHOR: leo +#+LANGUAGE: de +#+OPTIONS: toc:nil +#+OPTIONS: num:nil + +Weiterführende links: + +- [[./datenschutz.html][Datenschutzerklärung]] +- [[https://git.topfengolatsche.at/leo/info.belastodon.social][Quelltext]] diff --git a/publish.el b/publish.el new file mode 100644 index 0000000..ba31674 --- /dev/null +++ b/publish.el @@ -0,0 +1,13 @@ +(require 'ox-publish) + +(setq org-publish-project-alist + '(("info.belastodon.social" + :base-directory "./org" + :publishing-directory "./public" + :publishing-function org-html-publish-to-html + :recursive t + :with-toc t))) + +(setq org-publish-timestamp-directory "./.org-timestamps/") + +(org-publish-project "info.belastodon.social" t)