Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Number of attachments :5
Description
this patch contains multiple fixes/improvements for the xdoc plugin:
1) generated site is valid tableless XHTML with a fully css layout. This allows user to create totally different look and feel customizing the site css file. For example the navigation bar can be floated, put on the right, etc. Base css has been updated with a slightly different look and feel. Print css is also updated ( MPXDOC-75 )
2) Html elements are now used properly: link lists are <ul>, titles are <h1>, <h2>, etc. This improve accessibility making the site readable also without css or using altenative browsers (screen readers, smart phones without css support...).
3) invalid html produced for sections "name" elements is now fixed, escaping unvalid chars (replaced by "_"). Hrefs for local links (starting with "#") are fixed accordingly during transformation.
4) whitespace in output has been dramatically reduced (only preserved in sensitive elements such as <pre>, <script>, <style>) (also fixes MPXDOC-12 )
5) fixes layout during loading in internet explorer: actually empty images in the nav bar are popping up with the default blue border and text is initially unstyled. No empty images are used anymore ("handles" for nav bar are created using css)
6) this also apply an update version of MAVEN-853: add a doc:jslToSite tag which allows to transform individual file without having to call doc:performJSL on the whole site or setting a bunch of xdoc plugin internal variables. Test cases are added too. (also fixes MPXDOC-68 )
7) xdoc:copy-user-resources also copies resource from maven.gen.docs and not only from maven.docs.src: this allows for reporting plugin to generate images without copying them directly to maven.docs.dest
8) users can add links after the standard project info/project reports section setting the "type" attribute to "footer" for the menu element ($nav/body/menu[@type='footer'])
9) development process URL is not included if maven.xdoc.developmentProcessUrl is empty (fixes MPXDOC-70 )
10) xhtml fix: missing "alt" attribute for images (required in xhtml) is added automatically
I'm attaching an universal diff as well as a zip with all the modified files.
-
- xdoc-patch.diff
- 25/Jan/04 5:04 PM
- 41 kB
- fabrizio giustina
-
Hide
- xdoc-patch-fullfiles.zip
- 25/Jan/04 5:05 PM
- 17 kB
- fabrizio giustina
-
- xdoc-patch/xdoc/plugin.jelly 27 kB
- xdoc-patch/xdoc/src/.../css/CVS/Entries 0.1 kB
- xdoc-patch/xdoc/src/.../css/CVS/Repository 0.0 kB
- xdoc-patch/xdoc/src/.../css/CVS/Root 0.0 kB
- xdoc-patch/xdoc/src/.../css/maven-base.css 2 kB
- xdoc-patch/xdoc/src/.../css/maven-theme.css 1 kB
- xdoc-patch/xdoc/src/.../css/print.css 0.2 kB
- xdoc-patch/xdoc/src/.../images/collapsed.png 0.9 kB
- xdoc-patch/xdoc/src/.../images/expanded.png 0.2 kB
- xdoc-patch/xdoc/.../navigation.jelly 3 kB
- xdoc-patch/xdoc/.../site.jsl 18 kB
- xdoc-patch/xdoc/.../plugin-test/maven.xml 1.0 kB
- xdoc-patch/xdoc/.../testjsltosite.xml 0.4 kB
- xdoc-patch/xdoc/.../navigation.xml 0.4 kB
-
- xdoc-patch-updated.diff
- 29/Jan/04 5:26 PM
- 45 kB
- fabrizio giustina
-
Hide
- xdoc-patch-updated-fullfiles.zip
- 29/Jan/04 5:27 PM
- 19 kB
- fabrizio giustina
-
- xdoc-patch/xdoc/plugin.jelly 27 kB
- xdoc-patch/xdoc/src/.../css/maven-base.css 2 kB
- xdoc-patch/xdoc/src/.../css/maven-theme.css 1 kB
- xdoc-patch/xdoc/src/.../css/print.css 0.2 kB
- xdoc-patch/xdoc/src/.../images/collapsed.png 0.9 kB
- xdoc-patch/xdoc/src/.../images/expanded.png 0.2 kB
- xdoc-patch/xdoc/.../navigation.jelly 3 kB
- xdoc-patch/xdoc/.../site.jsl 18 kB
- xdoc-patch/xdoc/.../dependencies.xml 1 kB
- xdoc-patch/xdoc/.../templates/mail-lists.xml 1 kB
- xdoc-patch/xdoc/.../templates/team-list.xml 4 kB
- xdoc-patch/xdoc/.../plugin-test/maven.xml 1.0 kB
- xdoc-patch/xdoc/.../testjsltosite.xml 0.4 kB
- xdoc-patch/xdoc/.../navigation.xml 0.4 kB
-
- IE_screenshot.png
- 2 kB
- 30/Jan/04 5:37 AM
Activity
changed files (if you have any problem in applaying the patch)
updated diff.
Also fixes the followings:
- html errors in team-list template
- fxed generated html for <goal> section: the <description> element was included in the html output (nstead of including only the content).
Please use this updated patch instead of the previous
zip containing the full files for the patch (only needed if you have problem with the diff)
When I apply this patch and run maven site on the maven source code,
- the 'links bar' underneath the header is up in the header
- the header has a grey background
- the project nav bar has a dotted border rather than a solid one.
but only in mozilla. internet explorer looks reasonable.
See http://cvs.apache.org/~dion/maven.apache.org/index.html for a live example.
it's only a single css issue:
- the 'links bar' underneath the header is up in the header
- the header has a grey background
please add this css rule to maven-base.css, it solves this two problems in Netscape:
#banner {
border-bottom: 1px solid #fff;
}
- the project nav bar has a dotted border rather than a solid one.
this is intentional. If you don't like it and want a solid border by default (so bad?) you can replace the css rule in maven-theme:
#leftColumn {
...
border: 1px dashed #999;
}
with:
#leftColumn {
...
border: 1px solid #999;
}
In the live example you posted there is a problem in IE, though...
in my patch I replaced the menu icons with the old +- signs: the newer arrows requires png alpha trasparency to display properly, and png alpha is not supported at all in internet explorer for windows (90% of the users).
In IE you see the square background for the arrows since they are not transparent.
I think the +- signs (should be included in my patch) are more compatible
All works well.
The only issue I can see is the arrows vs the +/- sign.
Anyone else care to chime in?
From what I can tell, the PNGs for collapsed and expanded are valid, and have an alpha of 0 (transparent) for all except the arrow piece.
That means that IE may not be displaying them properly.
Patch applied in xdoc-1.5
Replaced old PNG files with GIFs to better support IE.
universal dill