From 59db314ef280967fc9930c45ef9c4ddc160cb0d3 Mon Sep 17 00:00:00 2001 From: Wataru Otsubo Date: Sun, 26 Jan 2025 19:20:36 +0900 Subject: [PATCH] fix: remove last_updated since git is not available on CI --- docs/make_notebook_index.jl | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/docs/make_notebook_index.jl b/docs/make_notebook_index.jl index 04a3d0f..0682585 100644 --- a/docs/make_notebook_index.jl +++ b/docs/make_notebook_index.jl @@ -5,18 +5,7 @@ cd(dirname(@__FILE__)) cd("src/notebooks/") do contents = map(readdir() |> filter(!=(".gitignore")) |> filter(!=("index.html"))) do file - last_updated = let - cmdout = - read(`git log $file`, String) |> - IOBuffer |> - eachline |> - Iterators.Stateful - @assert popfirst!(cmdout) |> startswith("commit") - @assert popfirst!(cmdout) |> startswith("Author") - dateline = popfirst!(cmdout) - chopprefix(dateline, "Date:") |> strip - end - "- [`$file`]($file) (last updated: $last_updated)" + "- [`$file`]($file)" end |> (v -> join(v, '\n')) index_content = Markdown.parse(""" # notebooks