-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Added anchors to configuration keys and sections #4940
Added anchors to configuration keys and sections #4940
Conversation
.replaceAll("[Ŵ]", "W") | ||
.replaceAll("[ÝŶŸ]", "Y") | ||
.replaceAll("[ŹŽŻ]", "Z") | ||
.replaceAll("[ß]", "ss"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very... thorough :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I took this from a French source with years of experience dealing with I18n ;)
/** | ||
* Generate configuration keys in table format. | ||
* Generated table will contain a key column that points to the long descriptive format. | ||
* | ||
* @param configDocItems | ||
*/ | ||
@Override | ||
public void format(Writer writer, List<ConfigDocItem> configDocItems) throws IOException { | ||
public void format(Writer writer, boolean useAnchorPrefixes, List<ConfigDocItem> configDocItems) throws IOException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason we can't generate anchors all the time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we do, but they don't need a prefix if we're generating a single page.
CI needs some love :) |
Might be related to the fact that |
Ah, I didn't think of the fact that one doc file can include two config files with the same keys. Lemme find a fix. |
Using the file name as prefix since we don't have the artifactId
02886e4
to
31bf87b
Compare
Hopefully fixed, and rebased on master. Let's wait for CI. |
As requested by @dmlloyd and @maxandersen