[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#725946: marked as done (Links to anchors in developers reference revert back to foo.html)



Your message dated Sun, 14 Jun 2015 13:08:11 +0900
with message-id <20150614040811.GA16093@goofy.local>
and subject line Re: Bug#659070: bad internal links on www.debian.org for developers-reference
has caused the Debian Bug report #659070,
regarding Links to anchors in developers reference revert back to foo.html
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
659070: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=659070
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: www.debian.org

Hi,

Navigating the developers reference is rather annoying. Besides the
usual "every link to a different page drops the language", the links
to anchors within a same page (say pkgs.en.html, as below) include the
name of the file (pkgs.html), making it even more irritating to
navigate. Every link requires one to modify the url to stick to the
same language.

I notice that some other /doc pages do include the language in the
file name (i.e. foo.en.html links to foo.en.html#bar)

http://www.debian.org/doc/manuals/developers-reference/pkgs.en.html

Cheers,
-- 
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net

--- End Message ---
--- Begin Message ---
Hi,

Tested locally by changing common.sh to use:
webtopdir=`pwd`/srv/www.debian.org

And commited.  If anything nasty happens, please do not hesitate to
revert.

On Sat, Jun 13, 2015 at 07:56:38PM +0900, Charles Plessy wrote:
> no problem, it would take as much time for me to remember how the script works
> than to learn it again from scratch.

At least cleaner and regular :-)
 
> Have a nice week-end,

Yes.  Hot and humid though ...

pagecopy()
{
# convert all internal href URLs from *.html to *.$lang.html
lang=$1
infile=$2
outfile=$3
sed -e "s/\(href=\"[^\/:\"= ]*\)\.html/\1.$lang.html/g" <$infile >$outfile
}

This function is used to fix internal reference renaming.

Now not only developers-reference but some other new files are free of
this bug.
https://www.debian.org/doc/manuals/apt-guide
https://www.debian.org/doc/manuals/apt-offline
https://www.debian.org/doc/manuals/aptitude

These are new with content negotiation.  If these are good, I will add
them to https://www.debian.org/doc/user-manuals

ADD mode does this.

https://www.debian.org/doc/index.en.html update is later ...

Osamu Aoki
Aobadai, Yokohama, Kanagawa, Japan

--- End Message ---

Reply to: