mirror of
https://github.com/correl/melpa.git
synced 2025-03-07 04:45:08 -10:00
link the package name to the actual package file
This commit is contained in:
parent
340e389a5d
commit
4abaea692d
2 changed files with 13 additions and 2 deletions
|
@ -45,12 +45,13 @@
|
||||||
|
|
||||||
data.map! do |row|
|
data.map! do |row|
|
||||||
pkgname = row[0]
|
pkgname = row[0]
|
||||||
|
pkgurl = "packages/#{row[0]}-#{row[1]}." + (row[-1] == "single" ? "el" : "tar")
|
||||||
recipe_url = "https://github.com/milkypostman/melpa/blob/master/recipes/#{pkgname}"
|
recipe_url = "https://github.com/milkypostman/melpa/blob/master/recipes/#{pkgname}"
|
||||||
descr, source = row[3..-2].join(" "), "other"
|
descr, source = row[3..-2].join(" "), "other"
|
||||||
if descr =~ /(.*?)\s*\[source:\s*(\w+)\]\s*/
|
if descr =~ /(.*?)\s*\[source:\s*(\w+)\]\s*/
|
||||||
descr, source = $1, $2
|
descr, source = $1, $2
|
||||||
end
|
end
|
||||||
[pkgname, row[1][0], descr, "[#{source}](#{recipe_url})"]
|
["[#{pkgname}](#{pkgurl})", row[1][0], descr, "[#{source}](#{recipe_url})"]
|
||||||
end
|
end
|
||||||
data.sort!
|
data.sort!
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,9 @@ pre code {
|
||||||
pre {
|
pre {
|
||||||
background: #000;
|
background: #000;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
padding: 15px;}
|
padding: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
border: 0;
|
border: 0;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
|
@ -78,6 +80,14 @@ td, th {
|
||||||
padding: 2px 7px 2px 7px;
|
padding: 2px 7px 2px 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tr {
|
||||||
|
color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
td:first-child a {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
tr.header {
|
tr.header {
|
||||||
color: #000;
|
color: #000;
|
||||||
background-color: #fad;
|
background-color: #fad;
|
||||||
|
|
Loading…
Add table
Reference in a new issue