From 66d79cdb57bd9b76e01286bccff97b0b08898794 Mon Sep 17 00:00:00 2001 From: Jay McCarthy Date: Tue, 23 Sep 2014 20:46:21 -0400 Subject: [PATCH] docs --- .../meta/pkg-index/official/static/index.html | 3 +-- .../meta/pkg-index/official/static/index.js | 17 +++++++++-------- .../meta/pkg-index/official/static/style.css | 8 ++++++++ 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/pkgs/plt-services/meta/pkg-index/official/static/index.html b/pkgs/plt-services/meta/pkg-index/official/static/index.html index 3fbf7a987c..d737fabc96 100644 --- a/pkgs/plt-services/meta/pkg-index/official/static/index.html +++ b/pkgs/plt-services/meta/pkg-index/official/static/index.html @@ -90,7 +90,6 @@ Package - Docs Description Tags Build @@ -102,7 +101,7 @@ diff --git a/pkgs/plt-services/meta/pkg-index/official/static/index.js b/pkgs/plt-services/meta/pkg-index/official/static/index.js index 26c7d27fde..191da7d42a 100644 --- a/pkgs/plt-services/meta/pkg-index/official/static/index.js +++ b/pkgs/plt-services/meta/pkg-index/official/static/index.js @@ -472,14 +472,15 @@ $( document ).ready(function() { .append( jslink( value['name'], function () { open_info ( value ); }) ) .append($('').attr("class","authors").html("").append( $.map( value['authors'], function ( author, i ) { return addfilterlink ( author, "author:" + author, "possible" ); } ) )), - $('').html("").append( $.map( value['build']['docs'], function ( doc, i ) { - var dl; - if ( doc[2] ) { - dl = $('', { href: build_host + doc[2] } ).html(doc[1]); } - else { - dl = $('').html(doc[1]); } - return $('').append(dl, " ") } ) ), - $('').text( value['description'] ), + $('').text( value['description'] ) + .append($('').attr("class","docs").html(value['build']['docs'].length > 0 ? "Docs: " : "") + .append( $.map( value['build']['docs'], function ( doc, i ) { + var dl; + if ( doc[2] ) { + dl = $('', { href: build_host + doc[2] } ).html(doc[1]); } + else { + dl = $('').html(doc[1]); } + return $('').append(dl, " ") } ) )), $('').append( $.map( value['tags'], function ( tag, i ) { return addfilterlink ( tag, tag, "possible" ); } ) ), bstatus ); } diff --git a/pkgs/plt-services/meta/pkg-index/official/static/style.css b/pkgs/plt-services/meta/pkg-index/official/static/style.css index 10ed7b5d17..91c40a42c3 100644 --- a/pkgs/plt-services/meta/pkg-index/official/static/style.css +++ b/pkgs/plt-services/meta/pkg-index/official/static/style.css @@ -123,9 +123,14 @@ div.delete { #footer { width: 100%; text-align: right; + color: white; background: black; /* #FFCC66; */ padding-right: 3em; } +#footer a { + color: white; + font-weight: bold; +} div.install { width: 50%; @@ -169,6 +174,9 @@ tr#pi_delete_row td { display: block; color: black; } +.packages .docs { + display: block; +} .packages tr td:nth-child(6) { text-align: center; }