feat(web/*): drop most things

Change-Id: I85dde8470a4cf737bc193e0b50d0a4b5ee6d7f56
This commit is contained in:
Florian Klink 2025-02-24 17:31:36 +07:00
parent cff6575948
commit 768f053416
26 changed files with 0 additions and 1940 deletions

View file

@ -1,46 +0,0 @@
{ depot, lib, pkgs, ... }:
let
description = "Rust implementation of the purely-functional Nix package manager";
# https://developers.google.com/search/docs/advanced/structured-data/
# https://schema.org/SoftwareApplication
structuredData = {
"@context" = "https://schema.org";
"@type" = "SoftwareApplication";
name = "Tvix";
url = "https://tvix.dev";
abstract = description;
applicationCategory = "DeveloperApplication";
contributor = "https://tvl.fyi";
image = "https://tvix.dev/logo.webp";
};
# All Tvix-related blog posts from the main TVL website
tvixPosts = builtins.filter
(post: !(post.draft or false) && (lib.hasInfix "Tvix" post.title))
depot.web.tvl.blog.posts;
postListEntries = map (p: "* [${p.title}](https://tvl.fyi/blog/${p.key})") tvixPosts;
landing = depot.web.tvl.template {
title = "Tvix - A new implementation of Nix";
content = ''
${builtins.readFile ./landing-en.md}
${builtins.concatStringsSep "\n" postListEntries}
'';
extraHead = ''
<meta name="description" content="${description}">
<script type="application/ld+json">
${builtins.toJSON structuredData}
</script>
'';
};
in
pkgs.runCommand "tvix-website" { } ''
mkdir $out
cp ${landing} $out/index.html
cp ${depot.tvix.logo}/logo.webp $out/
''