Document and use DDOC_ANCHOR for qualified anchors#179
Merged
andralex merged 3 commits intodlang:masterfrom Nov 19, 2012
Merged
Document and use DDOC_ANCHOR for qualified anchors#179andralex merged 3 commits intodlang:masterfrom
andralex merged 3 commits intodlang:masterfrom
Conversation
The dot prefix distinguishes qualified anchors from the old unqualifed DDOC_PSYMBOL anchors. We need to keep the latter for backward compatibility with various links online.
Contributor
Author
|
Note that |
andralex
added a commit
that referenced
this pull request
Nov 19, 2012
Document and use DDOC_ANCHOR for qualified anchors
Member
|
merged, thanks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the website for dlang/dmd#1174 (which has now been merged).
It documents the new
DDOC_ANCHORmacro, and uses it to generate qualified anchors in DRuntime & Phobos documentation in a distinct way from the existing anchors. The existing anchors fromDDOC_PSYMBOLare still generated so all existing links continue to work. The new qualified anchors will have a dot prefix. (This is necessary to prevent an existing anchor#barfor a qualified symbolFoo.barcolliding with a new anchor for a top-level symbolbar).In addition to this, non-generated links to anchors will need updating to further prevent collisions, e.g. for
std.algorithm's link table.