You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Lukas Theussl (JIRA)" <ji...@codehaus.org> on 2010/10/19 13:14:34 UTC

[jira] Issue Comment Edited: (DOXIA-415) Doxia rejects/rewrites intentional relative http: link in APT

    [ http://jira.codehaus.org/browse/DOXIA-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=240093#action_240093 ] 

Lukas Theussl edited comment on DOXIA-415 at 10/19/10 6:14 AM:
---------------------------------------------------------------

Doxia does not look any further if you start with http:/. Note the slash.

I'm not sure what you mean with '??content is not coming through doxia??'. Doxia only does the translation between single document formats, so {noformat}{{{./jdd/index.html}A Link}}{noformat} in apt becomes {noformat}<a href="./jdd/index.html">A Link</a>{noformat} in html, and {noformat}{{{index.html}A Link}}{noformat} in apt becomes {noformat}<a href="#index.html">A Link</a>{noformat} in html. Doxia does not care whether the links actually exist. So whether the links actually 'work' depends on whether the target documents are located correctly relative to each other on the target site. This has to be done by the site plugin or whatever tool you use to generate your site.

      was (Author: lukas):
    Doxia does not look any further if you start with http:/. Note the slash.

I'm not sure what you mean with '??content is not coming through doxia??'. Doxia only does the translation between document formats, so {noformat}{{{./jdd/index.html}A Link}}{noformat} in apt becomes {noformat}<a href="./jdd/index.html">A Link</a>{noformat} in html, and {noformat}{{{index.html}A Link}}{noformat} in apt becomes {noformat}<a href="#index.html">A Link</a>{noformat} in html. Whether the link actually 'works' is determined if the documents are located correctly relative to each other on the target site. This is done by the site plugin or whatever tool you use to create your content.
  
> Doxia rejects/rewrites intentional relative http: link in APT
> -------------------------------------------------------------
>
>                 Key: DOXIA-415
>                 URL: http://jira.codehaus.org/browse/DOXIA-415
>             Project: Maven Doxia
>          Issue Type: Bug
>          Components: Module - Apt
>    Affects Versions: 1.1
>            Reporter: Benson Margulies
>            Assignee: Lukas Theussl
>
> I wrote:
> {code}
> {{{http:./jdd/index.html}A Link}}
> {code}
> Because I know that there is going to be such a page by the time my output is deployed. I expected the http: to cause Doxia to 'butt out'. Instead, I get:
> [WARNING] [APT Parser] Modified invalid link: 'http:./jdd/index.html' to '#http:.jddindex.html'
> [WARNING] [APT Parser] Ambiguous link: 'http:./jdd/index.html'. If this is a local link, prepend "./"!
> Notice that I DID prepend ./. Taking out the ./ doesn't help.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira