You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

stylebook.html 3.0 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!--
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. <html>
  16. <head>
  17. <meta http-equiv="Content-Language" content="en-us">
  18. <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
  19. <title>StyleBook Task</title>
  20. </head>
  21. <body>
  22. <h2><a name="stylebook">Stylebook</a></h2>
  23. <h3>Description</h3>
  24. <strong>This task is deprecated as stylebook itself has been
  25. deprecated by the Apache XML community.</strong>
  26. <p>This executes the apache Stylebook documentation generator.
  27. Unlike the commandline version of this tool, all three arguments
  28. are required to run stylebook.</p>
  29. <p><b>Note:</b> This task depends on external libraries not included in the Ant distribution.
  30. See <a href="../install.html#librarydependencies">Library Dependencies</a> for more information.</p>
  31. <p>
  32. Being extended from <code>&lt;Java&gt;</code>, all the parent's attributes
  33. and options are available. Do not set any apart from the <tt>classpath</tt>
  34. as they are not guaranteed to be there in future.
  35. </p>
  36. <h3>Parameters</h3>
  37. <table border="1" cellpadding="2" cellspacing="0">
  38. <tr>
  39. <td valign="top"><b>Attribute</b></td>
  40. <td valign="top"><b>Description</b></td>
  41. <td align="center" valign="top"><b>Required</b></td>
  42. </tr>
  43. <tr>
  44. <td valign="top">book</td>
  45. <td valign="top">the book xml file that the documentation generation starts from
  46. </td>
  47. <td valign="top" align="center">Yes</td>
  48. </tr>
  49. <tr>
  50. <td valign="top">skindirectory</td>
  51. <td valign="top">the directory that contains the stylebook skin
  52. </td>
  53. <td valign="top" align="center">Yes</td>
  54. </tr>
  55. <tr>
  56. <td valign="top">targetdirectory</td>
  57. <td valign="top">the destination directory where the documentation is generated
  58. </td>
  59. <td valign="top" align="center">Yes</td>
  60. </tr>
  61. </table>
  62. <p>
  63. The user can also specify the nested <code>&lt;classpath&gt;</code> element which defines classpath
  64. in which the task is executed.</p>
  65. <h3>Examples</h3>
  66. <blockquote>
  67. <pre>
  68. &lt;stylebook targetdirectory=&quot;build/docs&quot;
  69. book=&quot;src/xdocs/book.xml&quot;
  70. skindirectory=&quot;src/skins/myskin&quot;/&gt;
  71. </pre>
  72. </blockquote>
  73. The above will generate documentation in build/docs starting from the book
  74. src/xdocs/book.xml and using the skin located in directory src/skins/myskin.
  75. </body>
  76. </html>