Re: [exim-dev] HTML gen: tagged chapters?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: exim-dev
Dátum:  
Címzett: exim-dev
Tárgy: Re: [exim-dev] HTML gen: tagged chapters?
On 06/12/12 15:37, Phil Pennock wrote:

>> All of the links are to the new style URLs now for people with or
>> without js enabled. However, a lot of people are going to be coming in
>> on the old style URLs because of links on other sites, and
>> bookmarking/passing around those old style URLs. So I took an extra step
>> of using javascript to rewrite the URLs from eg ch01.html to
>> ch-introduction.html. If js is disabled, I can't rewrite because the
>> site is static.
>
> Oh, this is why I generated symlinks. Isn't that simpler, and has the
> benefit of working for folks using text-mode browsers?


It works fine for people without js. It works exactly the way you just
described. ch01.html is a symlink to ch-introduction.html. The
javascript is just a nice extra that people get when they have js
enabled. It redirects people from ch01.html to ch-introduction.html.

>> I'm working from git://github.com/Exim/exim-website.git and don't see
>> those changes. Am I working from the wrong repository?
>
> It will get the changes pushed to it hourly, I think.
>
> Also, I can manually push there. Done.


Ta

>> > On branch "pdp_gen_change" commit 0b04e98f additionally has my changes
>> > to gen.pl to implement the same thing, covering everything but the ToC.
>> > It uses the CHAP<foo> stuff as the URL item, which is what I was
>> > suggesting, but I'm happy enough with a transformed version of the full
>> > chapter title. In fact, yours is better for this.
>> >
>> > However, you've broken the index chapters. They're all called
>> > "ch-.html", so chapter 60 overwrote 58 & 59.
>>
>> I wasn't aware of these pages. I'll look into it.
>>
>> > Also, the index links in your version have lost the #SECT<...> anchor
>> > links, so you're just linking to the page, not the place within the
>> > page.
>>
>> I don't know what you're saying here. What pages should I look at, and
>> where?
>
> The index pages (chapters 58, 59, 60) all create links to
> ch<whatever>.html#SECT<something>. Your rewriting is dropping the
> fragments from the target URLs.


That's all fixed now in my version.

> Yeah, looks like the site auto-rebuilt from my pushes? Or someone did a
> manual build?
>
> I found this independently, sorry that it's made it out live. I used
> ${foo} instead of {$foo} in one of the .xsl files.
>
> I've already pushed the fix. I've no idea what it takes for that to
> become live, unless it's just "cron".


No idea.

-- 
Mike Cardwell  https://grepular.com/     http://cardwellit.com/
OpenPGP Key    35BC AF1D 3AA2 1F84 3DC3  B0CF 70A5 F512 0018 461F
XMPP OTR Key   8924 B06A 7917 AAF3 DBB1  BF1B 295C 3C78 3EF1 46B4