-
-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wrong refid when SEPARATE_MEMBER_PAGES is YES
When Doxygen is configured the SEPARATE_MEMBER_PAGES set to YES, the following Doxygen input: ``` /** * This struct must be used with f() */ struct t { int x; } /** * @param tx A struct t pointer */ void f(struct t *tx) { (void)tx; } ``` The `f()` in struct t's comment generates a <ref> element with `refid` equal to `some_prefix_compoundid_anchorid`, wheres the `id` in the refered element ends up with an `id` equal to `some_prefix_anchorid`. The anchorid here is the compoundid prefix by "_1", with one or two extra 'g' prefixes for groups, so the `refid` actually has this information duplicated. This is a band-aid solution that, when configured enabled in conf.py, tries to detect the issue in the refids and removes the extra baggage, so resulting links work. Signed-off-by: Fabio Utzig <[email protected]>
- Loading branch information
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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