Remove cronjobs section with missing attributions: https://bugs.launchpad.net/bugs...
authorrsoulliere <robert.soulliere@mohawkcollege.ca>
Wed, 2 Mar 2011 12:52:36 +0000 (07:52 -0500)
committerrsoulliere <robert.soulliere@mohawkcollege.ca>
Wed, 2 Mar 2011 12:52:36 +0000 (07:52 -0500)
1.6/admin/AdminMisc.xml
style_guide/contributing_DIG.xml [new file with mode: 0644]
style_guide/root.xml

index a5b4448..5ed09e1 100644 (file)
                        <step>\r
                                <para>Create a bash script for starting Evergreen and all associated services. Here is an example script:</para>  \r
 \r
-<programlisting>\r
-<![CDATA[\r
-\r
-\r
+<programlisting><![CDATA[\r
 #!/bin/bash\r
 \r
 OPENILS_BASE="/openils"\r
@@ -290,8 +287,7 @@ case "$1" in
         exit 1\r
     ;;\r
 esac;\r
-]]>\r
-</programlisting>\r
+]]></programlisting>\r
                        </step>\r
                        <step>\r
                                <para>Save file in <filename class="directory">/etc/bin</filename> folder as <filename>evergreenstart</filename> if you would like this as a manual script for starting Evergreen services.</para> \r
@@ -310,10 +306,16 @@ esac;
 <screen><userinput>/etc/init.d/apache2 restart</userinput></screen>\r
                        </step> \r
                        <step>\r
-                       <note><para>The next steps are optional if you want to automate Evergreen so it starts during your server's boot process.</para></note>\r
-                       <para>Update runlevel defaults of the new evergreenstart service as the <systemitem class="username">root</systemitem>  user:</para>\r
+                               <note>\r
+                                       <para>The next steps are optional if you want to automate Evergreen so it starts during your server's boot process.</para>\r
+                               </note>\r
+                               <para>Update runlevel defaults of the new evergreenstart service as the <systemitem class="username">root</systemitem>  user:</para>\r
 <screen><userinput>update-rc.d evergreenstart defaults 80 20</userinput></screen>\r
-<note><para>For Evergreen to start properly during a reboot, you will want to ensure that the first number <option>80</option> is lower than the assigned starting priority for Apache so it starts before Apache.  It should also a higher stopping priority <option>20</option> than Apache so it stops after Apache at shutdown.</para></note>\r
+                               <note>\r
+                                       <para>For Evergreen to start properly during a reboot, you will want to ensure that the first number (<option>80</option>) is lower than the assigned \r
+                                       starting priority for Apache, so it starts before Apache. It should also have a larger stopping priority number (<option>20</option>) than Apache so it stops \r
+                                       after Apache during a boot cycle.</para>\r
+                               </note>\r
                        </step> \r
                        <step>\r
                        <para>Test the startup script by rebooting the Evergreen Server and checking to ensure that all Evergreen sercices started properly.</para>\r
