[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #8787] Octave Forge: Improve package overv
From: |
Carnë Draug |
Subject: |
[Octave-patch-tracker] [patch #8787] Octave Forge: Improve package overview page |
Date: |
Sun, 07 Feb 2016 22:27:35 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.6.0 |
Follow-up Comment #19, patch #8787 (project octave):
So I tried to work on this and found out that my HTML and CSS are pretty bad.
I'm also thinking that having the generate_html package create a
short_package_description doesn't work very well because it's preventing us
from making changes easily.
What if the generate_html package insteads adds a metadata.json file. We can
either have them read on the fly each time or have something on the server
that creates a short_package_description when I upload the html.
$json = file_get_contents ($pkg_name . "/metadata.json");
if (! $json)
continue;
$metadata = json_decode ($json);
if (is_null ($metadata))
continue;
Where the json file can be something like:
{
"name" : "interval",
"desc" : "The interval package for real-valued interval arithmetic allows
one to evaluate functions over subsets of their domain",
"link" :
"http://downloads.sourceforge.net/octave/interval-1.3.0.tar.gz?download",
}
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8787>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/