You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by de...@apache.org on 2009/12/03 18:03:13 UTC

svn commit: r886847 - in /maven/plugins/trunk/maven-site-plugin/src/site/apt/examples: creating-content.apt.vm sitedescriptor.apt

Author: dennisl
Date: Thu Dec  3 17:02:45 2009
New Revision: 886847

URL: http://svn.apache.org/viewvc?rev=886847&view=rev
Log:
[MSITE-437] How format-specific files are created and linked is not 100% clear
Submitted by: Dave Copeland
Reviewed by: Dennis Lundberg

o Patch applied with minor modifications

Modified:
    maven/plugins/trunk/maven-site-plugin/src/site/apt/examples/creating-content.apt.vm
    maven/plugins/trunk/maven-site-plugin/src/site/apt/examples/sitedescriptor.apt

Modified: maven/plugins/trunk/maven-site-plugin/src/site/apt/examples/creating-content.apt.vm
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/site/apt/examples/creating-content.apt.vm?rev=886847&r1=886846&r2=886847&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/site/apt/examples/creating-content.apt.vm (original)
+++ maven/plugins/trunk/maven-site-plugin/src/site/apt/examples/creating-content.apt.vm Thu Dec  3 17:02:45 2009
@@ -50,12 +50,12 @@
       +- site.xml
 --------------------
 
- You notice the <<<$\{basedir\}/src/site>>> directory which contains a site
+ The <<<$\{basedir\}/src/site>>> directory which contains a site
  descriptor along with various directories corresponding to the supported
  document formats. Let's take a look at examples of the various document
  formats.
 
-  The APT format, "Almost Plain Text", is a wiki-like format that allows you to
+  The APT format ("Almost Plain Text") is a wiki-like format that allows you to
   write simple, structured documents (like this one) very quickly. A full
   reference of the
   {{{http://maven.apache.org/doxia/references/apt-format.html} APT Format}} is
@@ -94,7 +94,13 @@
       +- other.html
 --------------------
 
-  The <<<css>>> and <<<images>>> directories contains stylesheets and images
+  This means that <<</src/site/apt/index.apt>>> will be available in the site as
+  <<</index.html>>>. So, in {{{./sitedescriptor.html} your site descriptor}} you
+  might link to <<</index.html>>> and <<</other.html>>>, where the source of
+  these two files would be <<</src/site/apt/index.apt>>> and
+  <<</src/site/xdoc/other.xdoc>>>.
+
+  The <<<css>>> and <<<images>>> directories contain stylesheets and images
   from the skin being used. You can read more about skins in
   {{{./sitedescriptor.html}the site descriptor documentation}}.
 

Modified: maven/plugins/trunk/maven-site-plugin/src/site/apt/examples/sitedescriptor.apt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/site/apt/examples/sitedescriptor.apt?rev=886847&r1=886846&r2=886847&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/site/apt/examples/sitedescriptor.apt (original)
+++ maven/plugins/trunk/maven-site-plugin/src/site/apt/examples/sitedescriptor.apt Thu Dec  3 17:02:45 2009
@@ -173,20 +173,26 @@
 
 * Including Generated Content
 
-  There are several preset menus that can be used in the site descriptor to include generated content from your project.
-  These are:
+  Files in the format-based directory structure can be linked to by their target
+  HTML filename, e.g. <<<${basedir}/src/site/apt/foo.apt>>> and
+  <<<${basedir}/src/site/fml/faq.fml>>> can be linked to via:
 
-  * <<<reports>>> - a menu with links to all the generated reports for your
-  project
-
-  * <<<parent>>> - a menu with a link to the parent project's site
-
-  * <<<modules>>> - a menu containing the links to the sites of the submodules
-  of this project
-
-  []
++-----+
+<project>
+  ...
+  <body>
+    ...
+    <menu name="Foo" href="foo.html" />
+    <menu name="FAQ" href="faq.html" />
+    ...
+  </body>
+  ...
+</project>
++-----+
 
-  To include a preset menu, use the <<<ref>>> attribute. For example:
+  There are also several preset menus that can be used in the site descriptor to
+  include generated content from your project. These are linked via the
+  <<<ref>>> attribute, like so:
 
 +-----+
 <project>
@@ -205,6 +211,19 @@
   syntax instead. The support for the old syntax will be removed in a future
   version of the Site Plugin.
 
+  The currently available preset menus are:
+
+  * <<<reports>>> - a menu with links to all the generated reports for your
+  project
+
+  * <<<parent>>> - a menu with a link to the parent project's site
+
+  * <<<modules>>> - a menu containing the links to the sites of the submodules
+  of this project
+
+  []
+
+
 * Skinning
 
   Skins can be created to customize the look and feel of a site in a consistent way. For more information on creating a