]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Move "conventions" section of index.xml to a new conventions.xml document, and add...
authorWilliam Victor Mote <vmote@apache.org>
Tue, 1 Jul 2003 17:24:35 +0000 (17:24 +0000)
committerWilliam Victor Mote <vmote@apache.org>
Tue, 1 Jul 2003 17:24:35 +0000 (17:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196555 13f79535-47bb-0310-9956-ffa450edef68

src/documentation/content/xdocs/dev/book.xml
src/documentation/content/xdocs/dev/conventions.xml [new file with mode: 0644]
src/documentation/content/xdocs/dev/index.xml

index 10322781a7583084856efda04590e7e026877b7f..fc6f8eb2afa1daf7b7a859980837abc5ea153102 100644 (file)
@@ -21,6 +21,7 @@
       <menu-item label="API Doc" href="api-doc.html"></menu-item>
       <menu-item label="Walk-Thru" href="implement.html"/>
       <external label="Patch queue" href="http://nagoya.apache.org/bugzilla/buglist.cgi?bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED&amp;email1=&amp;emailtype1=substring&amp;emailassigned_to1=1&amp;email2=&amp;emailtype2=substring&amp;emailreporter2=1&amp;bugidtype=include&amp;bug_id=&amp;changedin=&amp;votes=&amp;chfieldfrom=&amp;chfieldto=Now&amp;chfieldvalue=&amp;product=Fop&amp;short_desc=%5BPATCH%5D&amp;short_desc_type=allwordssubstr&amp;long_desc=&amp;long_desc_type=allwordssubstr&amp;bug_file_loc=&amp;bug_file_loc_type=allwordssubstr&amp;keywords=&amp;keywords_type=anywords&amp;field0-0-0=noop&amp;type0-0-0=noop&amp;value0-0-0=&amp;namedcmd=Fop+all&amp;newqueryname=fop+patch+queue&amp;tofooter=1&amp;order=Reuse+same+sort+as+last+time"/>
+      <menu-item label="Conventions" href="conventions.html"/>
     </menu>
     <menu label="Test">
       <menu-item label="Testing" href="testing.html"/>
diff --git a/src/documentation/content/xdocs/dev/conventions.xml b/src/documentation/content/xdocs/dev/conventions.xml
new file mode 100644 (file)
index 0000000..c6a376e
--- /dev/null
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN"
+    "http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-forrest/src/resources/schema/dtd/document-v11.dtd">
+<document>
+  <header>
+    <title>FOP Development: Coding Conventions</title>
+  </header>
+  <body>
+    <section id="java">
+      <title>Java</title>
+      <section id="java-style">
+        <title>Java Style</title>
+        <p>In order to facilitate the human reading of FOP source code, the FOP developers have agreed on a set of coding conventions.
+The basis of these coding conventions is documented in the <link href="http://xml.apache.org/source.html">Apache XML Project Guidelines</link>, which requires that <strong>all Java Language source code in the repository must be written in conformance to Sun's</strong> <link href="http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html">Code Conventions for the Java Programming Language</link>.
+In addition, other conventions have been applied to the FOP project, which are summarized in the following table:</p>
+        <table>
+          <tr>
+            <th>Convention</th>
+            <th>Rationale</th>
+            <th>Enforced By</th>
+          </tr>
+          <tr>
+            <td>No tabs in content</td>
+            <td>Programmers should not have to adjust the tab settings in their editor to be able to read the source code.</td>
+            <td>checkstyle</td>
+          </tr>
+          <tr>
+            <th>Indentation of 4 spaces per level</th>
+            <th>Maximize readability.</th>
+            <th>Not enforced</th>
+          </tr>
+        </table>
+        <p>For developers that dislike these conventions, one workaround is to develop using their own style, then use a formatting tool like <link href="http://astyle.sourceforge.net/">astyle</link> (Artistic Style) before committing.</p>
+      </section>
+    </section>
+  </body>
+</document>
index 51d03d989f23b90673d633e09abea034df68aa01..0b066955c4c2204cb6df79d65dadae5add665f2b 100644 (file)
@@ -126,17 +126,6 @@ To unsubscribe: Send email to <link href="mailto:fop-dev-unsubscribe@xml.apache.
         </ul>
         <p>One of the committers will test your patch and consider its implications for the project. They will then either commit it to the repository or explain on the issue why they did not. Depending on the work load and skill-sets of the various committers, it may take some time before a a submitted patch is addressed.</p>
       </section>
-      <section id="code-conventions">
-        <title>Coding Conventions</title>
-        <p>As mentioned in <link href="http://xml.apache.org/source.html">Apache XML Project Guidelines</link>,
-  <strong>all Java Language source code in the repository must be written in conformance to the</strong>
-          <link href="http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html">Code Conventions
-  for the Java Programming Language</link> as published by Sun. Additionally we agreed on 4
-  spaces (no tabs) for indenting.</p>
-        <p>If you don't like those conventions, just use your own standards while developing and reformat the source before
-  committing with a tool like <link href="http://astyle.sourceforge.net/">astyle</link> (Artistic Style).
-  </p>
-      </section>
     </section>
   </body>
 </document>