- A change to the releng/doxygen container image updated Doxygen to 1.9.1.
- Doxygen 1.9.0 changed how files and anchors are referenced internally (see issue). Previously, a dash (-) in a filename would remain in the internal reference. Since 1.9.0, a dash (and other special characters) are converted to an underscore (_).
- This has cause a lot of the @ref links to no longer work. For example, in the root of the topics section you can see a list where some links are working (because they only contain underscores (_)) and some are broken (due to still including a dash (-)).
- There are also @subpage links that are broken causing a cluttered sidebar. For example, the Wikibase DataBridge page should be nested under the Wikibase Client page (according to the source) but instead is shown in the sidebar directly under the Wikibase root
- This comment on the Doxygen issue recommends that we don't rely on the internal references created by Doxygen (the ones starting with md_) but instead use an explicit @anchor or Header Id Attributes
- NOTE: the documentation for the Wikibase docs states that using Header Id Attributes was explicitly not used so that we wouldn't have to manually maintain them.
- Also, as Header Id Attributes is a Doxygen specific syntax and appear on the same line as the markdown headers, other markdown viewers (e.g. GitHub) will render the Ids in large bold font with the header.
Description
Details
Related Objects
- Duplicates Merged Here
- T307503: Fix Wikibase docs on doc.wikimedia.org
Event Timeline
Change 836169 had a related patch set uploaded (by Ollie Shotton; author: Ollie Shotton):
[mediawiki/extensions/Wikibase@master] DOC: Fix doxygen config file
Change 836170 had a related patch set uploaded (by Ollie Shotton; author: Ollie Shotton):
[mediawiki/extensions/Wikibase@master] DOC: Update Doxygen documentation.md page
Change 836171 had a related patch set uploaded (by Ollie Shotton; author: Ollie Shotton):
[mediawiki/extensions/Wikibase@master] DOC: Other improvements
Change 836172 had a related patch set uploaded (by Ollie Shotton; author: Ollie Shotton):
[mediawiki/extensions/Wikibase@master] DOC: Quick fix doxygen references
Change 836173 had a related patch set uploaded (by Ollie Shotton; author: Ollie Shotton):
[mediawiki/extensions/Wikibase@master] DOC: Permanent fix for broken doxygen links
Change 836169 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] DOC: Fix doxygen config file
Change 836170 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] DOC: Update Doxygen documentation.md page
Change 836171 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] DOC: Other improvements
Change 836172 abandoned by Ollie Shotton:
[mediawiki/extensions/Wikibase@master] DOC: Quick fix doxygen references
Reason:
in favour of I239bda61246f9e6181fe2c632ded05e7260d4602
Change 836173 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] DOC: Permanent fix for broken doxygen links
I think this change broke a bunch of links that lived outside of the documenation (e.g. on www.mediawiki.org). I fixed a couple of them but I am not sure if these are all because the MediaWiki search for "md_doc" did not seem to find everything.
In the future please try to preserve old links.
Searches that reveal more broken links:
- https://www.mediawiki.org/w/index.php?title=Special:LinkSearch&limit=500&offset=0&target=https%3A%2F%2Fdoc.wikimedia.org%2FWikibase%2Fmaster%2Fphp%2Fmd_docs
https://www.mediawiki.org/w/index.php?title=Special:LinkSearch&limit=500&offset=0&target=https%3A%2F%2Fdoc.wikimedia.org%2FWikibaseLexeme%2Fmaster%2Fphp%2Fmd_docs(these aren't actually broken)
Change 855559 had a related patch set uploaded (by Ollie Shotton; author: Ollie Shotton):
[mediawiki/extensions/Wikibase@master] WIP: DOC: Use filename.md or filepath.md instead of header ids
Change 855559 abandoned by Ollie Shotton:
[mediawiki/extensions/Wikibase@master] WIP: DOC: Use filename.md or filepath.md instead of header ids
Reason: