Skip to content

remove pointless LREFs#4913

Merged
andralex merged 2 commits intodlang:stablefrom
aG0aep6G:std.algorithm.sorting-lrefs
Nov 21, 2016
Merged

remove pointless LREFs#4913
andralex merged 2 commits intodlang:stablefrom
aG0aep6G:std.algorithm.sorting-lrefs

Conversation

@aG0aep6G
Copy link
Contributor

The LREFs were broken. Could fix that with underscores, but the links would
just point back at the current section. There's no point in having such
links.

The LREFs were broken. Could fix that with underscores, but the links would
just point back at the current section. There's no point in having such
links.
less).

Unlike $(LREF isSorted), $(LREF isStrictlyMonotonic) does not allow for equal values,
Unlike isSorted, isStrictlyMonotonic does not allow for equal values,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They'd still need to be in code format.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They'd still need to be in code format.

Isn't auto-highlighting enough? If these two need a monospaced font, then all auto-highlighted symbols need a monospaced font, no?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well anything that's not part of the English prose needs to be formatted differently. This is code so it should come out in code font by whichever means. N.B. "isSorted" is not even in the dictionary.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see what you mean. Yes, it would be best if whatever is highlighted would come in code font.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it would be best if whatever is highlighted would come in code font.

PR to use <code> tags for auto-highlights, resulting in monospaced font: dlang/dlang.org#1516

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's auto-highlighting and why doesn't ddox have it as well?
Didn't ddox automatically detect symbols in the past?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's auto-highlighting

Ddoc recognizes and highlights certain words in prose (keywords, the symbol being documented, parameters). I call that auto-highlighting, as opposed to doing it manually with $(D ...) or backticks. Auto-highlighting is a common source of broken links, because it happens in URLs too (as happened here).

and why doesn't ddox have it as well?
Didn't ddox automatically detect symbols in the past?

DDOX does some auto-linking of symbols, but I'm not sure how it detects them. I don't think it ever searched for the symbol that's being documented or its parameters to highlight them, like Ddoc does.

DDOX not doing auto-highlighting is a problem which I didn't have on my radar. There should be consistency across Ddoc and DDOX. As far as I see, we can either:

  • implement auto-highlighting in DDOX, or
  • disable auto-highlighting in our Ddoc macros and highlight everything manually.

I'm not up for either of those challenges right now, so I've just added backticks to this PR. So that at least the symbols here are in monospaced font (and auto-linked) on the DDOX pages, too.

DDOX doesn't do auto-highlighting, but the symbols need to be formatted as
code there, too.
@andralex
Copy link
Member

Auto-merge toggled on

@andralex andralex merged commit 5891dce into dlang:stable Nov 21, 2016
@aG0aep6G aG0aep6G deleted the std.algorithm.sorting-lrefs branch November 21, 2016 16:07
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