Compare commits

..

No commits in common. "87a0612114691d71b36520a3da1c8315d9ae5b96" and "7f0abdbb9376c19b110c2c5c8388fd9758663a15" have entirely different histories.

8 changed files with 1 additions and 98 deletions

View file

@ -24,11 +24,3 @@ HTML_TEMPLATE = main.html
JPG_OPT = -quality 80 -strip -interlace Plane JPG_OPT = -quality 80 -strip -interlace Plane
!blur_mini = |> ^ %f -> blur mini^ convert %f -resize 400x400 -blur 0x8 $(JPG_OPT) %o |> blur_mini.jpg !blur_mini = |> ^ %f -> blur mini^ convert %f -resize 400x400 -blur 0x8 $(JPG_OPT) %o |> blur_mini.jpg
!thumbnail = |> ^ %f -> thumbnail^ convert %f -resize 200x200 $(JPG_OPT) %o |> !thumbnail = |> ^ %f -> thumbnail^ convert %f -resize 200x200 $(JPG_OPT) %o |>
#
# Slides
#
MARP = npx @marp-team/marp-cli@latest
MARP_OPTS = --allow-local-files --bespoke.progress
!marp_pdf = |> $(MARP) $(MARP_OPTS) %f --pdf --output %o |> %B.pdf
!marp_html = |> $(MARP) $(MARP_OPTS) %f --html --output %o |> %B.html

View file

@ -1,5 +1,5 @@
include_rules include_rules
HTML_TEMPLATE = article.html HTML_TEMPLATE = article.html
: *.md |> ./generate_listing.nu > %o |> index.md : *.md |> ./generate_listing.sh > %o |> index.md
: foreach *.md |> !html |> : foreach *.md |> !html |>

View file

@ -1,40 +0,0 @@
#!/usr/bin/env nu
#
def title [path: string] -> string {
open $path | lines | filter {|l| (str starts-with "title:")} | first | split row --regex 'title\s*:\s*' | get 1 | str trim --char "\""
}
def creation_date [path: string] -> string {
open $path | lines | filter {|l| (str starts-with "date:")} | first | split row --regex '\s*:\s*' | get 1
}
def update_date [path: string] -> string? {
let updates = open $path | lines | filter {|l| (str starts-with "update:")}
if ($updates | length) > 0 {
return ($updates | first | split row --regex '\s*:\s*' | get 1)
} else {
return null
}
}
let pages = (glob *.md) ++ (glob **/index.md)
let sorted_pages = $pages | wrap 'path'
| upsert title {|row| (title $row.path)}
| upsert creation {|row| (creation_date $row.path)}
| upsert update {|row| (update_date $row.path)}
| sort-by --reverse creation
print "---
title: Articles
---
"
$sorted_pages | each {|p|
let rel_path = $p.path | path relative-to (pwd)
print --no-newline $"- ($p.creation): [($p.title)]\(($rel_path)\)"
if $p.update? != null {
print $" \(Updated: ($p.update)\)"
} else {
print ""
}
}

View file

@ -1,6 +0,0 @@
include_rules
HTML_TEMPLATE = article.html
: slides.md |> !marp_pdf |> jujutsu_slides.pdf ./<deps>
: index.md | ./<deps> |> !html |>

View file

@ -1,16 +0,0 @@
---
title: "Lightning talk: Jujutsu"
date: 2024-11-26
---
_This article is also available as a lightning talk: [pdf](./jujutsu_slides.pdf)_
## What is it?
## How does it compare?
## VCS landscape
> I was part of the team at Meta that built Sapling for many years. Im no
> longer at Meta and I use jj full time.
>
> _[Discussion on Lobste.rs](https://lobste.rs/s/rojoz1/jujutsu_jj_git_compatible_vcs#c_foqya4)_

View file

@ -1,23 +0,0 @@
---
marp: true
theme: gaia
footer: '**Fabien Freling** - 2024-11-26'
paginate: true
---
<style>
section::after {
content: attr(data-marpit-pagination) '/' attr(data-marpit-pagination-total);
}
</style>
<!--
_class: lead
-->
# Jujutsu
Life after Git
---

View file

@ -1,7 +1,6 @@
--- ---
title: Web stack title: Web stack
date: 2019-06-26 date: 2019-06-26
update: 2024-11-26
--- ---
Previous stacks Previous stacks

View file

@ -7,13 +7,10 @@
devShell.x86_64-linux = with pkgs; devShell.x86_64-linux = with pkgs;
mkShell { mkShell {
nativeBuildInputs = [ nativeBuildInputs = [
graphviz-nox
imagemagick imagemagick
just just
libavif libavif
libjxl libjxl
nodejs
nushell
pandoc pandoc
tup tup
]; ];