Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
gem_server won't deliver css from alternate template
Stephen Bannasch
9/2/2007 1:23:00 AM
I like the way rdoc html looks better when using Jamis Buck's rdoc template:
http://weblog.jamisbuck.org/2005/4/8/rdo...
So I put a copy here:
/usr/local/lib/ruby/1.8/rdoc/generators/template/html/jamis.rb
and with a little help I can get rails to use it when making
documentation for my apps, itself, and the plugins I use.
I wanted to use it with the rdoc for my gems so I added a ~/.gemrc
file to my home directory with this in it:
rdoc: --template jamis --inline-source --line-numbers
Now when gem builds the rodc these options are used ...
BUT ...
gem_server doesn't actually serve the rdoc-style.css files that rdoc
creates -- instead it appears to delivers a copy of the standard rdoc
1.0.1 template that is hard-coded into gem_server.rb.
line 398 (rubygems/sever.rb):
s.mount_proc("/rdoc-style.css") do |req, res|
res['content-type'] = 'text/css'
res['date'] = File.stat(spec_dir).mtime
res.body << RDOC_CSS
end
rdoc appears to put a copy of rdoc-style.css in the root of every
html output folder it creates. However gem_server always uses it's
own css.
Ths fixes the problem by only using the hard-coded stylesheet for the
top level document.
--- rubygems/old_server.rb 2007-02-10 09:07:01.000000000 -0500
+++ rubygems/server.rb 2007-09-01 20:34:12.000000000 -0400
@@ -33,7 +33,7 @@
<head>
<title>RubyGems Documentation Index</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="rdoc-style.css" type="text/css"
media="screen" />
+ <link rel="stylesheet" href="gem-server-rdoc-style.css"
type="text/css" media="screen" />
</head>
<body>
<div id="fileHeader">
@@ -395,7 +395,7 @@
res.body << Gem::SourceIndex.from_gems_in(spec_dir).to_yaml
end
- s.mount_proc("/rdoc-style.css") do |req, res|
+ s.mount_proc("/gem-server-rdoc-style.css") do |req, res|
res['content-type'] = 'text/css'
res['date'] = File.stat(spec_dir).mtime
res.body << RDOC_CSS
Patch also sent to
http://rubyforge.org/projects...
http://rubyforge.org/tracker/index.php?func=detail&aid=13589&group_id=126&am...
2 Answers
Billy
2/23/2011 6:20:00 AM
0
In article
<ba8b1981-31c9-4257-9dd7-41402d49d212@v16g2000vbq.googlegroups.com>,
"His Highness the TibetanMonkey, aka Comandante Banana"
<comandante.banana@yahoo.com> wrote:
> On Feb 19, 2:42?pm, Billy <wildbi...@withouta.net> wrote:
> > In article
> > <d4bc2964-18ac-4056-8de6-70131118a...@a21g2000prj.googlegroups.com>,
> > ?"His Highness the TibetanMonkey, aka Comandante Banana"
> >
> >
> >
> > ?<comandante.ban...@yahoo.com> wrote:
> > > On Feb 18, 9:04 pm, CB <C...@PrayForMe.com> wrote:
> > > > On Fri, 18 Feb 2011 06:41:05 -0800 (PST), "His Highness the
> > > > TibetanMonkey, aka Comandante Banana" <comandante.ban...@yahoo.com>
> > > > wrote:
> >
> > > > >On Feb 18, 8:37 am, Profeetta_T <kepuloi...@kepuloisuus.hallitus>
> > > > >wrote:
> > > > >> On 18.2.2011 15:32, His Highness the TibetanMonkey, aka Comandante
> >
> > > > >> Banana wrote:
> >
> > > > >> > The reality of the jungle is that a lot of evil is done in the
> > > > >> > name of
> > > > >> > god.
> >
> > > > >> i am my brother and the summoning circle is burning in your mind
> > > > >> when i
> > > > >> piss on the cross and Lord Satan is rising in the sky i will rule
> > > > >> and i
> > > > >> will burn all my enemies and they will suffer eternally in hell for
> > > > >> that
> > > > >> is my will
> >
> > > > >Oh you, evil creature, why god made you so and not a "good democratic
> > > > >president" like Bush. ;)
> >
> > > > You should try bush over goat
> >
> > > Bush is a good Christian, which is not say Christians are good.
> >
> > > He was the Christians' president.
> >
> > A terrible slander on most Christians.
> >
> > He was Jerry Falwell's God's President.
> > <
http://www.youtube.com/watch?v=MyE5w...
> >
> > > -------------------------------------------------------
> >
> > >
http://webspawner.com/users/BANANA...
> >
> > --
> > - Billy
> > When you give food to the poor, they call you a saint. When you ask why the
> > poor have no food, they call you a communist.
> > -Archbishop Helder Camara
> >
> >
http://peace.mennolink.org/articles/israelpeaceg...
> >
> >
http://english.aljazeera.net/indepth/opinion/2011/01/201118...
...
>
> Comrade Billy, a true revolution doesn't need god.
It doesn't need to not have a god either. These are negotiable/or not
points. I'm just a hinayana kinda guy. What ever it takes.
That's my conceit, and I'm stickin' with it.
--
Every gun that is made, every warship launched, every rocket fired signifies in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. This is not a way of life at all in any true sense. Under the clouds of war, it is humanity hanging on a cross of iron.
- Dwight D. Eisenhower, 16 April 1953
<
http://www.youtube.com/watch?v=eZkDi...
His Highness the TibetanMonkey, aka Comandante Banana
2/23/2011 2:54:00 PM
0
On Feb 23, 1:19 am, Billy <wildbi...@withouta.net> wrote:
> In article
> <ba8b1981-31c9-4257-9dd7-41402d49d...@v16g2000vbq.googlegroups.com>,
> "His Highness the TibetanMonkey, aka Comandante Banana"
>
>
>
> <comandante.ban...@yahoo.com> wrote:
> > On Feb 19, 2:42 pm, Billy <wildbi...@withouta.net> wrote:
> > > In article
> > > <d4bc2964-18ac-4056-8de6-70131118a...@a21g2000prj.googlegroups.com>,
> > > "His Highness the TibetanMonkey, aka Comandante Banana"
>
> > > <comandante.ban...@yahoo.com> wrote:
> > > > On Feb 18, 9:04 pm, CB <C...@PrayForMe.com> wrote:
> > > > > On Fri, 18 Feb 2011 06:41:05 -0800 (PST), "His Highness the
> > > > > TibetanMonkey, aka Comandante Banana" <comandante.ban...@yahoo.com>
> > > > > wrote:
>
> > > > > >On Feb 18, 8:37 am, Profeetta_T <kepuloi...@kepuloisuus.hallitus>
> > > > > >wrote:
> > > > > >> On 18.2.2011 15:32, His Highness the TibetanMonkey, aka Comandante
>
> > > > > >> Banana wrote:
>
> > > > > >> > The reality of the jungle is that a lot of evil is done in the
> > > > > >> > name of
> > > > > >> > god.
>
> > > > > >> i am my brother and the summoning circle is burning in your mind
> > > > > >> when i
> > > > > >> piss on the cross and Lord Satan is rising in the sky i will rule
> > > > > >> and i
> > > > > >> will burn all my enemies and they will suffer eternally in hell for
> > > > > >> that
> > > > > >> is my will
>
> > > > > >Oh you, evil creature, why god made you so and not a "good democratic
> > > > > >president" like Bush. ;)
>
> > > > > You should try bush over goat
>
> > > > Bush is a good Christian, which is not say Christians are good.
>
> > > > He was the Christians' president.
>
> > > A terrible slander on most Christians.
>
> > > He was Jerry Falwell's God's President.
> > > <
http://www.youtube.com/watch?v=MyE5w...
>
> > > > -------------------------------------------------------
>
> > > >
http://webspawner.com/users/BANANA...
>
> > > --
> > > - Billy
> > > When you give food to the poor, they call you a saint. When you ask why the
> > > poor have no food, they call you a communist.
> > > -Archbishop Helder Camara
>
> > >
http://peace.mennolink.org/articles/israelpeaceg...
>
> > >
http://english.aljazeera.net/indepth/opinion/2011/01/201118...
....
>
> > Comrade Billy, a true revolution doesn't need god.
>
> It doesn't need to not have a god either. These are negotiable/or not
> points. I'm just a hinayana kinda guy. What ever it takes.
>
> That's my conceit, and I'm stickin' with it.
Good, but a revolution that sticks to god is as dangerous as replacing
the hungry lion that ruled the jungle before. Pretty soon REAL
SOLUTIONS are forgotten, and the monkey feels in the cage one more
time. And you run the risk of oppressing women and that's not nice.
Anyway we have our own revolutions to deal with:
On Feb 23, 4:51 am, boltar2...@boltar.world wrote:
> Can you keep all your stateside BS off the UK groups please. They're utterly
> irrelevant and we frankly don't give a shit about your tedious political
> rantings. If you're so desperate for an audience go write a blog , or better
> still see a psychiatrist.
Oh comrade, you'd be begging for this revolution when the time comes
because this is about MODERATION & TRANSPORTATION (notice they rhyme).
We don't know if the other revolutions are going to turn right or
wrong, but we have a clear idea about the solutions. Don't forget the
monkey with the beach cruiser is taking part in it (life's beach),
enlightening the world with reality. Remember, NO MORE BULLSHIT. And
if you hate public transportation, you can ride a bike like I do.
Sometimes I hate public transportation the way it is --noisy and
unreliable-- but together with the bike is OK. We must be ready for
the high gas prices and welcome the next step in evolution. Come what
may.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
gem_server won't deliver css from alternate template
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password