mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-06-08 05:55:42 +09:00
fix: remove last_updated since git is not available on CI
This commit is contained in:
parent
2b99be9a1e
commit
59db314ef2
1 changed files with 1 additions and 12 deletions
|
@ -5,18 +5,7 @@ cd(dirname(@__FILE__))
|
||||||
cd("src/notebooks/") do
|
cd("src/notebooks/") do
|
||||||
contents =
|
contents =
|
||||||
map(readdir() |> filter(!=(".gitignore")) |> filter(!=("index.html"))) do file
|
map(readdir() |> filter(!=(".gitignore")) |> filter(!=("index.html"))) do file
|
||||||
last_updated = let
|
"- [`$file`]($file)"
|
||||||
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)"
|
|
||||||
end |> (v -> join(v, '\n'))
|
end |> (v -> join(v, '\n'))
|
||||||
index_content = Markdown.parse("""
|
index_content = Markdown.parse("""
|
||||||
# notebooks
|
# notebooks
|
||||||
|
|
Loading…
Add table
Reference in a new issue