1 <?xml version="1.0" encoding="utf-8"?>
\r
2 <chapter xml:id="style-template" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="EN"
\r
3 xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink">
\r
8 <revnumber>1</revnumber>
\r
9 <date>2009-10-13</date>
\r
10 <authorinitials>JB</authorinitials>
\r
11 <revremark>Revised to include example of revhistory element</revremark>
\r
15 <title>Sitka Documentation Template</title>
\r
18 <para>The source xml file for this template page is in the Sitka DocBook directory at
\r
19 <emphasis>www/Sitka/draft/template.xml</emphasis>. To use it as a template for new Sitka
\r
20 documenation follow the steps below.</para>
\r
24 <title>Open <emphasis>template.xml</emphasis></title>
\r
27 <para>Optional intro paragraph for section</para>
\r
31 <para>Open oXygen XML Author or Editor</para>
\r
35 <para>Right-click <guilabel>newProject.xpr</guilabel> (in the left column) and
\r
36 choose <guimenuitem>Import Remote Folders</guimenuitem></para>
\r
40 <para>Enter DocBook server url, username, and password for SFTP connection (not
\r
41 publicly available), then click <guibutton>Browse</guibutton></para>
\r
46 <para>Navigate to /home/jbuhler/www/Sitka/draft. Select this folder, then click
\r
47 <guibutton>OK</guibutton> (ed note: this is also an example of how to
\r
48 keep step text and image together, displaying an image that's less than
\r
52 <alt>screenshot of staff client</alt>
\r
54 <imagedata scalefit="0" fileref="media/style-template-1.png"/>
\r
62 <para>In oXygen, double-click on <guilabel>newProject.xpr*</guilabel>. Navigate to
\r
63 <emphasis>draft/template.xml</emphasis>, then double-click it to open</para>
\r
68 <para><emphasis>template.xml</emphasis> will open in oXygen (ed note: this is
\r
69 also an example of how to keep step text and image together, displaying an
\r
70 image that's wider than 900px)</para>
\r
73 <alt>screenshot of staff client</alt>
\r
75 <imagedata width="100%" scalefit="1"
\r
76 fileref="media/style-template-2.png"/>
\r
88 <title>Save as new xml file</title>
\r
91 <para>Optional intro paragraph for section</para>
\r
95 <para>Make the following changes to <emphasis>template.xml</emphasis></para>
\r
98 <para>Change the chapter xml:id from <emphasis>style-template</emphasis> to
\r
99 a new unique value</para>
\r
102 <para>Change the title from <emphasis>Sitka Documentation
\r
103 Template</emphasis></para>
\r
109 <para>Go to <menuchoice>
\r
110 <guimenu>File</guimenu>
\r
111 <guimenuitem>Save to URL...</guimenuitem>
\r
112 </menuchoice> and save to desired Sitka docs directory (using a newly assigned
\r
113 name, not <emphasis>template.xml</emphasis>)</para>
\r
117 <para>While customizing the file, use <keycombo>
\r
118 <keycap>Ctrl</keycap>
\r
120 </keycombo> to save changes</para>
\r
124 <para>Open <emphasis>root.xml</emphasis> and add a new
\r
125 <emphasis>xi:includes</emphasis> line pointing to the newly created file,
\r
126 adding it to the larger Sitka doc set; save changes</para>
\r
132 <para>Use <keycombo>
\r
133 <keycap>Ctrl</keycap>
\r
134 <keycap>Shift</keycap>
\r
136 </keycombo> to automatically indent and space an xml file in oXygen, making it
\r
137 easier to read and work with</para>
\r