mirror of
https://github.com/correl/melpa.git
synced 2025-03-07 04:45:08 -10:00
Merge pull request #80 from milkypostman/link-pkg-name-to-pkg
Link package name to package (include #75)
This commit is contained in:
commit
da8cdc5e13
2 changed files with 21 additions and 4 deletions
|
@ -38,17 +38,24 @@
|
|||
end
|
||||
|
||||
|
||||
headers = ["Package", "Version", "Description"]
|
||||
headers = ["Package", "Version", "Description", "Source"]
|
||||
|
||||
data = parse(File.open("../packages/archive-contents").read)[1..-1]
|
||||
|
||||
|
||||
data.map! do |row|
|
||||
[row[0], row[1][0], row[3..-2].join(" ")]
|
||||
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}"
|
||||
descr, source = row[3..-2].join(" "), "other"
|
||||
if descr =~ /(.*?)\s*\[source:\s*(\w+)\]\s*/
|
||||
descr, source = $1, $2
|
||||
end
|
||||
["[#{pkgname}](#{pkgurl})", row[1][0], descr, "[#{source}](#{recipe_url})"]
|
||||
end
|
||||
data.sort!
|
||||
|
||||
colwidth = [0,0,0]
|
||||
colwidth = [0,0,0, 9]
|
||||
|
||||
data.map do |row|
|
||||
row.to_enum(:each_with_index).map do |e,i|
|
||||
|
|
|
@ -53,7 +53,9 @@ pre code {
|
|||
pre {
|
||||
background: #000;
|
||||
color: #fff;
|
||||
padding: 15px;}
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 0;
|
||||
width: 80%;
|
||||
|
@ -78,6 +80,14 @@ td, th {
|
|||
padding: 2px 7px 2px 7px;
|
||||
}
|
||||
|
||||
tr {
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
td:first-child a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
tr.header {
|
||||
color: #000;
|
||||
background-color: #fad;
|
||||
|
|
Loading…
Add table
Reference in a new issue