publish status update
This commit is contained in:
parent
2d41407a69
commit
da723063b3
11
content/authors/Lassulus.md
Normal file
11
content/authors/Lassulus.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
+++
|
||||||
|
title = "Lassulus"
|
||||||
|
description = "Contributor to cLAN."
|
||||||
|
date = 2021-04-01T08:50:45+00:00
|
||||||
|
updated = 2021-04-01T08:50:45+00:00
|
||||||
|
draft = false
|
||||||
|
+++
|
||||||
|
|
||||||
|
Contributor to **clan**.
|
||||||
|
|
||||||
|
[@lassulus](https://http://lassul.us/)
|
13
content/blog/2024-04-16-weekly-clan-status-update.md
Normal file
13
content/blog/2024-04-16-weekly-clan-status-update.md
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
+++
|
||||||
|
title = "Weekly clan status update"
|
||||||
|
date = 2024-04-16T14:36:16+02:00
|
||||||
|
draft = false
|
||||||
|
template = "blog/page.html"
|
||||||
|
|
||||||
|
[taxonomies]
|
||||||
|
authors = ["Lassulus", "Mic92"]
|
||||||
|
+++
|
||||||
|
|
||||||
|
We added a new documentation hub for clan at [docs.clan.lol](https://docs.clan.lol)
|
||||||
|
We now have weekly office hours where people are invited to hangout and ask questions.
|
||||||
|
They are every Wednesday 15:30 UTC (17:30 CEST) at https://jitsi.lassul.us/clan.lol
|
|
@ -1,53 +1,53 @@
|
||||||
|
{ self, ... }:
|
||||||
{
|
{
|
||||||
self,
|
perSystem =
|
||||||
inputs,
|
{
|
||||||
...
|
lib,
|
||||||
}: {
|
pkgs,
|
||||||
perSystem = {
|
self',
|
||||||
lib,
|
inputs',
|
||||||
pkgs,
|
...
|
||||||
self',
|
}:
|
||||||
inputs',
|
let
|
||||||
...
|
build =
|
||||||
}: let
|
baseUrl:
|
||||||
build = baseUrl: pkgs.runCommand "website" {
|
pkgs.runCommand "website" { buildInputs = [ pkgs.zola ]; } ''
|
||||||
buildInputs = [ pkgs.zola ];
|
mkdir -p $out
|
||||||
} ''
|
cp -r ${self}/* .
|
||||||
mkdir -p $out
|
chmod -R u+w .
|
||||||
cp -r ${self}/* .
|
|
||||||
chmod -R u+w .
|
|
||||||
|
|
||||||
substituteInPlace config.toml --replace \
|
substituteInPlace config.toml --replace \
|
||||||
'base_url = "https://clan.lol"' \
|
'base_url = "https://clan.lol"' \
|
||||||
'base_url = "${baseUrl}"' \
|
'base_url = "${baseUrl}"' \
|
||||||
|
|
||||||
# generates a zola compatible .md from a clan-core/docs/**/*.md
|
# generates a zola compatible .md from a clan-core/docs/**/*.md
|
||||||
generatePage() {
|
generatePage() {
|
||||||
local sourceFile="$1"
|
local sourceFile="$1"
|
||||||
local targetFile="$2"
|
local targetFile="$2"
|
||||||
|
|
||||||
# generate title by reading first non-empty line of $file and stripping all '#' symbols
|
# generate title by reading first non-empty line of $file and stripping all '#' symbols
|
||||||
title=$(sed -n '/./{p;q}' "$sourceFile" | sed 's/#*//g')
|
title=$(sed -n '/./{p;q}' "$sourceFile" | sed 's/#*//g')
|
||||||
echo "generating page from clan-core: $title"
|
echo "generating page from clan-core: $title"
|
||||||
|
|
||||||
# generate header with title, template, weight to make zola happy
|
# generate header with title, template, weight to make zola happy
|
||||||
echo -e "+++\ntitle = \"$title\"\ntemplate = \"docs/page.html\"\nweight = 0\n+++" > "$targetFile"
|
echo -e "+++\ntitle = \"$title\"\ntemplate = \"docs/page.html\"\nweight = 0\n+++" > "$targetFile"
|
||||||
|
|
||||||
# append everything from the file but remove header line starting with '#' and all preceding non-empty lines
|
# append everything from the file but remove header line starting with '#' and all preceding non-empty lines
|
||||||
tail -n +2 "$sourceFile" >> "$targetFile"
|
tail -n +2 "$sourceFile" >> "$targetFile"
|
||||||
}
|
}
|
||||||
|
|
||||||
zola build
|
zola build
|
||||||
cp -r public/* public/.* $out
|
cp -r public/* public/.* $out
|
||||||
'';
|
'';
|
||||||
in {
|
in
|
||||||
packages.default = self'.packages.website;
|
{
|
||||||
packages.website = build "https://clan.lol";
|
packages.default = self'.packages.website;
|
||||||
packages.website-localhost = build "http://localhost:1111";
|
packages.website = build "https://clan.lol";
|
||||||
packages.serve = pkgs.writeShellScriptBin "serve-local" ''
|
packages.website-localhost = build "http://localhost:1111";
|
||||||
echo "serving: ${self'.packages.website-localhost}"
|
packages.serve = pkgs.writeShellScriptBin "serve-local" ''
|
||||||
${pkgs.python3}/bin/python -m http.server 1111 \
|
echo "serving: ${self'.packages.website-localhost}"
|
||||||
-d ${self'.packages.website-localhost}
|
${pkgs.python3}/bin/python -m http.server 1111 \
|
||||||
'';
|
-d ${self'.packages.website-localhost}
|
||||||
};
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user