You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2017/02/06 21:11:41 UTC

[jira] [Comment Edited] (DOXIA-551) tWiki anchor link generates page link

    [ https://issues.apache.org/jira/browse/DOXIA-551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15854737#comment-15854737 ] 

Michael Osipov edited comment on DOXIA-551 at 2/6/17 9:10 PM:
--------------------------------------------------------------

bq. This was the original code, you replaced in "possible patch" above. But you are right: the specs does not says it should be an HTML at all...

So, what to do? Pass as-is?

bq. This induces another problem: where should these variables got set? (Maybe as configuration parameters in the maven plugin?) I have a gut feeling that this whole twiki stuff is not really well-designed and still needs lots of development to be fully equivalent with xdoc.

Fully agree and I highly doubt that anyone will put any serious effort into it. Configuration will be a serious problem as it is module-agnostic. You might be better off by using another module. I do personally think that if a module does not really do what others do on a high-quality level, there is no reason to keep it around just to brag with a huge amount of "supported" modules.


was (Author: michael-o):
bq. This induces another problem: where should these variables got set? (Maybe as configuration parameters in the maven plugin?) I have a gut feeling that this whole twiki stuff is not really well-designed and still needs lots of development to be fully equivalent with xdoc.

Fully agree and I highly doubt that anyone will put any serious effort into it. Configuration will be a serious problem as it is module-agnostic. You might be better off by using another module. I do personally think that if a module does not really do what others do on a high-quality level, there is no reason to keep it around just to brag with a huge amount of "supported" modules.

> tWiki anchor link generates page link
> -------------------------------------
>
>                 Key: DOXIA-551
>                 URL: https://issues.apache.org/jira/browse/DOXIA-551
>             Project: Maven Doxia
>          Issue Type: Bug
>          Components: Maven plugin, Module - Twiki
>    Affects Versions: 1.7
>         Environment: Linux
>            Reporter: Viczai Gábor
>            Priority: Minor
>              Labels: anchor, link, link-local, twiki
>
> When generating site doc with maven plugin, html files generated from *.twiki files contains wrong links for anchor links.
> In twiki file if I specify [[#MyAnchor][a link]] it generates <a href="./#MyAnchor.html">a link</a>
> It seems like, no matter what, a ".html" is always inserted at the end of the link. (Possibly the link is not recognised as an anchor?!)
> (However, the anchor creation itself is ok. If a line starting with "#MyAnchor" in the twiki file is present, the html output will contain the <a name="MyAnchor">...</a> at the correct place.)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)