I have a project with a set of markdown pages that are interlinked with links such as
[Go to this page](subdir/MyOtherPage.md)
The pages all get picked up by doxygen and appear in the output, but the links are not altered to point to their new html renditions.
I could change the links to point to the html pages, but my project is hosted on github and then those links would become broken since github supports linking between markdown pages automatically.
I can't see anything in the doxygen documentation about supporting links other than external ones. Is there any way to make doxygen produce an HTML link from a markdown one?
As per Doxygen 1.8.7 there are three ways to do this:
@ref
and prefix the target with md_
along with any subdirectories.@ref
to refer to the name.The first method is straightforward and this will also work without Doxygen (e.g. when browsing your code repository on Github).
[Go to this page](subdir/MyOtherPage.md)
Whereas the second method you'll need to link it like this:
[Go to this page](@ref md_subdir_MyOtherPage)
Apparently this also is the way prescribed by the Doxygen's primary author.
Lastly in the third method you'll need to have a name for the target page and then link to that name. Example:
In MyOtherPage.md
have this as the header
# My Other Page Title {#MyOtherPageName}
then link it like so
[Go to this page](@ref MyOtherPageName)