Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Links fixes #28

Merged
merged 4 commits into from
Dec 13, 2011
Merged

Links fixes #28

merged 4 commits into from
Dec 13, 2011

Conversation

denis-sh
Copy link
Contributor

@denis-sh denis-sh commented Nov 4, 2011

  • Following macros removed:
    • WEB (except phobos-like definition in intro-to-datetime.dd and glossary.dd)
    • EBOOK
    • WEBURL
  • Following macros added:
    • DDLINK - link to other *.dd file (other page on the site, other section in ebook)
    • DDSUBLINK - same as DDLINK, but references to subsection
    • DPLLINK - link to http://d-programming-language.org page (external link in ebook)
    • NOT_EBOOK - hides its arguments in ebook

@denis-sh
Copy link
Contributor Author

denis-sh commented Nov 4, 2011

Also @WalterBright could add to his std.ddoc file two macros used in Phobos:
CXREF = <a href="core_$1.html#$2">$(D core.$1.$2)</a>
LREF = <a href="#$1">$(D $1)</a>
to solve D's local documentation navigation problems

@denis-sh
Copy link
Contributor Author

denis-sh commented Nov 4, 2011

Am I right that ulong u4 = cast(ulong)-1; // ok, -1 can be represented in a ulong line hadn't caused a single improvement pull request before because that section (I mean about bit pattern) is completely obscure?

@denis-sh denis-sh mentioned this pull request Dec 12, 2011
Following macros definitions removed:
WEB (except phobos-like definitions in index.dd, intro-to-datetime.dd, todo.dd, glossary.dd)
EBOOK
WEBURL

Following macros definitions added:
DDLINK - link to other *.dd file (other page on the site, other section in ebook)
DDSUBLINK - same as DDLINK, but references to subsection
DPLLINK - link to d-programming-language.org page (external link in ebook)
NOT_EBOOK - hides its arguments in ebook

NOT_EBOOK macro used in spec.dd instead of WEB
All strings replaced:
"$(LINK2 $(WEBURL)" to "$(DPLLINK "

All expressions replaced (using Visual Studio regex for which "@" is the lazy version of "*"):
"\$\(LINK2 \$\(WEB {.@}\.html\)\$\(EBOOK \#{.@}\)\, {.@}\)" to "$(DDLINK \1, \2, \3)"
"\$\(LINK2 \$\(WEB {.@}\.html\)\#{.@}\, {.@}\)" to "$(DDSUBLINK \1, \2, \3)"
dnews removed from win32.mak
@andralex
Copy link
Member

What are exactly the improvement brought about by this diff?

@CyberShadow
Copy link
Member

AFAIK, it fixes a lot of broken links without breaking ebook generation.

andralex added a commit that referenced this pull request Dec 13, 2011
@andralex andralex merged commit a0d9616 into dlang:master Dec 13, 2011
@andralex
Copy link
Member

Thanks!

denis-sh added a commit to denis-sh/dlang.org that referenced this pull request Oct 28, 2012
All strings replaced (like in 3dd02f8):
"$(LINK2 $(WEBURL)" to "$(DPLLINK "

`WEBURL` macro was removed in pull dlang#28.

Incorrect `WEBURL` using was added in 917167e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants