Broken links continue to exist on major pages on dlang.org

ag0aep6g via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 3 02:49:45 PDT 2016


On 06/02/2016 09:09 PM, Sönke Ludwig wrote:
> Which are the remaining issues that you know of?

Next up: MYREF.

Example page with missing links:
http://dlang.org/library/std/string.html

In std.ddoc, MYREF is defined as:

      MYREF = <a href="#.$1">$(TT $1)</a>$(NBSP)

In std-ddox-override.ddoc it's:

      MYREF = $1

That's no good, of course. But I also don't see a way to define it 
properly. It would have to be something like this:

     MYREF = <a href="./$(MODULE)/$1.html">$(TT $1)</a>$(NBSP)

where $(MODULE) is the current module name without packages.

But:

1) Something like $(MODULE) doesn't seem to exist. (Loosely related: 
DDOX doesn't emit $(TITLE) properly.)

2) camelCase strikes again. $1 would have to be transformed from fooBar 
to foo_bar to match DDOX's naming scheme. No can do with macros alone. I 
think those underscore names may have been a mistakee.


More information about the Digitalmars-d mailing list