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 2014/08/20 10:09:05 UTC
svn commit: r1619044 -
/maven/site/trunk/content/apt/guides/mini/guide-snippet-macro.apt
Author: dennisl
Date: Wed Aug 20 08:09:04 2014
New Revision: 1619044
URL: http://svn.apache.org/r1619044
Log:
Clarify documentation about id for snippet macro.
Modified:
maven/site/trunk/content/apt/guides/mini/guide-snippet-macro.apt
Modified: maven/site/trunk/content/apt/guides/mini/guide-snippet-macro.apt
URL: http://svn.apache.org/viewvc/maven/site/trunk/content/apt/guides/mini/guide-snippet-macro.apt?rev=1619044&r1=1619043&r2=1619044&view=diff
==============================================================================
--- maven/site/trunk/content/apt/guides/mini/guide-snippet-macro.apt (original)
+++ maven/site/trunk/content/apt/guides/mini/guide-snippet-macro.apt Wed Aug 20 08:09:04 2014
@@ -3,7 +3,7 @@
------
Wendy Smoak
------
- 2006-11-20
+ 2014-08-20
------
~~ Licensed to the Apache Software Foundation (ASF) under one
@@ -26,6 +26,8 @@
~~ NOTE: For help with the syntax of this file, see:
~~ http://maven.apache.org/doxia/references/apt-format.html
+~~ @todo dennisl: We should drop this document and refer to the macros page in the Doxia site
+
Guide to the Snippet Macro
When generating your project website with Maven, you have the option of
@@ -40,10 +42,9 @@ Guide to the Snippet Macro
To include snippets of source code in your documentation, first add comments
in the source document surrounding the lines you want to include, and then
- refer to the snippet by its id in the documentation file.
-
- Each snippet must be assigned an id, and the id must be unique within the
- source document.
+ refer to the snippet by its id in the documentation file. Each snippet must be
+ assigned an id, and the id must be unique within the source document. The id
+ parameter is not required if you want to include the entire file.
Following are examples of snippets in various source documents, as well
as the corresponding macros in the APT documentation format.