maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (MJAVADOC-410) Get the stylesheet file from an URL
Date Mon, 10 Oct 2016 09:05:20 GMT

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

Michael Osipov edited comment on MJAVADOC-410 at 10/10/16 9:05 AM:
-------------------------------------------------------------------

You don't need to resort to Ant. You can simply use: http://www.mojohaus.org/wagon-maven-plugin/download-single-mojo.html.

I think you can safely solve your problem without chaning code at all. Considering that you
have a canonical URL for your stylesheet, why don't you use CSS magic?

{code}
@import url("http://example.com/my-stylesheet.css")
{code}
The browser will do the rest.

What do you think?


was (Author: michael-o):
You don't need to resort to Ant. You can simply use: http://www.mojohaus.org/wagon-maven-plugin/download-single-mojo.html.

I think you can safely solve your problem without chaning code at all. Considering that you
have a canonical URL for your stylesheet, why don't you use CSS magic?

{code}
@import url("my-stylesheet.css")
{code}

What do you think?

> Get the stylesheet file from an URL
> -----------------------------------
>
>                 Key: MJAVADOC-410
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-410
>             Project: Maven Javadoc Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.10
>            Reporter: Vincent Zurczak
>            Priority: Minor
>
> Hi,
> When we generate Javadoc with the maven-javadoc-plugin, we can use the *stylesheetfile*
parameter to specify a custom CSS file for the generated HTML pages.
> This file can be a local file, as well as a resource located in Maven dependencies. However,
it does not work if the parameter value is set to a public URL (a static resource on a web
server). This would be a nice enhancement. Initially, I had created a Maven module that would
contain such resources, but it resulted in adding a lot of complexity to my release process.
Having some static resources on a web server is much more simple.
> I wanted to submit a patch myself for this feature.
> But I was wondering how I could do that. This [page|http://maven.apache.org/guides/development/guide-m2-development.html#Creating_and_submitting_a_patch]
indicates we should attach a patch file to this issue. I was wondering if proposing pull requests
on the GitHub mirror was also working.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message