mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-06-08 05:55:42 +09:00
17 lines
410 B
Julia
17 lines
410 B
Julia
using Markdown
|
|
|
|
cd(dirname(@__FILE__))
|
|
|
|
cd("src/notebooks/") do
|
|
contents =
|
|
map(readdir() |> filter(!=(".gitignore")) |> filter(!=("index.html"))) do file
|
|
"- [`$file`]($file)"
|
|
end |> (v -> join(v, '\n'))
|
|
index_content = Markdown.parse("""
|
|
# notebooks
|
|
$(contents)
|
|
""")
|
|
open("index.html", "w") do f
|
|
show(f, MIME"text/html"(), index_content)
|
|
end
|
|
end
|