diff --git a/style_guide/contributing_DIG.xml b/style_guide/contributing_DIG.xml
new file mode 100644 (file)
index 0000000..6f1bf5f
--- /dev/null
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="utf-8"?>\r
+<chapter xml:id="style-contributing" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="EN"\r
+    xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink">\r
+    <info>\r
+        <title>Contributing Documentation in DocBook Format</title>\r
+    </info>\r
+\r
+       <section xml:id="docbook_file_structure">\r
+               <title>Evergreen Documentation File Structure</title>\r
+       \r
+               <para>At the root of the Evergreen  documentation is the <filename>root.xml</filename> file. The file contains the &lt;book&gt; element and manages the organization of the \r
+               Evergreen Documentation Manual. This file contains included files which are the chapters and the appendices of the documentation. If you are contributing documentation, you should not \r
+               have to edit this file except to add an include statement to place a new chapter in the Evergreen documentation in appropriate order:</para>\r
+<programlisting><![CDATA[\r
+...\r
+<xi:include href="appendices/glossary.xml"/>\r
+...\r
+]]></programlisting>\r
+               <para>The above example includes the <filename>glossary.xml</filename> file in the Evergreen documentation. This file should be located in the \r
+               <filename class="directory">appendixes</filename> subdirectory relative to the <filename>root.xml</filename> file.</para>  \r
+               <para>When creating new files, the first line should always be:</para>\r
+<programlisting> <![CDATA[\r
+<?xml version="1.0" encoding="utf-8"?>  \r
+]]></programlisting>\r
+               <para>This is the standard to indicate that this is an XML file</para>\r
+               <para>The next line should include the &lt;chapter&gt; element. Here is an example for the glossary chapter of this style guide document.</para>\r
+<programlisting> <![CDATA[\r
+<chapter xml:id="style-glossary" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="EN"\r
+    xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink">\r
+]]></programlisting>\r
+               <para>An important attribute is <code language="xml">xml:id</code>. This must be a unique id to the entire documentation and is important for cross referencing chapters, sections, tables \r
+               and other parts of the documentation.</para>    \r
+               <para>Also remember to add the closing &lt;/chapter&lt; tag at the very end of the document.</para> \r
+               <para>The chapter is the container for files contributed to DIG. Do not create a new file to add a <code language="xml">&lt;section&gt;</code> to an existing \r
+               <code language="xml">&lt;chapter&gt;</code> and do not use the <code language="xml">&lt;book&gt;</code> container in yor file since the \r
+               <code language="xml">&lt;book&gt;</code> element is already in the <filename>root.xml</filename> file.</para> \r
+       </section>\r
+<section xml:id="how_to_contribte">\r
+               <title>How to Contribute Documentation</title>\r
+               <procedure>\r
+                       <title>Using Git to Upload Files from Linux</title>\r
+                       <step>\r
+                               <para><link xlink:href="http://help.github.com/linux-git-installation/"  xlink:title="Install git">Install git</link>.</para>   \r
+                       </step>\r
+                       <step>\r
+                               <para><link xlink:href="https://github.com/" xlink:title="get an account">Sign up for a free github account.</link>.</para>     \r
+                       </step>\r
+                       <step>\r
+                               <para>Send an email to the github repository maintainer (<email>robert.soulliere@mohawkcollege.ca</email>) to request being added as a contributor.</para>      \r
+                       </step>\r
+                       <step>\r
+                               <para><link xlink:href="http://help.github.com/linux-key-setup/" xlink:title="linux key setup">Generate and add SSH keys to github repository.</link>.</para>\r
+                       </step> \r
+                       <step>\r
+                               <para>Clone the Evergreen-DocBook repository on your local machine:</para>\r
+<screen><userinput>git clone git://github.com/rsoulliere/Evergreen-DocBook.git</userinput></screen>\r
+                       </step> \r
+                       <step>\r
+                               <para>Edit or add files in the clonesd repository location.</para>\r
+                       </step> \r
+               </procedure>\r
+               <para>For editing and committing changes to the repository there are only a handful of commands you need to know (run these inside the directory structure of your cloned \r
+               repository):</para> \r
+               <itemizedlist>\r
+                       <listitem><command>git pull <option>filename</option></command> -  It will pull the most recent changes into your cloned version to avoid merging \r
+                       issues and errors when <quote>pushing</quote> your changes tp the remote repository.</listitem>\r
+                       <listitem><command>git add <option>filename</option></command> - Adds new files to repository. This is needed to tell git that you have added or edited files and want to add \r
+                       them into the repo.</listitem>\r
+                       <listitem><command>git commit <option>filename</option></command> - Commits changes to the repository. A text file will open describing what will be committed. Add a \r
+                       meainingful note here to indicate \r
+                       what you have chanaged.</listitem>\r
+                       <listitem><command>git push <option>filename</option></command> - Push changes to remote repository. After pushing your changes you should see them show up at: \r
+                       <link xlink:href="https://github.com/rsoulliere/Evergreen-DocBook/commits/master" xlink:title="see committed changes">\r
+                       https://github.com/rsoulliere/Evergreen-DocBook/commits/master</link>. </listitem>\r
+               </itemizedlist>\r
+                       <tip><para>If possible, please test files locally or verify DocBook syntax is correct. The docBook files are generated every night to update the HTML and PDF files. \r
+                       Incorrect DocBook syntax could cause the chapter to be skipped during processing and not be included in the documentation.</para></tip>\r
+               <procedure>\r
+                       <title>Contributing by editing existing files on github</title>\r
+                       <step>\r
+                               <note><para>Editing files directly in github using the following procedures is not recommended for larger changes, but is useful for quick typo corrections and other \r
+                               minor edits. If you need to makke major changes please use the previous git method or send changes to the \r
+                               <link xlink:href="http://libmail.georgialibraries.org/mailman/listinfo/open-ils-documentation" xlink:title="DIG List">DIG list</link>.</para></note>\r
+                               <para><link xlink:href="https://github.com/" xlink:title="get an account">Sign up for a free github account.</link>.</para>     \r
+                       </step>\r
+                       <step>\r
+                               <para>Send an email to the  repository maintainer (<email>robert.soulliere@mohawkcollege.ca</email>) to request being added as a contributor.</para>    \r
+                       </step>\r
+                       <step>\r
+                               <para>Go to the github repository at <link xlink:href="https://github.com/rsoulliere/Evergreen-DocBook" \r
+                               xlink:title="github repo">https://github.com/rsoulliere/Evergreen-DocBook</link></para>\r
+                       </step> \r
+                       <step>\r
+                               <para>Navigate to the file you would like to edit and click <guibutton>Edit this file</guibutton></para>\r
+                       </step> \r
+                       <step>\r
+                               <para>Make changes, enter your change notes in the <guilabel>Commit message</guilabel> box and click <guibutton>Commit Changes</guibutton>.</para>\r
+                       </step> \r
+               </procedure>\r
+               <para>If you are unconfortable committing Documentation in DocBook format, simply submit your text documents or suggested changes to the \r
+               <link xlink:href="http://libmail.georgialibraries.org/mailman/listinfo/open-ils-documentation" xlink:title="DIG List">DIG list</link> and we will convert them to XML DocBook format \r
+               or add your changes to the documentation.</para>\r
+       </section>\r
+</chapter>\r
index dc27c66..4284b5f 100644 (file)
             \r
       </info> \r
       \r
-     \r
+       <xi:include href="contributing_DIG.xml"/>\r
       <xi:include href="glossary.xml"/>\r
       <xi:include href="image.xml"/> \r
       <xi:include href="links.xml"/> \r
       <xi:include href="pi.xml"/>     \r
       <xi:include href="tips.xml"/>\r
-     \r
-     \r
-      \r
-      \r
-      \r
 </book>\r