You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit adapts the page to use Hugo constructs, and it also splits
the JSON containing the list of GUI Clients into individual files inside
`data/`.
The files in `data/guis/` were written via:
git show HEAD:resources/guis.yml |
ruby -e '
# cannot use YAML.load because that would lose comments
$filename = nil
$content = ""
def write
return if $filename.nil?
File.open($filename, "w") { |f| f.write("---\n#{$content}---\n") } unless $filename.nil?
$filename = nil
$content = ""
end
ARGF.each do |line|
if line.start_with?("-") then
write
line[0] = " "
end
if line.start_with?(" ") then
$filename = "data/guis/#{line[8..].chomp.gsub(/ *\(.*\)$/, "").gsub(/ /, "-").downcase}.yml" if line.start_with?(" name: ")
$content += line[2..]
.gsub(/^image_tag: /, "\\0images/")
.gsub(/^url:/, "project_url:")
.gsub(/([-:] )([^"]*[^"0-9][^"]*)\n$/, "\\1\"\\2\"\n")
.gsub(/^-/, " -")
end
end
write
'
Signed-off-by: Victoria Dye <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
0 commit comments