[Python-Dev] Impaired Usability of the Mercurial Source Viewer

Brendan Cully brendan at kublai.com
Fri Apr 1 05:56:39 CEST 2011


On 2011-03-31, at 8:44 PM, Antoine Pitrou wrote:

> On Thu, 31 Mar 2011 18:20:53 -0700
> Raymond Hettinger <raymond.hettinger at gmail.com> wrote:
>> 
>> Surely, we at least have control over our own CSS.
>> At http://hg.python.org/cpython/static/style-paper.css 
>> there are two lines that control the alternating bars:
>> 
>> .parity0 { background-color: #f0f0f0; }
>> .parity1 { background-color: white; }
>> 
>> One of those could be changed to match the other so that we
>> at can at least get a solid background.
> 
> It also applies to the changelog and therefore would make the changelog
> uglier (you had already asked me to make that change and I reverted it
> after I tried it). The changelog is, IMHO, a bit more important than the
> source viewer.
> 
> Impacting only the source viewer looks like it would require a patch
> to the generation logic, although I could be mistaken.

It shouldn't. You just need to change the template. The easiest thing to do is probably to copy the 'paper' style into a new directory, adjust your hgweb style parameter to point to it, and edit the 'fileline' entry in the 'map' file for your new style.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1691 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-dev/attachments/20110331/3beed963/attachment.bin>


More information about the Python-Dev mailing list